简体   繁体   English

更改linux内核安装目录

[英]Change linux kernel installation directory

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

Short answer 简短的回答

You need to use INSTALL_PATH environment variable to change installation directory. 您需要使用INSTALL_PATH 环境变量来更改安装目录。

Example: 例:

$ export INSTALL_PATH=/tmp
$ make install

Details 细节

From make help : 来自make help

install - Install kernel using install - 使用安装内核

  • (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 and System.map file. 此变量定义arch Makefiles安装驻留内核映像和System.map文件的位置。 Use this for architecture-specific install targets. 将其用于特定于体系结构的安装目标。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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