fix(sys-kernel/coreos-kernel): Install kernel image to /usr/boot

/boot is not included in /usr images
This commit is contained in:
Michael Marineau 2014-03-12 11:54:10 -07:00
parent ef90a41059
commit 9f453bc519
2 changed files with 7 additions and 5 deletions

View File

@ -14,7 +14,7 @@ DEPEND="sys-apps/debianutils
sys-kernel/bootengine sys-kernel/bootengine
" "
IUSE="-source" IUSE="-source symlink-usr"
RESTRICT="binchecks" RESTRICT="binchecks"
STRIP_MASK="/usr/lib/debug/lib/modules/*/vmlinux" STRIP_MASK="/usr/lib/debug/lib/modules/*/vmlinux"
@ -195,15 +195,17 @@ cros-kernel2_src_compile() {
} }
cros-kernel2_src_install() { cros-kernel2_src_install() {
dodir /boot dodir /usr/boot
kmake INSTALL_PATH="${D}/boot" install kmake INSTALL_PATH="${D}/usr/boot" install
# Install firmware to a temporary (bogus) location. # Install firmware to a temporary (bogus) location.
# The linux-firmware package will be used instead. # The linux-firmware package will be used instead.
kmake INSTALL_MOD_PATH="${D}" INSTALL_FW_PATH="${T}/fw" modules_install kmake INSTALL_MOD_PATH="${D}" INSTALL_FW_PATH="${T}/fw" modules_install
local version=$(kernelversion) local version=$(kernelversion)
if [ ! -e "${D}/boot/vmlinuz" ]; then dosym "vmlinuz-${version}" /usr/boot/vmlinuz
ln -sf "vmlinuz-${version}" "${D}/boot/vmlinuz" || die
if ! use symlink-usr; then
dosym ../usr/boot/vmlinuz /boot/vmlinuz
fi fi
# Install uncompressed kernel for debugging purposes. # Install uncompressed kernel for debugging purposes.