From 97d2ea43c86121c301360596a351a9cd5ea467fb Mon Sep 17 00:00:00 2001 From: Jitesh Pramodray Date: Fri, 26 Feb 2021 21:52:18 +0000 Subject: linux-fslc: Fix build issue when compiling LTTng Fix compile error when building lttng using bitbake by: Enable kprobes configuration enabled from menuconfig Run diffconfig Copy the resulting diff contents into all the linux-fslc defconfig files Add end of line in defconfig Built the kernel with no warnings from do_kernel_configcheck task Add correct defconfig configuration for armv8a Tested on master branch from 3rd March 2021 Error: riotboard/fsl-community-bsp/build/tmp/work/ imx6dl_riotboard-fslc-linux-gnueabi/lttng-modules/2.12.4-r0/ lttng-modules-2.12.4/wrapper/kallsyms.c:20:3: error: 20 | # error "LTTng-modules requires CONFIG_KPROBES on kernels >= 5.7.0" | ^~~~~ make[3]: *** [riotboard/fsl-community-bsp/build/tmp/work-shared/ imx6dl-riotboard/kernel-source/scripts/Makefile.build:279: riotboard/fsl-community-bsp/build/tmp/work/ imx6dl_riotboard-fslc-linux-gnueabi/lttng-modules/2.12.4-r0/ lttng-modules-2.12.4/wrapper/kallsyms.o] Error 1 Compile flags: cd ~/riotboard/fsl-community-bsp MACHINE=imx6dl-riotboard DISTRO=fslc-framebuffer source setup-environment build bitbake fsl-image-machine-test Signed-off-by: Jitesh Pramodray --- recipes-kernel/linux/linux-fslc/mx25/defconfig | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'recipes-kernel/linux/linux-fslc/mx25/defconfig') diff --git a/recipes-kernel/linux/linux-fslc/mx25/defconfig b/recipes-kernel/linux/linux-fslc/mx25/defconfig index bb70acc6..21672504 100644 --- a/recipes-kernel/linux/linux-fslc/mx25/defconfig +++ b/recipes-kernel/linux/linux-fslc/mx25/defconfig @@ -185,3 +185,9 @@ CONFIG_NLS_ISO8859_1=y CONFIG_NLS_ISO8859_15=m CONFIG_FONTS=y CONFIG_FONT_8x8=y +CONFIG_KPROBES=y +CONFIG_OPTPROBES=y +CONFIG_KRETPROBES=y +# CONFIG_ARM_KPROBES_TEST is not set +# CONFIG_KPROBES_SANITY_TEST is not set + -- cgit v1.2.3-54-g00ecf