Skip to contentSkip to conversation

nativesdk.bbclass: Fix the remapping code on nativesdk

RFC PATCH New Mark Hatle 1 participant 1 message Mar 28, 2013

lore
Share & tools
lore

Mark Hatle

author
#0 lore raw

RFC PATCH 1/1 nativesdk.bbclass: Fix the remapping code on nativesdk

The following patch is being sent to the oe-core list in order to meet our Yocto Project compliance requirements. We don't believe this patch is generally applicable to Denzil.

The purpose of this change is to fix the way automatic dependencies and such are generated when creating nativesdk packages. (This approach was abandoned in the Danny development and replaced with the multilib approach.)

---

When remapping the nativesdk we need to change the values of PACKAGES, as well as the various R* items. But not only the values, but we need to rename the vars to their new PACKAGES entries.

In addition, if a package has "-nativesdk" already in the name we want to add it to RPROVIDES to avoid compatibility problems.

---
 meta/classes/insane.bbclass    |    2 +
 meta/classes/nativesdk.bbclass |   61 +++++++++++++++++++++++++++++++++++----
 2 files changed, 56 insertions(+), 7 deletions(-)
meta/classes/insane.bbclass +2 -0
index 85ccdab..6a80ccf 100644
@@ -213,6 +213,8 @@ def package_qa_check_staticdev(path, name, d, elf, messages):
     libgcc.a, libgcov.a will be skipped in their packages
     """
 
+    if name.endswith("-nativesdk"):
+        name = name.replace("-nativesdk", "")
     if not name.endswith("-pic") and not name.endswith("-staticdev") and path.endswith(".a") and not path.endswith("_nonshared.a"):
         messages.append("non -staticdev package contains static .a library: %s path '%s'" % \
                  (name, package_qa_clean_path(path,d)))
meta/classes/nativesdk.bbclass +54 -7

74 lines not on this page · raw message

Signature · 1 line
1.7.1