Since Commit 67274c083438340ad16c ("scripts/gdb: delay generation of gdb
constants.py") in kernel source tree (>=V5.1), scripts_gdb target needs
explicit run to build scripts/gdb. (vmlinux-gdb.py script is used by gdb for
linux kernel integration).

As this step was previously not needed, this suggest newer kernels builds
do not bundle it anymore, this change provides the same functionalities
for kernels >=V5.1 .

Signed-off-by: Olivier Dautricourt <olivierdautrico...@gmail.com>
---
 meta/classes-recipe/kernel.bbclass | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/meta/classes-recipe/kernel.bbclass 
b/meta/classes-recipe/kernel.bbclass
index 2ec9ea2091..5206b4f2a7 100644
--- a/meta/classes-recipe/kernel.bbclass
+++ b/meta/classes-recipe/kernel.bbclass
@@ -394,6 +394,9 @@ kernel_do_compile() {
        for typeformake in ${KERNEL_IMAGETYPE_FOR_MAKE} ; do
                oe_runmake ${PARALLEL_MAKE} ${typeformake} ${KERNEL_EXTRA_ARGS} 
$use_alternate_initrd
        done
+       if (grep -q -i -e '^CONFIG_GDB_SCRIPTS=y$' .config && grep -q -e 
"^PHONY +=.*scripts_gdb" "${S}/Makefile"); then
+               oe_runmake ${PARALLEL_MAKE} scripts_gdb
+       fi
 }
 
 kernel_do_transform_kernel() {
-- 
2.42.0

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#189115): 
https://lists.openembedded.org/g/openembedded-core/message/189115
Mute This Topic: https://lists.openembedded.org/mt/101960387/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to