Skip to contentSkip to conversation

staging.bbclass: Inlcude native dirs for nativesdk build

PATCH Superseded Vyacheslav Yurkov 1 participant 1 message Nov 10, 2023

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging.bbclass: Inlcude native dirs for nativesdk build

Some build systems (like cmake) check whether target binaries are present even if they are not used during compilation. Excluded ${bindir} causes such recipes to faile to build nativesdk variant. The good example of that is protobuf/grps nativesdk build.

For more details refer this long discussion:
https://lists.openembedded.org/g/openembedded-devel/topic/101679410#105284

---
 meta/classes-global/staging.bbclass | 1 +
 1 file changed, 1 insertion(+)
meta/classes-global/staging.bbclass +1 -0
index d229f40107..72c811d609 100644
@@ -26,6 +26,7 @@ SYSROOT_DIRS_NATIVE = " \
     ${localstatedir} \
 "
 SYSROOT_DIRS:append:class-native = " ${SYSROOT_DIRS_NATIVE}"
+SYSROOT_DIRS:append:class-nativesdk = " ${SYSROOT_DIRS_NATIVE}"
 SYSROOT_DIRS:append:class-cross = " ${SYSROOT_DIRS_NATIVE}"
 SYSROOT_DIRS:append:class-crosssdk = " ${SYSROOT_DIRS_NATIVE}"
 
Signature · 1 line
2.35.1