android_kernel_xiaomi_sm8450/build.config.amlogic
Kevin Hilman 9eb5a3a29e ANDROID: GKI: add support for Amlogic SoCs, everything as modules
Add build config, and kernel config fragment to build a GKI kernel for
Amlogic SoCs with *all* SoC-specific functionality built as modules.

Bug: 179406580
Change-Id: I76664649b00f968819f9c8fefd18656e0b519e79
Signed-off-by: Kevin Hilman <khilman@baylibre.com>
(cherry picked from commit db7b42ae4d8de5d9616f88ebf831b2752d08b47b kernel/common android-mainline)
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
2021-02-12 10:08:03 +01:00

36 lines
1.3 KiB
Plaintext

. ${ROOT_DIR}/${KERNEL_DIR}/build.config.gki.aarch64
DEFCONFIG=amlogic_gki_defconfig
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"
POST_DEFCONFIG_CMDS="rm ${ROOT_DIR}/${KERNEL_DIR}/arch/arm64/configs/${DEFCONFIG}"
# needed for DT overlay support
DTC_FLAGS="-@"
MAKE_GOALS="${MAKE_GOALS}
amlogic/meson-g12a-sei510.dtb
amlogic/meson-sm1-sei610.dtb
amlogic/meson-sm1-khadas-vim3l.dtb
amlogic/meson-g12b-a311d-khadas-vim3.dtb
"
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
}