Skip to contentSkip to conversation

binutils: apply local fix for packaging of gprofng static library

PATCH New Denys Dmytriyenko 1 participant 2 messages Jun 13, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 binutils: apply local fix for packaging of gprofng static library

From: Denys Dmytriyenko <[email protected]>

The fix was submitted upstream to OE-Core[0], but due to other issues, it is currently sitting in a backlog queue. Apply it locally for now.

[0] https://patchwork.yoctoproject.org/project/oe-core/patch/[email protected]/

---
 .../recipes-devtools/binutils/binutils-cross-canadian_%.bbappend | 1 +
 1 file changed, 1 insertion(+)
 create mode 100644 meta-ti-bsp/recipes-devtools/binutils/binutils-cross-canadian_%.bbappend
meta-ti-bsp/recipes-devtools/binutils/binutils-cross-canadian_%.bbappend new file +1 -0
new file mode 100644
index 00000000..c18bbe7a
@@ -0,0 +1 @@
+FILES:${PN}-staticdev:append:ti-soc = " ${libdir}/gprofng/*.a"
Signature · 1 line
2.25.1
#1 lore raw

PATCH 2/2 optee: local fix for stray CFG_MAP_EXT_DT_SECURE=y in meta-arm

From: Denys Dmytriyenko <[email protected]>

Latest update in meta-arm added unconditional CFG_MAP_EXT_DT_SECURE=y that affects all platforms, but was only needed for qemu. And it also depends on CFG_DT=y, which is platform-specific. The fix was submitted upstream[0], overlay it locally until upstream resolves it.

[0] https://patchwork.yoctoproject.org/project/arm/patch/[email protected]/

---
 meta-ti-bsp/recipes-security/optee/optee-os-tadevkit-ti.inc   | 1 +
 .../recipes-security/optee/optee-os-tadevkit_%.bbappend       | 4 ++++
 meta-ti-bsp/recipes-security/optee/optee-os-ti.inc            | 2 ++
 3 files changed, 7 insertions(+)
 create mode 100644 meta-ti-bsp/recipes-security/optee/optee-os-tadevkit-ti.inc
 create mode 100644 meta-ti-bsp/recipes-security/optee/optee-os-tadevkit_%.bbappend
meta-ti-bsp/recipes-security/optee/optee-os-tadevkit-ti.inc new file +1 -0
new file mode 100644
index 00000000..df46e243
@@ -0,0 +1 @@
+EXTRA_OEMAKE:remove = "CFG_MAP_EXT_DT_SECURE=y"
meta-ti-bsp/recipes-security/optee/optee-os-tadevkit_%.bbappend new file +4 -0
new file mode 100644
index 00000000..08c5256b
@@ -0,0 +1,4 @@
+OPTEE_TI = ""
+OPTEE_TI:ti-soc = "${BPN}-ti.inc"
+
+require ${OPTEE_TI}
meta-ti-bsp/recipes-security/optee/optee-os-ti.inc +2 -0
index 20f88127..1f898a6d 100644
@@ -1,6 +1,8 @@
 # Use TI SECDEV for signing
 inherit ti-secdev
 
+EXTRA_OEMAKE:remove = "CFG_MAP_EXT_DT_SECURE=y"
+
 EXTRA_OEMAKE:append:k3 = "${@ ' CFG_CONSOLE_UART='+ d.getVar('OPTEE_K3_USART') if d.getVar('OPTEE_K3_USART') else ''}"
 
 EXTRA_OEMAKE:append:am62xx = " CFG_WITH_SOFTWARE_PRNG=y CFG_TEE_CORE_LOG_LEVEL=1"
Signature · 1 line
2.25.1