blob: 24c58d553d94fd318c599dff8bd5ac816fb10229 [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 \
Michael Spectere6ceb1882021-02-22 20:16:25 -05005 -d LTO_CLANG_THIN \
Sami Tolvanen3500abc2021-03-06 07:53:39 -08006 -d LTO_CLANG_FULL \
Michael Spectere6ceb1882021-02-22 20:16:25 -05007 -d CFI_PERMISSIVE \
8 -d CFI_CLANG \
9 -e CONFIG_DYNAMIC_FTRACE \
10 -e CONFIG_FUNCTION_TRACER \
11 -e CONFIG_IRQSOFF_TRACER \
12 -e CONFIG_FUNCTION_PROFILER \
13 -e CONFIG_PREEMPT_TRACER \
14 -e CONFIG_CHECKPOINT_RESTORE \
15 -d CONFIG_RANDOMIZE_BASE
16 (cd ${OUT_DIR} && \
17 make ${CC_LD_ARG} O=${OUT_DIR} olddefconfig)
18}
19