From 8763041a37b7c799910f020a6fead9280a60549c Mon Sep 17 00:00:00 2001 From: Gokul krishna Krishnakumar Date: Tue, 13 Dec 2022 10:26:52 -0800 Subject: [PATCH] build.config: Add build config support for allyesconfig Building kernel with allyesconfig configuration creates .config file by setting all symbols to 'y' as much as possilble. Change-Id: I35666851ea3eb03f818bddfac0e587129a32648a Signed-off-by: Gokul krishna Krishnakumar --- build.config.allyesconfig | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 build.config.allyesconfig diff --git a/build.config.allyesconfig b/build.config.allyesconfig new file mode 100644 index 000000000000..f3e0f0468308 --- /dev/null +++ b/build.config.allyesconfig @@ -0,0 +1,16 @@ +################################################################################ +# Common MSM configuration for building non-GKI-based kernels +DEFCONFIG="gki_defconfig" + +function build_defconfig_fragments() { + if [[ "${VARIANT}" =~ ^(perf_defconfig)$ ]]; then + apply_defconfig_fragment ${KERNEL_DIR}/arch/${ARCH}/configs/vendor/${MSM_ARCH}_GKI.config vendor/${MSM_ARCH}-${DEFCONFIG} + fi +} +build_defconfig_fragments + +function update_config() { + (cd ${OUT_DIR} && \ + make O=${OUT_DIR} $archsubarch CROSS_COMPILE=${CROSS_COMPILE} ${TOOL_ARGS} ${MAKE_ARGS} mod2yesconfig) +} +POST_DEFCONFIG_CMDS="update_config"