gpt4 book ai didi

linux - 更改linux内核安装目录

转载 作者:IT王子 更新时间:2023-10-29 01:07:57 26 4
gpt4 key购买 nike

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

最佳答案

简答

您需要使用INSTALL_PATH 环境变量来更改安装目录。

例子:

$ export INSTALL_PATH=/tmp
$ make install

详情

来自帮助:

install - Install kernel using

  • (your) ~/bin/installkernel or

  • (distribution) /sbin/installkernel or

  • install to $(INSTALL_PATH) and run lilo

来自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.

此外,来自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.

关于linux - 更改linux内核安装目录,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35931157/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com