I installed the dependencies one more time and now "make menuconfig" works.
make menuconfig works in the "
/build/linux-kernel/linux-5.7.10-test" directory, but the output douse not work. i have to "
cd" in to "
/usr/src/linux-5.7.10-test" the output directory is in "
/build/linux-kernel/linux-5.7.10-test" that`s what the README says:
Quote:
Originally Posted by /build/linux-kernel/linux-5.7.10-test/Documentation/admin-guide/README.rst
Installing the kernel source
----------------------------
- If you install the full sources, put the kernel tarball in a
directory where you have permissions (e.g. your home directory) and
unpack it::
xz -cd linux-5.x.tar.xz | tar xvf -
Replace "X" with the version number of the latest kernel.
Do NOT use the /usr/src/linux area! This area has a (usually
incomplete) set of kernel headers that are used by the library header
files. They should match the library, and not get messed up by
whatever the kernel-du-jour happens to be.
|
Quote:
Originally Posted by /build/linux-kernel/linux-5.7.10-test/Documentation/admin-guide/README.rst
Build directory for the kernel
------------------------------
When compiling the kernel, all output files will per default be
stored together with the kernel source code.
Using the option ``make O=output/dir`` allows you to specify an alternate
place for the output files (including .config).
Example::
kernel source code: /usr/src/linux-5.x
build directory: /home/name/build/kernel
To configure and build the kernel, use::
cd /usr/src/linux-5.x
make O=/home/name/build/kernel menuconfig
make O=/home/name/build/kernel
sudo make O=/home/name/build/kernel modules_install install
Please note: If the ``O=output/dir`` option is used, then it must be
used for all invocations of make.
|
Am I doing something wrong?
OK, let`s do it step by step:
First i navigate in to my build directory "
cd /build/linux-kernel"
Then i extract the tar-ball "
xz -cd /root/Downloads/linux-5.7.10.tar.xz | tar xvf -"
Now the output directory is in "
/build/linux-kernel/linux-5.7.10-test"
Make a new directory "
mkdir /usr/src/linux-5.7.10-test"
I chance in to the directory "
cd /usr/src/linux-5.7.10-test"
And run the command "
make O=/build/linux-kernel/linux-5.7.10-test menuconfig"
Code:
root@linux:/usr/src/linux-5.7.10-test# make O=/build/linux-kernel/linux-5.7.10-test/ menuconfig
make: getcwd: No such file or directory
make: *** No rule to make target 'menuconfig'. Stop.