是否可以在安装自定义Linux内核时更改make install
默认目标(/ boot /)。
You need to use INSTALL_PATH
environment variable to change installation directory.
Example:
$ export INSTALL_PATH=/tmp
$ make install
From make help
:
install
- Install kernel using
(your)
~/bin/installkernel
or(distribution)
/sbin/installkernel
orinstall to
$(INSTALL_PATH)
and run lilo
From Documentation/kbuild/kbuild.txt
:
INSTALL_PATH
specifies where to place the updated kernel and system map images. Default is/boot
, but you can set it to other values.
Also, from Documentation/kbuild/makefiles.txt
:
INSTALL_PATH
This variable defines a place for the arch
Makefiles
to install the resident kernel image andSystem.map
file. Use this for architecture-specific install targets.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.