简体   繁体   中英

Change linux kernel installation directory

是否可以在安装自定义Linux内核时更改make install默认目标(/ boot /)。

Short answer

You need to use INSTALL_PATH environment variable to change installation directory.

Example:

$ export INSTALL_PATH=/tmp
$ make install

Details

From make help :

install - Install kernel using

  • (your) ~/bin/installkernel or

  • (distribution) /sbin/installkernel or

  • install 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 and System.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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM