如何使用“make mrproper”命令?我正在从头开始研究Linux
我正在尝试从头开始构建 Linux,并且已经达到这部分: linux 头文件
确保之前的活动中没有陈旧的文件和依赖项:
make mrproper
我不明白:我应该在哪个目录中运行此命令?在其中之一?
$LFS/sources/gcc-build
$LFS/sources/gcc-4.4.3
请帮忙!
I am 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!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
不,您应该在解压内核源 tarball 的目录中运行该程序(如下所示)。
No, you should run that (an the following) in the directory where you unpacked the kernel source tarball.
这是之后 gcc use
cd $LFS/sources 告诉它更改到源目录。
tar xvjf linux* 告诉它解压 lunix api headers 目录(xvjf 中的 j 可能是大写)
cd linux* 告诉它进入解压的目录
make mproper是make命令的特殊用途,专门制作这个目录
进行 headers_check
使 INSTALL_HDR_PATH=dest headers_install
cp -rv dest/include/* /tools/include 告诉它安装并测试软件包
That comes after gcc use
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
运行
make mrproper
或make distclean
将内核源代码树返回到其未配置状态。这意味着您丢失了 .config 文件。在编译内核之前,您需要创建一个新的 .config 文件。Running
make mrproper
ormake 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.