[英]Change linux kernel installation directory
是否可以在安装自定义Linux内核时更改make install
默认目标(/ boot /)。
You need to use INSTALL_PATH
environment variable to change installation directory. 您需要使用
INSTALL_PATH
环境变量来更改安装目录。
Example: 例:
$ export INSTALL_PATH=/tmp
$ make install
From make help
: 来自
make help
:
install
- Install kernel usinginstall
- 使用安装内核
(your)
~/bin/installkernel
or(你的)
~/bin/installkernel
或(distribution)
/sbin/installkernel
or(发行)
/sbin/installkernel
或install to
$(INSTALL_PATH)
and run lilo安装到
$(INSTALL_PATH)
并运行lilo
From Documentation/kbuild/kbuild.txt
: 来自
Documentation/kbuild/kbuild.txt
:
INSTALL_PATH
specifies where to place the updated kernel and system map images.INSTALL_PATH
指定放置更新的内核和系统映射图像的位置。 Default is/boot
, but you can set it to other values.默认为
/boot
,但您可以将其设置为其他值。
Also, from Documentation/kbuild/makefiles.txt
: 另外,来自
Documentation/kbuild/makefiles.txt
:
INSTALL_PATH
This variable defines a place for the arch
Makefiles
to install the resident kernel image andSystem.map
file.此变量定义arch
Makefiles
安装驻留内核映像和System.map
文件的位置。 Use this for architecture-specific install targets.将其用于特定于体系结构的安装目标。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.