linux: Build kernel modules before initramfs

This allows kernel modules to be included in initramfs

Signed-off-by: Alain Kalker <a.c.kalker@gmail.com>
This commit is contained in:
Alain Kalker 2012-03-23 18:09:54 +01:00
parent b03e2472b2
commit 2bc354bc51

View File

@ -22,13 +22,6 @@
. config/options $1
export INSTALL=$ROOT/$BUILD/image/initramfs/root-image
$SCRIPTS/install initramfs
cd $INSTALL
find . | cpio -H newc -ov -R 0:0 > $ROOT/$BUILD/image/initramfs.cpio
cd -
if [ "$BOOTLOADER" = "u-boot" ]; then
$SCRIPTS/build u-boot
KERNEL_IMAGE="uImage"
@ -49,7 +42,16 @@ make modules
make INSTALL_MOD_PATH=modules DEPMOD="$ROOT/$TOOLCHAIN/bin/depmod" modules_install
rm -f modules/lib/modules/*/build
rm -f modules/lib/modules/*/source
cd -
export INSTALL=$ROOT/$BUILD/image/initramfs/root-image
$SCRIPTS/install initramfs
cd $INSTALL
find . | cpio -H newc -ov -R 0:0 > $ROOT/$BUILD/image/initramfs.cpio
cd -
cd $(kernel_path)
make $KERNEL_IMAGE
( cd tools/power/cpupower