49d7088c5f
build.config.gki sources a GKI_BUILD_CONFIG_FRAGMENT before all of the variables that are considered as part of a GKI kernel build are declared. This reduces the effectiveness of a GKI_BUILD_CONFIG_FRAGMENT, as it is only able to modify a subset of the build variables. Thus, move the logic to source GKI_BUILD_CONFIG_FRAGMENT to the end of the GKI build config files to provide more flexibility for a GKI_BUILD_CONFIG_FRAGMENT. Bug: 262930113 Change-Id: I74abb45f9043acce04cb0052f54fded4340a9366 [isaacmanjarres: Modified build.config.gki.riscv64, since that file did not exist on android13-5.15.] Signed-off-by: Isaac J. Manjarres <isaacmanjarres@google.com> (cherry picked from commit 69fefbb3db711e543ff0676526b7d285a4d10a14)
31 lines
915 B
Plaintext
31 lines
915 B
Plaintext
. ${ROOT_DIR}/${KERNEL_DIR}/build.config.common
|
|
. ${ROOT_DIR}/${KERNEL_DIR}/build.config.riscv64
|
|
. ${ROOT_DIR}/${KERNEL_DIR}/build.config.gki
|
|
|
|
MAKE_GOALS="${MAKE_GOALS}
|
|
Image.lz4
|
|
Image.gz
|
|
"
|
|
|
|
FILES="${FILES}
|
|
arch/riscv/boot/Image.lz4
|
|
arch/riscv/boot/Image.gz
|
|
"
|
|
|
|
BUILD_SYSTEM_DLKM=1
|
|
MODULES_LIST=${ROOT_DIR}/${KERNEL_DIR}/android/gki_system_dlkm_modules
|
|
|
|
BUILD_GKI_CERTIFICATION_TOOLS=1
|
|
|
|
BUILD_GKI_ARTIFACTS=1
|
|
BUILD_GKI_BOOT_IMG_SIZE=67108864
|
|
BUILD_GKI_BOOT_IMG_GZ_SIZE=47185920
|
|
BUILD_GKI_BOOT_IMG_LZ4_SIZE=53477376
|
|
|
|
PRE_DEFCONFIG_CMDS="mkdir -p \${OUT_DIR}/arch/riscv/configs/ && cat ${ROOT_DIR}/${KERNEL_DIR}/arch/riscv/configs/gki_defconfig ${ROOT_DIR}/${KERNEL_DIR}/arch/riscv/configs/64-bit.config ${ROOT_DIR}/${KERNEL_DIR}/arch/riscv/configs/gki.config > \${OUT_DIR}/arch/riscv/configs/${DEFCONFIG};"
|
|
POST_DEFCONFIG_CMDS=""
|
|
|
|
if [ -n "${GKI_BUILD_CONFIG_FRAGMENT}" ]; then
|
|
source ${GKI_BUILD_CONFIG_FRAGMENT}
|
|
fi
|