Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH] module.bbclass: do not strip packages if modules signing is enabled
@ 2019-08-08  9:57 dbaryshkov
  2019-08-08 11:44 ` Mittal, Anuj
  0 siblings, 1 reply; 3+ messages in thread
From: dbaryshkov @ 2019-08-08  9:57 UTC (permalink / raw)
  To: openembedded-core; +Cc: Dmitry Eremin-Solenikov

From: Dmitry Eremin-Solenikov <dmitry_eremin-solenikov@mentor.com>

Stripping kernel modules will also remove signature, thus we have to
inhibit package striping in case modules signatures are enabled.

Signed-off-by: Dmitry Eremin-Solenikov <dmitry_eremin-solenikov@mentor.com>
---
 meta/classes/module.bbclass | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/meta/classes/module.bbclass b/meta/classes/module.bbclass
index c0dfa3506133..31d5a2f21adc 100644
--- a/meta/classes/module.bbclass
+++ b/meta/classes/module.bbclass
@@ -72,3 +72,6 @@ EXPORT_FUNCTIONS do_compile do_install
 KERNEL_MODULES_META_PACKAGE = "${PN}"
 FILES_${PN} = ""
 ALLOW_EMPTY_${PN} = "1"
+
+# Do not strip modules if modules signing is enabled
+INHIBIT_PACKAGE_STRIP ?= "${@bb.utils.contains('DISTRO_FEATURES', 'modsign', '1', '0', d)}"
-- 
2.20.1



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

* Re: [PATCH] module.bbclass: do not strip packages if modules signing is enabled
  2019-08-08  9:57 [PATCH] module.bbclass: do not strip packages if modules signing is enabled dbaryshkov
@ 2019-08-08 11:44 ` Mittal, Anuj
  2019-08-08 12:09   ` Dmitry Eremin-Solenikov
  0 siblings, 1 reply; 3+ messages in thread
From: Mittal, Anuj @ 2019-08-08 11:44 UTC (permalink / raw)
  To: openembedded-core@lists.openembedded.org, dbaryshkov@gmail.com
  Cc: dmitry_eremin-solenikov@mentor.com

On Thu, 2019-08-08 at 12:57 +0300, dbaryshkov@gmail.com wrote:
> From: Dmitry Eremin-Solenikov <dmitry_eremin-solenikov@mentor.com>
> 
> Stripping kernel modules will also remove signature, thus we have to
> inhibit package striping in case modules signatures are enabled.
> 

Isn't this already being taken care of here:

https://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=8fc56faa5d76927f42a4e7cca2418556e231938f

Thanks,

Anuj

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

* Re: [PATCH] module.bbclass: do not strip packages if modules signing is enabled
  2019-08-08 11:44 ` Mittal, Anuj
@ 2019-08-08 12:09   ` Dmitry Eremin-Solenikov
  0 siblings, 0 replies; 3+ messages in thread
From: Dmitry Eremin-Solenikov @ 2019-08-08 12:09 UTC (permalink / raw)
  To: Mittal, Anuj
  Cc: dmitry_eremin-solenikov@mentor.com,
	openembedded-core@lists.openembedded.org

чт, 8 авг. 2019 г. в 14:44, Mittal, Anuj <anuj.mittal@intel.com>:
>
> On Thu, 2019-08-08 at 12:57 +0300, dbaryshkov@gmail.com wrote:
> > From: Dmitry Eremin-Solenikov <dmitry_eremin-solenikov@mentor.com>
> >
> > Stripping kernel modules will also remove signature, thus we have to
> > inhibit package striping in case modules signatures are enabled.
> >
>
> Isn't this already being taken care of here:
>
> https://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=8fc56faa5d76927f42a4e7cca2418556e231938f

Hmm, true. I missed that commit.

-- 
With best wishes
Dmitry


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

end of thread, other threads:[~2019-08-08 12:09 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-08-08  9:57 [PATCH] module.bbclass: do not strip packages if modules signing is enabled dbaryshkov
2019-08-08 11:44 ` Mittal, Anuj
2019-08-08 12:09   ` Dmitry Eremin-Solenikov

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