linux: move initramfs build+installation to pre_make_target

Signed-off-by: Matthias Reichl <hias@horus.com>
This commit is contained in:
Matthias Reichl 2019-05-17 15:15:53 +02:00
parent 54d1135476
commit c4a382c2a0

View File

@ -127,6 +127,11 @@ makeinstall_host() {
} }
pre_make_target() { pre_make_target() {
( cd $ROOT
rm -rf $BUILD/initramfs
$SCRIPTS/install initramfs
)
if [ "$TARGET_ARCH" = "x86_64" ]; then if [ "$TARGET_ARCH" = "x86_64" ]; then
# copy some extra firmware to linux tree # copy some extra firmware to linux tree
mkdir -p $PKG_BUILD/external-firmware mkdir -p $PKG_BUILD/external-firmware
@ -185,11 +190,6 @@ make_target() {
) )
fi fi
( cd $ROOT
rm -rf $BUILD/initramfs
$SCRIPTS/install initramfs
)
# arm64 target does not support creating uImage. # arm64 target does not support creating uImage.
# Build Image first, then wrap it using u-boot's mkimage. # Build Image first, then wrap it using u-boot's mkimage.
if [[ "$TARGET_KERNEL_ARCH" = "arm64" && "$KERNEL_TARGET" = uImage* ]]; then if [[ "$TARGET_KERNEL_ARCH" = "arm64" && "$KERNEL_TARGET" = uImage* ]]; then