blob: 97bae1b728ad5cef896969e943ca876d4bad40f7 [file] [log] [blame]
Kevin Hilmandb7b42a2020-12-09 20:27:05 -08001. ${ROOT_DIR}/${KERNEL_DIR}/build.config.gki.aarch64
2
3DEFCONFIG=amlogic_gki_defconfig
Kevin Hilmanc0189b12021-02-10 09:39:56 -08004FRAGMENT_CONFIG=${KERNEL_DIR}/arch/arm64/configs/amlogic_gki.fragment
5
6PRE_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}/${FRAGMENT_CONFIG}"
Kevin Hilmandb7b42a2020-12-09 20:27:05 -08007POST_DEFCONFIG_CMDS="rm ${ROOT_DIR}/${KERNEL_DIR}/arch/arm64/configs/${DEFCONFIG}"
8
9# needed for DT overlay support
10DTC_FLAGS="-@"
11
Ulises Mendez Martinez54e26292023-04-27 17:07:17 +000012MAKE_GOALS="
13Image
14modules
15Image.lz4
16Image.gz
Kevin Hilmanbb24b362021-02-09 17:05:30 -080017dtbs
Kevin Hilmandb7b42a2020-12-09 20:27:05 -080018"
19
20FILES="${FILES}
21arch/arm64/boot/Image.lz4
Kevin Hilmanbb24b362021-02-09 17:05:30 -080022arch/arm64/boot/dts/amlogic/meson-g12a-sei510*.dtb
23arch/arm64/boot/dts/amlogic/meson-sm1-sei610*.dtb
24arch/arm64/boot/dts/amlogic/meson-sm1-khadas-vim3l*.dtb
25arch/arm64/boot/dts/amlogic/meson-g12b-a311d-khadas-vim3*.dtb
Kevin Hilmandb7b42a2020-12-09 20:27:05 -080026"
27
28#
29# NOTE: Using Image.lz4 in MAKE_GOALS does not work because
30# kernel build passes legacy option (-l) to lz4 command
31# and u-boot fails to decompress. Instead, add custom
32# command to lz4 compress same options as kernel, but
33# without the -l.
34#
35EXTRA_CMDS="lz4_compress"
36function lz4_compress() {
37 lz4 -f -12 --favor-decSpeed ${OUT_DIR}/arch/arm64/boot/Image ${OUT_DIR}/arch/arm64/boot/Image.lz4
38}