]> code.ossystems Code Review - meta-freescale.git/commitdiff
linux-fslc: Fix build issue when compiling LTTng
authorJitesh Pramodray <jiteshprm@gmail.com>
Fri, 26 Feb 2021 21:52:18 +0000 (21:52 +0000)
committerOtavio Salvador <otavio@ossystems.com.br>
Tue, 9 Mar 2021 11:29:10 +0000 (08:29 -0300)
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 <jiteshprm@gmail.com>
recipes-kernel/linux/linux-fslc/armv8a/defconfig
recipes-kernel/linux/linux-fslc/defconfig
recipes-kernel/linux/linux-fslc/mx25/defconfig
recipes-kernel/linux/linux-fslc/mxs/defconfig

index 57c06075250e378de74d35db720fd92b58f2ede4..df595480da069a5915aaca185fba98b50d4cd13f 100644 (file)
@@ -1090,3 +1090,8 @@ CONFIG_DEBUG_KERNEL=y
 # CONFIG_DEBUG_PREEMPT is not set
 # CONFIG_FTRACE is not set
 CONFIG_MEMTEST=y
+CONFIG_KPROBES=y
+CONFIG_KRETPROBES=y
+CONFIG_FUNCTION_ERROR_INJECTION=y
+# CONFIG_KPROBES_SANITY_TEST is not set
+
index 5e216107affafca2cfb4561d44f6cc8d68e6ffc4..127e38f2518fed136f345719ebc4ebf0b78ffc3e 100644 (file)
@@ -473,3 +473,9 @@ CONFIG_DEBUG_FS=y
 CONFIG_PROVE_LOCKING=y
 # CONFIG_DEBUG_BUGVERBOSE is not set
 # CONFIG_FTRACE is not set
+CONFIG_KPROBES=y
+CONFIG_OPTPROBES=y
+CONFIG_KRETPROBES=y
+# CONFIG_ARM_KPROBES_TEST is not set
+# CONFIG_KPROBES_SANITY_TEST is not set
+
index bb70acc6b52648a61d0459786eb940c41b6ec469..21672504fcbc021acb76b809b45bc940ea5b541c 100644 (file)
@@ -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
+
index a9c6f32a9b1c9d04ddca4ea9d7690aadcb143a40..a913c0ddbb4837478787c6528cc0387599fa7c75 100644 (file)
@@ -172,3 +172,9 @@ CONFIG_PROVE_LOCKING=y
 CONFIG_BLK_DEV_IO_TRACE=y
 CONFIG_STRICT_DEVMEM=y
 CONFIG_DEBUG_USER=y
+CONFIG_KPROBES=y
+CONFIG_OPTPROBES=y
+CONFIG_KRETPROBES=y
+# CONFIG_ARM_KPROBES_TEST is not set
+# CONFIG_KPROBES_SANITY_TEST is not set
+