public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
* [PATCH] linux install.tmpl: added CONFIG_HAVE_OBJTOOL in OR for objtool
@ 2022-11-03 15:55 roberto.foglietta
  2022-11-07  8:02 ` Henning Schild
  2022-11-17  8:30 ` Anton Mikanovich
  0 siblings, 2 replies; 5+ messages in thread
From: roberto.foglietta @ 2022-11-03 15:55 UTC (permalink / raw)
  To: isar-users; +Cc: roberto.foglietta

From: "Roberto A. Foglietta" <roberto.foglietta@gmail.com>

linux install.tmpl: added OR with CONFIG_HAVE_OBJTOOL for objtools
a fix for newer kernels (since 5.19 for sure) to include objtool

The newer kernels (e.g. v5.19) when compiled and packaged by an ISAR
do not include the objectool anymore in linux headears package. This
obviously breaks any activity which expects to use that binary
executable.

Signed-off-by: Roberto A. Foglietta <roberto.foglietta@gmail.com>
---
 meta/recipes-kernel/linux/files/debian/isar/install.tmpl | 2 +-
 1 file changed, 1 insertion(+), 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 0a8645d..8a604e4 100644
--- a/meta/recipes-kernel/linux/files/debian/isar/install.tmpl
+++ b/meta/recipes-kernel/linux/files/debian/isar/install.tmpl
@@ -177,7 +177,7 @@ kernel_headers() {
         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
+    if [ -n "${CONFIG_STACK_VALIDATION}" -o -n "${CONFIG_HAVE_OBJTOOL}" ]; then
         (cd ${O}; find tools/objtool -type f -executable) >>${obj_hdr_files}
     fi
     if [ -n "${CONFIG_GCC_PLUGINS}" ]; then
-- 
2.34.1


https://16F0H.trk.elasticemail.com/tracking/unsubscribe?d=3jOzVG-V7m823VowZK7kvyjupKAxfR93A20ZBH27Tw2snM98VqVKUFuqqGN2zXKMtBn7lbq9vFJQ6Vm-MMVZSyJce7XP2cfOqAamSlAD5LtJ0

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] linux install.tmpl: added CONFIG_HAVE_OBJTOOL in OR for objtool
  2022-11-03 15:55 [PATCH] linux install.tmpl: added CONFIG_HAVE_OBJTOOL in OR for objtool roberto.foglietta
@ 2022-11-07  8:02 ` Henning Schild
  2022-11-07  9:46   ` Roberto A. Foglietta
  2022-11-17  8:30 ` Anton Mikanovich
  1 sibling, 1 reply; 5+ messages in thread
From: Henning Schild @ 2022-11-07  8:02 UTC (permalink / raw)
  To: roberto.foglietta; +Cc: isar-users

Am Thu, 03 Nov 2022 15:55:19 +0000
schrieb roberto.foglietta@gmail.com:

> From: "Roberto A. Foglietta" <roberto.foglietta@gmail.com>
> 
> linux install.tmpl: added OR with CONFIG_HAVE_OBJTOOL for objtools
> a fix for newer kernels (since 5.19 for sure) to include objtool
> 
> The newer kernels (e.g. v5.19) when compiled and packaged by an ISAR
> do not include the objectool anymore in linux headears package. This
> obviously breaks any activity which expects to use that binary
> executable.
> 
> Signed-off-by: Roberto A. Foglietta <roberto.foglietta@gmail.com>
> ---
>  meta/recipes-kernel/linux/files/debian/isar/install.tmpl | 2 +-
>  1 file changed, 1 insertion(+), 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
> 0a8645d..8a604e4 100644 ---
> a/meta/recipes-kernel/linux/files/debian/isar/install.tmpl +++
> b/meta/recipes-kernel/linux/files/debian/isar/install.tmpl @@ -177,7
> +177,7 @@ kernel_headers() { 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
> +    if [ -n "${CONFIG_STACK_VALIDATION}" -o -n
> "${CONFIG_HAVE_OBJTOOL}" ]; 

!x || !y is the same as ! (x && y)

i would find the latter more readable

Henning

> then (cd ${O}; find tools/objtool -type f
> -executable) >>${obj_hdr_files} fi
>      if [ -n "${CONFIG_GCC_PLUGINS}" ]; then


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] linux install.tmpl: added CONFIG_HAVE_OBJTOOL in OR for objtool
  2022-11-07  8:02 ` Henning Schild
@ 2022-11-07  9:46   ` Roberto A. Foglietta
  0 siblings, 0 replies; 5+ messages in thread
From: Roberto A. Foglietta @ 2022-11-07  9:46 UTC (permalink / raw)
  To: Henning Schild; +Cc: isar-users

On Mon, 7 Nov 2022 at 09:02, Henning Schild <henning.schild@siemens.com> wrote:
>
> Am Thu, 03 Nov 2022 15:55:19 +0000
> schrieb roberto.foglietta@gmail.com:

> > -    if [ -n "${CONFIG_STACK_VALIDATION}" ]; then
> > +    if [ -n "${CONFIG_STACK_VALIDATION}" -o -n
> > "${CONFIG_HAVE_OBJTOOL}" ];
>
> !x || !y is the same as ! (x && y)
>
> i would find the latter more readable
>

Dear Henning,

first of all, thanks for your feedback. Considering man test:

    -n STRINGthe length of STRING is nonzero

it should be read as (X OR Y). Instead, using AND would be:

     if ! test -z "${x}" -a -z "${y}"; then

For this reason, I think that the patch is correct.

Best regards, R-

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] linux install.tmpl: added CONFIG_HAVE_OBJTOOL in OR for objtool
  2022-11-03 15:55 [PATCH] linux install.tmpl: added CONFIG_HAVE_OBJTOOL in OR for objtool roberto.foglietta
  2022-11-07  8:02 ` Henning Schild
@ 2022-11-17  8:30 ` Anton Mikanovich
  2022-11-17 20:28   ` Roberto A. Foglietta
  1 sibling, 1 reply; 5+ messages in thread
From: Anton Mikanovich @ 2022-11-17  8:30 UTC (permalink / raw)
  To: roberto.foglietta, isar-users

03.11.2022 18:55, roberto.foglietta@gmail.com wrote:
> From: "Roberto A. Foglietta" <roberto.foglietta@gmail.com>
>
> linux install.tmpl: added OR with CONFIG_HAVE_OBJTOOL for objtools
> a fix for newer kernels (since 5.19 for sure) to include objtool
>
> The newer kernels (e.g. v5.19) when compiled and packaged by an ISAR
> do not include the objectool anymore in linux headears package. This
> obviously breaks any activity which expects to use that binary
> executable.
>
> Signed-off-by: Roberto A. Foglietta <roberto.foglietta@gmail.com>

Applied to next, thanks.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] linux install.tmpl: added CONFIG_HAVE_OBJTOOL in OR for objtool
  2022-11-17  8:30 ` Anton Mikanovich
@ 2022-11-17 20:28   ` Roberto A. Foglietta
  0 siblings, 0 replies; 5+ messages in thread
From: Roberto A. Foglietta @ 2022-11-17 20:28 UTC (permalink / raw)
  To: Anton Mikanovich; +Cc: isar-users

On Thu, 17 Nov 2022 at 09:30, Anton Mikanovich <amikan@ilbers.de> wrote:
>
> 03.11.2022 18:55, roberto.foglietta@gmail.com wrote:
> > From: "Roberto A. Foglietta" <roberto.foglietta@gmail.com>
> >
> > linux install.tmpl: added OR with CONFIG_HAVE_OBJTOOL for objtools
> > a fix for newer kernels (since 5.19 for sure) to include objtool
> >
> > The newer kernels (e.g. v5.19) when compiled and packaged by an ISAR
> > do not include the objectool anymore in linux headears package. This
> > obviously breaks any activity which expects to use that binary
> > executable.
> >
> > Signed-off-by: Roberto A. Foglietta <roberto.foglietta@gmail.com>
>
> Applied to next, thanks.
>

Hi Anton,

 I have integrated the isar next new HEAD into my project and tested
it against linux 5.10.150 (older) and 5.19.17 (newer) and both
linux-headers correctly includes objtool/objtool

$ for i in $(sudo find build -name linux-headers\*.deb); do dpkg -c $i
| grep -i objtool/objtool && echo $i; done

-rwxr-xr-x root/root    147464 2022-11-17 20:25
./usr/src/linux-headers-5.10.150/tools/objtool/objtool
build/tmp/work/debian-bullseye-amd64/linux-raidtest/5.19.17-r0/isar-apt/debian-bullseye-amd64/apt/debian-bullseye/pool/main/l/linux-raidtest/linux-headers-raidtest_5.10.150+r0_amd64.deb
-rwxr-xr-x root/root    180232 2022-11-17 20:58
./usr/src/linux-headers-5.19.17/tools/objtool/objtool
build/tmp/work/debian-bullseye-amd64/linux-raidtest/5.19.17-r0/linux-headers-raidtest_5.19.17+r0_amd64.deb
-rwxr-xr-x root/root    180232 2022-11-17 20:58
./usr/src/linux-headers-5.19.17/tools/objtool/objtool
build/tmp/deploy/isar-apt/debian-bullseye-amd64/apt/debian-bullseye/pool/main/l/linux-raidtest/linux-headers-raidtest_5.19.17+r0_amd64.deb

Best regards, R-

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-11-17 20:28 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-03 15:55 [PATCH] linux install.tmpl: added CONFIG_HAVE_OBJTOOL in OR for objtool roberto.foglietta
2022-11-07  8:02 ` Henning Schild
2022-11-07  9:46   ` Roberto A. Foglietta
2022-11-17  8:30 ` Anton Mikanovich
2022-11-17 20:28   ` Roberto A. Foglietta

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox