aboutsummaryrefslogtreecommitdiff
path: root/build.config.redbull.gcc
blob: a805451fc3efa4d97d04a7b57376a970a78626a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
KERNEL_DIR=private/msm-google
. ${ROOT_DIR}/${KERNEL_DIR}/build.config.redbull.common
KCFLAGS='-fno-tree-vrp'
POST_DEFCONFIG_CMDS="check_defconfig && update_gcc_config"

function update_gcc_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 \
    -d SHADOW_CALL_STACK
  (cd ${OUT_DIR} && \
    make O=${OUT_DIR} $archsubarch CROSS_COMPILE=${CROSS_COMPILE} olddefconfig)
}