blob: d4a7e7ae9cd48c316f3d778b7c3a7c9766d79b50 [file] [log] [blame]
Michael Spectere6ceb1882021-02-22 20:16:25 -05001DEFCONFIG=gki_defconfig
2POST_DEFCONFIG_CMDS="check_defconfig && update_kprobes_config"
3function update_kprobes_config() {
4 ${KERNEL_DIR}/scripts/config --file ${OUT_DIR}/.config \
5 -d LTO \
6 -d LTO_CLANG_THIN \
7 -d CFI \
8 -d CFI_PERMISSIVE \
9 -d CFI_CLANG \
10 -e CONFIG_DYNAMIC_FTRACE \
11 -e CONFIG_FUNCTION_TRACER \
12 -e CONFIG_IRQSOFF_TRACER \
13 -e CONFIG_FUNCTION_PROFILER \
14 -e CONFIG_PREEMPT_TRACER \
15 -e CONFIG_CHECKPOINT_RESTORE \
16 -d CONFIG_RANDOMIZE_BASE
17 (cd ${OUT_DIR} && \
18 make ${CC_LD_ARG} O=${OUT_DIR} olddefconfig)
19}
20