android_kernel_xiaomi_sm8450/build.config.allmodconfig
Sami Tolvanen 7bce37ec80 ANDROID: Disable dynamic ftrace for allmodconfig builds
With LTO, upstream prefers to generate __mcount_loc sections with
objtool, which depends on libelf-dev that's not available in the CI.
Disable DYNAMIC_FTRACE from allmodconfig builds temporarily to work
around the problem.

Bug: 140224784
Bug: 145210207
Change-Id: I42ae99ab0a32ca3e7dcec6eae5a3e5df4b23f0d3
Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
2020-12-16 08:56:36 -08:00

18 lines
487 B
Plaintext

DEFCONFIG=allmodconfig
HERMETIC_TOOLCHAIN=0
POST_DEFCONFIG_CMDS="update_config"
function update_config() {
${KERNEL_DIR}/scripts/config --file ${OUT_DIR}/.config \
-d TEST_KMOD \
-d CPU_BIG_ENDIAN \
-d DYNAMIC_FTRACE \
-e UNWINDER_FRAME_POINTER \
(cd ${OUT_DIR} && \
make O=${OUT_DIR} $archsubarch CROSS_COMPILE=${CROSS_COMPILE} "${TOOL_ARGS[@]}" ${MAKE_ARGS} olddefconfig)
}
ADDITIONAL_HOST_TOOLS="${ADDITIONAL_HOST_TOOLS} openssl"