Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

Commit

Permalink
build.config: add build time logic for built-in modules
Browse files Browse the repository at this point in the history
Signed-off-by: Vaisakh Murali <[email protected]>
  • Loading branch information
mvaisakh committed Jan 25, 2024
1 parent 5d8c6f7 commit bc9f823
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions build.config.msm.gki
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,14 @@ function generate_defconfig() {
DEFCONFIG=vendor/${MSM_ARCH}-${VARIANT}_defconfig
append_cmd PRE_DEFCONFIG_CMDS 'generate_defconfig'

function builtin_defconfig() {
${KERNEL_DIR}/scripts/gki/fragment_allyesconfig.sh arch/arm64/configs/${DEFCONFIG} arch/arm64/configs/vendor/${MSM_ARCH}-builtin_defconfig
}

if [ ${BUILTIN} == "1"]; then
append_cmd PRE_DEFCONFIG_CMDS 'builtin_defconfig'
fi

if [ -z "${GKI_RAMDISK_PREBUILT_BINARY}" ]; then
GKI_RAMDISK_PREBUILT_BINARY=prebuilts/boot-artifacts/${ARCH}/gki-ramdisk.cpio.gz
fi
Expand Down

0 comments on commit bc9f823

Please sign in to comment.