Kevin Hilman | 9eb5a3a | 2020-12-09 20:27:05 -0800 | [diff] [blame] | 1 | . ${ROOT_DIR}/${KERNEL_DIR}/build.config.gki.aarch64 |
| 2 | |
| 3 | DEFCONFIG=amlogic_gki_defconfig |
| 4 | PRE_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" |
| 5 | POST_DEFCONFIG_CMDS="rm ${ROOT_DIR}/${KERNEL_DIR}/arch/arm64/configs/${DEFCONFIG}" |
| 6 | |
| 7 | # needed for DT overlay support |
| 8 | DTC_FLAGS="-@" |
| 9 | |
| 10 | MAKE_GOALS="${MAKE_GOALS} |
Kevin Hilman | 6bac618 | 2021-02-09 17:05:30 -0800 | [diff] [blame] | 11 | dtbs |
Kevin Hilman | 9eb5a3a | 2020-12-09 20:27:05 -0800 | [diff] [blame] | 12 | " |
| 13 | |
| 14 | FILES="${FILES} |
| 15 | arch/arm64/boot/Image.lz4 |
Kevin Hilman | 6bac618 | 2021-02-09 17:05:30 -0800 | [diff] [blame] | 16 | arch/arm64/boot/dts/amlogic/meson-g12a-sei510*.dtb |
| 17 | arch/arm64/boot/dts/amlogic/meson-sm1-sei610*.dtb |
| 18 | arch/arm64/boot/dts/amlogic/meson-sm1-khadas-vim3l*.dtb |
| 19 | arch/arm64/boot/dts/amlogic/meson-g12b-a311d-khadas-vim3*.dtb |
Kevin Hilman | 9eb5a3a | 2020-12-09 20:27:05 -0800 | [diff] [blame] | 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 | # |
| 29 | EXTRA_CMDS="lz4_compress" |
| 30 | function lz4_compress() { |
| 31 | lz4 -f -12 --favor-decSpeed ${OUT_DIR}/arch/arm64/boot/Image ${OUT_DIR}/arch/arm64/boot/Image.lz4 |
| 32 | } |