]> code.ossystems Code Review - meta-freescale.git/commit
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)
commit97d2ea43c86121c301360596a351a9cd5ea467fb
treea88fd0e21644687625ddf0e1eeab2399fffbd39e
parent2c5429f00e5b9b717cddd9e13e1302f7bdea57e1
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>
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