diff options
| author | Jitesh Pramodray <jiteshprm@gmail.com> | 2021-02-26 21:52:18 +0000 |
|---|---|---|
| committer | Otavio Salvador <otavio@ossystems.com.br> | 2021-03-09 08:29:10 -0300 |
| commit | 97d2ea43c86121c301360596a351a9cd5ea467fb (patch) | |
| tree | a88fd0e21644687625ddf0e1eeab2399fffbd39e | |
| parent | 2c5429f00e5b9b717cddd9e13e1302f7bdea57e1 (diff) | |
| download | meta-freescale-97d2ea43c86121c301360596a351a9cd5ea467fb.tar.gz | |
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 <jiteshprm@gmail.com>
| -rw-r--r-- | recipes-kernel/linux/linux-fslc/armv8a/defconfig | 5 | ||||
| -rw-r--r-- | recipes-kernel/linux/linux-fslc/defconfig | 6 | ||||
| -rw-r--r-- | recipes-kernel/linux/linux-fslc/mx25/defconfig | 6 | ||||
| -rw-r--r-- | recipes-kernel/linux/linux-fslc/mxs/defconfig | 6 |
4 files changed, 23 insertions, 0 deletions
diff --git a/recipes-kernel/linux/linux-fslc/armv8a/defconfig b/recipes-kernel/linux/linux-fslc/armv8a/defconfig index 57c060752..df595480d 100644 --- a/recipes-kernel/linux/linux-fslc/armv8a/defconfig +++ b/recipes-kernel/linux/linux-fslc/armv8a/defconfig | |||
| @@ -1090,3 +1090,8 @@ CONFIG_DEBUG_KERNEL=y | |||
| 1090 | # CONFIG_DEBUG_PREEMPT is not set | 1090 | # CONFIG_DEBUG_PREEMPT is not set |
| 1091 | # CONFIG_FTRACE is not set | 1091 | # CONFIG_FTRACE is not set |
| 1092 | CONFIG_MEMTEST=y | 1092 | CONFIG_MEMTEST=y |
| 1093 | CONFIG_KPROBES=y | ||
| 1094 | CONFIG_KRETPROBES=y | ||
| 1095 | CONFIG_FUNCTION_ERROR_INJECTION=y | ||
| 1096 | # CONFIG_KPROBES_SANITY_TEST is not set | ||
| 1097 | |||
diff --git a/recipes-kernel/linux/linux-fslc/defconfig b/recipes-kernel/linux/linux-fslc/defconfig index 5e216107a..127e38f25 100644 --- a/recipes-kernel/linux/linux-fslc/defconfig +++ b/recipes-kernel/linux/linux-fslc/defconfig | |||
| @@ -473,3 +473,9 @@ CONFIG_DEBUG_FS=y | |||
| 473 | CONFIG_PROVE_LOCKING=y | 473 | CONFIG_PROVE_LOCKING=y |
| 474 | # CONFIG_DEBUG_BUGVERBOSE is not set | 474 | # CONFIG_DEBUG_BUGVERBOSE is not set |
| 475 | # CONFIG_FTRACE is not set | 475 | # CONFIG_FTRACE is not set |
| 476 | CONFIG_KPROBES=y | ||
| 477 | CONFIG_OPTPROBES=y | ||
| 478 | CONFIG_KRETPROBES=y | ||
| 479 | # CONFIG_ARM_KPROBES_TEST is not set | ||
| 480 | # CONFIG_KPROBES_SANITY_TEST is not set | ||
| 481 | |||
diff --git a/recipes-kernel/linux/linux-fslc/mx25/defconfig b/recipes-kernel/linux/linux-fslc/mx25/defconfig index bb70acc6b..21672504f 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 | |||
| 185 | CONFIG_NLS_ISO8859_15=m | 185 | CONFIG_NLS_ISO8859_15=m |
| 186 | CONFIG_FONTS=y | 186 | CONFIG_FONTS=y |
| 187 | CONFIG_FONT_8x8=y | 187 | CONFIG_FONT_8x8=y |
| 188 | CONFIG_KPROBES=y | ||
| 189 | CONFIG_OPTPROBES=y | ||
| 190 | CONFIG_KRETPROBES=y | ||
| 191 | # CONFIG_ARM_KPROBES_TEST is not set | ||
| 192 | # CONFIG_KPROBES_SANITY_TEST is not set | ||
| 193 | |||
diff --git a/recipes-kernel/linux/linux-fslc/mxs/defconfig b/recipes-kernel/linux/linux-fslc/mxs/defconfig index a9c6f32a9..a913c0ddb 100644 --- a/recipes-kernel/linux/linux-fslc/mxs/defconfig +++ b/recipes-kernel/linux/linux-fslc/mxs/defconfig | |||
| @@ -172,3 +172,9 @@ CONFIG_PROVE_LOCKING=y | |||
| 172 | CONFIG_BLK_DEV_IO_TRACE=y | 172 | CONFIG_BLK_DEV_IO_TRACE=y |
| 173 | CONFIG_STRICT_DEVMEM=y | 173 | CONFIG_STRICT_DEVMEM=y |
| 174 | CONFIG_DEBUG_USER=y | 174 | CONFIG_DEBUG_USER=y |
| 175 | CONFIG_KPROBES=y | ||
| 176 | CONFIG_OPTPROBES=y | ||
| 177 | CONFIG_KRETPROBES=y | ||
| 178 | # CONFIG_ARM_KPROBES_TEST is not set | ||
| 179 | # CONFIG_KPROBES_SANITY_TEST is not set | ||
| 180 | |||
