blob: ec0741aad1f194a18f32f2f2f74d34cf782c51cf [file] [log] [blame]
Kevin Hilman9eb5a3a2020-12-09 20:27:05 -08001. ${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}
Kevin Hilman6bac6182021-02-09 17:05:30 -080011dtbs
Kevin Hilman9eb5a3a2020-12-09 20:27:05 -080012"
13
14FILES="${FILES}
15arch/arm64/boot/Image.lz4
Kevin Hilman6bac6182021-02-09 17:05:30 -080016arch/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
Kevin Hilman9eb5a3a2020-12-09 20:27:05 -080020"
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}