Skip to contentSkip to conversation

Add native support for socsec dependencies

PATCH In review Andrew Jeffery 2 participants 5 messages Aug 5, 2021

lore
Share & tools
lore
#0 lore raw

cover Add native support for socsec dependencies

Hello,

This series is two patches adding native support for dependencies of ASPEED's socsec package from OpenBMC's meta-aspeed layer:

https://github.com/openbmc/openbmc/blob/04fa7fa906a548beb1012f3583a194a6b9798244/meta-aspeed/recipes-aspeed/python/socsec_git.bb

socsec is a set of tools used to sign bootloaders and form a hardware root of trust in ASPEED BMC SoCs. The socsec tools are integrated into the meta-aspeed u-boot recipe to sign the bootloader at build-time:

https://github.com/openbmc/openbmc/blob/04fa7fa906a548beb1012f3583a194a6b9798244/meta-aspeed/recipes-bsp/u-boot/u-boot-aspeed-sdk_2019.04.bb#L6

https://github.com/openbmc/openbmc/blob/04fa7fa906a548beb1012f3583a194a6b9798244/meta-aspeed/classes/socsec-sign.bbclass

Please review!

Andrew

Andrew Jeffery (2):
meta-oe: python3-gmpy: Add native support
meta-oe: python3-ecdsa: Add native support

 meta-python/recipes-devtools/python/python3-ecdsa_0.17.0.bb | 4 +++-
 meta-python/recipes-devtools/python/python3-gmpy2_2.0.8.bb  | 3 ++-
 2 files changed, 5 insertions(+), 2 deletions(-)
Signature · 1 line
2.30.2
#1 lore raw

PATCH 1/2 meta-oe: python3-gmpy: Add native support

python3-gmpy is a transitive dependency of meta-aspeed's socsec package, via python3-ecdsa. socsec is a set of tools for signing bootloaders and forming a hardware root of trust for ASPEED BMC SoCs.

---
 meta-python/recipes-devtools/python/python3-gmpy2_2.0.8.bb | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
meta-python/recipes-devtools/python/python3-gmpy2_2.0.8.bb +2 -1
index c6edcbb3207a..976f57ab26a6 100644
@@ -10,4 +10,5 @@ PYPI_PACKAGE = "gmpy2"
 PYPI_PACKAGE_EXT = "zip"
 SRC_URI[sha256sum] = "dd233e3288b90f21b0bb384bcc7a7e73557bb112ccf0032ad52aa614eb373d3f"
 
-inherit pypi setuptools3
+inherit pypi setuptools3 python3native
+BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.30.2
#2 lore raw

Re: [oe] [meta-python][PATCH 1/2] meta-oe: python3-gmpy: Add native support

Quoted 4 lines · Andrew Jeffery

python3-gmpy is a transitive dependency of meta-aspeed's socsec package, via python3-ecdsa. socsec is a set of tools for signing bootloaders and forming a hardware root of trust for ASPEED BMC SoCs.

Thanks for your contributions Andrew, a small nit on subject line we dont need layer name. Format is something like below

recipe: short summary

Detailed commit explaination

I have fixed it this time around, so no need to send v2.

Quoted 21 lines
---
  meta-python/recipes-devtools/python/python3-gmpy2_2.0.8.bb | 3 ++-
  1 file changed, 2 insertions(+), 1 deletion(-)
meta-python/recipes-devtools/python/python3-gmpy2_2.0.8.bb +2 -1
index c6edcbb3207a..976f57ab26a6 100644
@@ -10,4 +10,5 @@ PYPI_PACKAGE = "gmpy2"
  PYPI_PACKAGE_EXT = "zip"
  SRC_URI[sha256sum] = "dd233e3288b90f21b0bb384bcc7a7e73557bb112ccf0032ad52aa614eb373d3f"
 
-inherit pypi setuptools3
+inherit pypi setuptools3 python3native
+BBCLASSEXTEND = "native nativesdk"
#3 lore raw

Re: [oe] [meta-python][PATCH 1/2] meta-oe: python3-gmpy: Add native support

Quoted 12 lines · Khem Raj
Quoted 4 lines · Andrew Jeffery

python3-gmpy is a transitive dependency of meta-aspeed's socsec package, via python3-ecdsa. socsec is a set of tools for signing bootloaders and forming a hardware root of trust for ASPEED BMC SoCs.

Thanks for your contributions Andrew, a small nit on subject line we dont need layer name. Format is something like below

Quoted 6 lines

recipe: short summary

Detailed commit explaination

I have fixed it this time around, so no need to send v2.

Ah, that was an oversight as I cherry-picked the commit from the openbmc tree where I originally wrote it.

Thanks for fixing it up!

Andrew

#4 lore raw

PATCH 2/2 meta-oe: python3-ecdsa: Add native support

In reply to Andrew Jeffery

python3-ecdsa is a dependency of meta-aspeed's socsec package. socsec is a set of tools for signing bootloaders and forming a hardware root of trust for ASPEED BMC SoCs.

---
 meta-python/recipes-devtools/python/python3-ecdsa_0.17.0.bb | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
meta-python/recipes-devtools/python/python3-ecdsa_0.17.0.bb +3 -1
index a217ecd22416..177019ccc21c 100644
@@ -8,6 +8,8 @@ DEPENDS += "python3-pip python3-pbr"
 PYPI_PACKAGE = "ecdsa"
 SRC_URI[sha256sum] = "b9f500bb439e4153d0330610f5d26baaf18d17b8ced1bc54410d189385ea68aa"
 
-inherit pypi setuptools3
+inherit pypi setuptools3 python3native
 
 RDEPENDS:${PN} += "python3-six python3-gmpy2 python3-pbr"
+
+BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.30.2