packages/linux: Allow passing additional options to mkbootimg using ANDROID_BOOTIMG_OPTIONS variable

This commit is contained in:
Alex Deryskyba 2016-04-28 19:48:15 +02:00
parent a23c3fa439
commit 17f2645aa4
2 changed files with 3 additions and 3 deletions

View File

@ -171,7 +171,7 @@ make_target() {
if [ "$BUILD_ANDROID_BOOTIMG" = "yes" ]; then
LDFLAGS="" mkbootimg --kernel arch/$TARGET_KERNEL_ARCH/boot/$KERNEL_TARGET --ramdisk $ROOT/$BUILD/image/initramfs.cpio \
--second "$ANDROID_BOOTIMG_SECOND" --output arch/$TARGET_KERNEL_ARCH/boot/boot.img
$ANDROID_BOOTIMG_OPTIONS --output arch/$TARGET_KERNEL_ARCH/boot/boot.img
mv -f arch/$TARGET_KERNEL_ARCH/boot/boot.img arch/$TARGET_KERNEL_ARCH/boot/$KERNEL_TARGET
fi
}

View File

@ -56,8 +56,8 @@
# Build Android kernel image using mkbootimg
BUILD_ANDROID_BOOTIMG="yes"
# Path to a file that will be passed as the --second parameter to Android mkbootimg
ANDROID_BOOTIMG_SECOND="arch/arm/boot/dts/amlogic/meson8m2_wetek_core.dtb"
# Additional options to be passed to Android mkbootimg
ANDROID_BOOTIMG_OPTIONS="--second arch/arm/boot/dts/amlogic/meson8m2_wetek_core.dtb"
# Additional kernel make parameters (for example to specify the u-boot loadaddress)
KERNEL_MAKE_EXTRACMD=""