blob: bf67d36c4d3ee707c6303ed861abb85b27f5d86a [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}
11amlogic/meson-g12a-sei510.dtb
12amlogic/meson-sm1-sei610.dtb
13amlogic/meson-sm1-khadas-vim3l.dtb
14amlogic/meson-g12b-a311d-khadas-vim3.dtb
15"
16
17FILES="${FILES}
18arch/arm64/boot/Image.lz4
19arch/arm64/boot/dts/amlogic/meson-g12a-sei510.dtb
20arch/arm64/boot/dts/amlogic/meson-sm1-sei610.dtb
21arch/arm64/boot/dts/amlogic/meson-sm1-khadas-vim3l.dtb
22arch/arm64/boot/dts/amlogic/meson-g12b-a311d-khadas-vim3.dtb
23"
24
25#
26# NOTE: Using Image.lz4 in MAKE_GOALS does not work because
27# kernel build passes legacy option (-l) to lz4 command
28# and u-boot fails to decompress. Instead, add custom
29# command to lz4 compress same options as kernel, but
30# without the -l.
31#
32EXTRA_CMDS="lz4_compress"
33function lz4_compress() {
34 lz4 -f -12 --favor-decSpeed ${OUT_DIR}/arch/arm64/boot/Image ${OUT_DIR}/arch/arm64/boot/Image.lz4
35}