Files
linux/build.config.amlogic
Ulises Mendez Martinez 54e26291eb ANDROID: Unnest MAKE_GOALS from build configs
* This is in preparation for migrating these
as `kernel_build` attributes. i.e. these will
be removed as a follow-up.

Bug: 236012223
Change-Id: I168c44fd76f9f2732caf8f5c00bec4ed8c96ee65
(cherry picked from commit ccc4fb8185b50958354d8d511823491030988131)
Signed-off-by: Ulises Mendez Martinez <umendez@google.com>
2023-05-02 16:38:39 +00:00

39 lines
1.2 KiB
Plaintext

. ${ROOT_DIR}/${KERNEL_DIR}/build.config.gki.aarch64
DEFCONFIG=amlogic_gki_defconfig
FRAGMENT_CONFIG=${KERNEL_DIR}/arch/arm64/configs/amlogic_gki.fragment
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}/${FRAGMENT_CONFIG}"
POST_DEFCONFIG_CMDS="rm ${ROOT_DIR}/${KERNEL_DIR}/arch/arm64/configs/${DEFCONFIG}"
# needed for DT overlay support
DTC_FLAGS="-@"
MAKE_GOALS="
Image
modules
Image.lz4
Image.gz
dtbs
"
FILES="${FILES}
arch/arm64/boot/Image.lz4
arch/arm64/boot/dts/amlogic/meson-g12a-sei510*.dtb
arch/arm64/boot/dts/amlogic/meson-sm1-sei610*.dtb
arch/arm64/boot/dts/amlogic/meson-sm1-khadas-vim3l*.dtb
arch/arm64/boot/dts/amlogic/meson-g12b-a311d-khadas-vim3*.dtb
"
#
# NOTE: Using Image.lz4 in MAKE_GOALS does not work because
# kernel build passes legacy option (-l) to lz4 command
# and u-boot fails to decompress. Instead, add custom
# command to lz4 compress same options as kernel, but
# without the -l.
#
EXTRA_CMDS="lz4_compress"
function lz4_compress() {
lz4 -f -12 --favor-decSpeed ${OUT_DIR}/arch/arm64/boot/Image ${OUT_DIR}/arch/arm64/boot/Image.lz4
}