* [PATCH] recipes-kernel: Check if CONFIG_MODULES is set
@ 2022-07-28 14:49 Quirin Gylstorff
2022-08-04 7:05 ` Anton Mikanovich
0 siblings, 1 reply; 2+ messages in thread
From: Quirin Gylstorff @ 2022-07-28 14:49 UTC (permalink / raw)
To: isar-users
From: Quirin Gylstorff <quirin.gylstorff@siemens.com>
This fixes an error during the kernel build with sbuild if
Modules.symvers doesn't exist as find returns 1 if a name
could not be found.
Signed-off-by: Quirin Gylstorff <quirin.gylstorff@siemens.com>
---
meta/recipes-kernel/linux/files/debian/isar/install.tmpl | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/meta/recipes-kernel/linux/files/debian/isar/install.tmpl b/meta/recipes-kernel/linux/files/debian/isar/install.tmpl
index c6b5059..909b01b 100644
--- a/meta/recipes-kernel/linux/files/debian/isar/install.tmpl
+++ b/meta/recipes-kernel/linux/files/debian/isar/install.tmpl
@@ -173,7 +173,10 @@ kernel_headers() {
(cd ${S}; find arch/${ARCH} -name module.lds -o -name Kbuild.platforms -o -name Platform) >>${src_hdr_files}
(cd ${S}; find $(find arch/${ARCH} -name include -o -name scripts -type d) -type f) >>${src_hdr_files}
- (cd ${O}; find arch/${ARCH}/include Module.symvers include scripts -type f) >>${obj_hdr_files}
+ if [ -n "${CONFIG_MODULES}" ]; then
+ echo Module.symvers >> ${obj_hdr_files}
+ fi
+ (cd ${O}; find arch/${ARCH}/include include scripts -type f) >>${obj_hdr_files}
if [ -n "${CONFIG_STACK_VALIDATION}" ]; then
(cd ${O}; find tools/objtool -type f -executable) >>${obj_hdr_files}
fi
--
2.35.1
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] recipes-kernel: Check if CONFIG_MODULES is set
2022-07-28 14:49 [PATCH] recipes-kernel: Check if CONFIG_MODULES is set Quirin Gylstorff
@ 2022-08-04 7:05 ` Anton Mikanovich
0 siblings, 0 replies; 2+ messages in thread
From: Anton Mikanovich @ 2022-08-04 7:05 UTC (permalink / raw)
To: Quirin Gylstorff, isar-users
28.07.2022 17:49, Quirin Gylstorff wrote:
> From: Quirin Gylstorff <quirin.gylstorff@siemens.com>
>
> This fixes an error during the kernel build with sbuild if
> Modules.symvers doesn't exist as find returns 1 if a name
> could not be found.
>
> Signed-off-by: Quirin Gylstorff <quirin.gylstorff@siemens.com>
Applied to next, thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-08-04 7:05 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-28 14:49 [PATCH] recipes-kernel: Check if CONFIG_MODULES is set Quirin Gylstorff
2022-08-04 7:05 ` Anton Mikanovich
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox