# INSTALL_PATH specifies where to place the updated kernel and system map # images. Default is /boot, but you can set it to other values
# INSTALL_DTBS_PATH specifies a prefix for relocations required by build roots. # Like INSTALL_MOD_PATH, it isn’t defined in the Makefile, but can be passed as # an argument if needed. Otherwise it defaults to the kernel install path 就是说这两个变量可以指定你的安装目录,英语烂的自行机器翻译去吧。
好,下面动手:
1 2 3 4 5 6 7 8 9
linux git:(master) mkdir ../INSTALL_PATH linux git:(master) make INSTALL_PATH=../INSTALL_PATH install sh ./arch/x86/boot/install.sh 4.2.0-rc7+ arch/x86/boot/bzImage \ System.map "../INSTALL_PATH" linux git:(master) make INSTALL_MOD_PATH=../INSTALL_PATH modules_install linux git:(master) cd ../INSTALL_PATH INSTALL_PATH ls config-4.2.0-rc7+ lib vmlinuz-4.2.0-rc7+ System.map-4.2.0-rc7+
ln: failed to create symbolic link ‘/boot/System.map’: Permission denied ln: failed to create symbolic link ‘/boot/vmlinuz’: Permission denied ln: failed to create symbolic link ‘/boot/System.map’: Permission denied