how to use "make mrproper " command? i am working on Linux From Scratch
I am 开发者_JAVA技巧trying to build Linux From Scratch and I have reached till this part : linux headers
Make sure there are no stale files and dependencies lying around from previous activity:
make mrproper
I don't understand: in which directory should I run this command? In one of these?
$LFS/sources/gcc-build
$LFS/sources/gcc-4.4.3
Please Help!
No, you should run that (an the following) in the directory where you unpacked the kernel source tarball.
That comes after gcc use
cd $LFS/sources
tar xvjf linux*
cd linux*
make mproper
make headers_check
make INSTALL_HDR_PATH=dest headers_install
cp -rv dest/include/* /tools/include
cd $LFS/sources tells it to change to the sources directory. tar xvjf linux* tells it to untar the lunix api headers directory (the j in xvjf might be a capital) cd linux* tells it to go to the untared directory make mproper is a special use of the make command to specially make this directory make headers_check make INSTALL_HDR_PATH=dest headers_install cp -rv dest/include/* /tools/include tells it to install and test the package
Running make mrproper
or make distclean
returns the kernel source tree to its unconfigured state. This means you loose your .config file. You will need to create a new .config file before compiling the kernel.
精彩评论