mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 05:06:43 +00:00
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:
parent
b03e2472b2
commit
2bc354bc51
@ -22,13 +22,6 @@
|
|||||||
|
|
||||||
. config/options $1
|
. 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
|
if [ "$BOOTLOADER" = "u-boot" ]; then
|
||||||
$SCRIPTS/build u-boot
|
$SCRIPTS/build u-boot
|
||||||
KERNEL_IMAGE="uImage"
|
KERNEL_IMAGE="uImage"
|
||||||
@ -49,7 +42,16 @@ make modules
|
|||||||
make INSTALL_MOD_PATH=modules DEPMOD="$ROOT/$TOOLCHAIN/bin/depmod" modules_install
|
make INSTALL_MOD_PATH=modules DEPMOD="$ROOT/$TOOLCHAIN/bin/depmod" modules_install
|
||||||
rm -f modules/lib/modules/*/build
|
rm -f modules/lib/modules/*/build
|
||||||
rm -f modules/lib/modules/*/source
|
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
|
make $KERNEL_IMAGE
|
||||||
|
|
||||||
( cd tools/power/cpupower
|
( cd tools/power/cpupower
|
||||||
|
Loading…
x
Reference in New Issue
Block a user