1. ${ROOT_DIR}/${KERNEL_DIR}/build.config.gki.aarch64 2 3DEFCONFIG=amlogic_gki_defconfig 4PRE_DEFCONFIG_CMDS="KCONFIG_CONFIG=${ROOT_DIR}/${KERNEL_DIR}/arch/arm64/configs/${DEFCONFIG} ${ROOT_DIR}/${KERNEL_DIR}/scripts/kconfig/merge_config.sh -m -r ${ROOT_DIR}/${KERNEL_DIR}/arch/arm64/configs/gki_defconfig ${ROOT_DIR}/${KERNEL_DIR}/arch/arm64/configs/amlogic_gki.fragment" 5POST_DEFCONFIG_CMDS="rm ${ROOT_DIR}/${KERNEL_DIR}/arch/arm64/configs/${DEFCONFIG}" 6 7# needed for DT overlay support 8DTC_FLAGS="-@" 9 10MAKE_GOALS="${MAKE_GOALS} 11dtbs 12" 13 14FILES="${FILES} 15arch/arm64/boot/Image.lz4 16arch/arm64/boot/dts/amlogic/meson-g12a-sei510*.dtb 17arch/arm64/boot/dts/amlogic/meson-sm1-sei610*.dtb 18arch/arm64/boot/dts/amlogic/meson-sm1-khadas-vim3l*.dtb 19arch/arm64/boot/dts/amlogic/meson-g12b-a311d-khadas-vim3*.dtb 20" 21 22# 23# NOTE: Using Image.lz4 in MAKE_GOALS does not work because 24# kernel build passes legacy option (-l) to lz4 command 25# and u-boot fails to decompress. Instead, add custom 26# command to lz4 compress same options as kernel, but 27# without the -l. 28# 29EXTRA_CMDS="lz4_compress" 30function lz4_compress() { 31 lz4 -f -12 --favor-decSpeed ${OUT_DIR}/arch/arm64/boot/Image ${OUT_DIR}/arch/arm64/boot/Image.lz4 32} 33