# Copyright 2006-2008 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
+ 14 Mar 2008; Andrew Gaffney <agaffney@gentoo.org> genkernel:
+ Switch back to building kernel first
+ Optionally build the kernel a second time if we're integrating the initramfs
+
14 Mar 2008; Chris Gianelloni <wolf31o2@gentoo.org> alpha/modules_load,
genkernel, ia64/modules_load, mips/modules_load, parisc/modules_load,
parisc64/modules_load, ppc/modules_load, ppc64/modules_load,
# KV may have changed due to the configuration
get_KV
+ compile_kernel
+
# Compile modules
if [ ${BUILD_MODULES} -eq '1' -a ${BUILD_STATIC} -eq '0' ]
then
print_info 1 'initrd: Not building since only the kernel was requested...'
fi
-if isTrue "${INTEGRATED_INITRAMFS}" || [ ${BUILD_KERNEL} -eq '1' -a "${KERNCACHE_IS_VALID}" == "0" ]
+if isTrue "${INTEGRATED_INITRAMFS}" #|| [ ${BUILD_KERNEL} -eq '1' -a "${KERNCACHE_IS_VALID}" == "0" ]
then
+ # We build the kernel a second time to include the initramfs
compile_kernel
-
- # We skipped the kernel build and kerncache generation
- # So do it here
- [ "${KERNCACHE}" != "" ] && gen_kerncache
fi
+[ "${KERNCACHE}" != "" ] && gen_kerncache
[ "${MINKERNPACKAGE}" != '' ] && gen_minkernpackage
[ "${MODULESPACKAGE}" != '' ] && gen_modulespackage