Files
kernel_google_msm-4.9/build.config.bonito_no-cfi
Petri Gynther 7b809a6a92 Pixel 3: build.config: fix make olddefconfig invocations
Add ${CC_LD_ARG} and remove unnecessary cruft.

Change-Id: I44fb7ea9a5c20b93a4fa4c5ed4d1d3ad903aba94
Signed-off-by: Petri Gynther <pgynther@google.com>
2019-08-12 21:11:44 -07:00

17 lines
458 B
Plaintext

DEFCONFIG=bonito_defconfig
KERNEL_DIR=private/msm-google
. ${ROOT_DIR}/${KERNEL_DIR}/build.config.common.clang
POST_DEFCONFIG_CMDS="check_defconfig && update_nocfi_config"
function update_nocfi_config() {
# Disable clang-specific options
${KERNEL_DIR}/scripts/config --file ${OUT_DIR}/.config \
-d LTO \
-d LTO_CLANG \
-d CFI \
-d CFI_PERMISSIVE \
-d CFI_CLANG
(cd ${OUT_DIR} && \
make ${CC_LD_ARG} O=${OUT_DIR} olddefconfig)
}