Skip to contentSkip to conversation

populate_sdk_ext.bbclass: Be more permissive on the name of the buildtools

PATCH New Mark Hatle 1 participant 1 message Nov 20, 2015

lore
Share & tools
lore

Mark Hatle

author
#0 lore raw

PATCH 1/1 populate_sdk_ext.bbclass: Be more permissive on the name of the buildtools

We want to support different names for the buildtools tarball. The name may not always be of the default oe-core format.

For instance, at Wind River we define the built-tools name to be:

${SDK_ARCH}-buildtools-nativesdk-standalone-${DISTRO_VERSION}

because thes standard SDK_NAME has additional information that is not relevant to the builtools tarball.

---
 meta/classes/populate_sdk_ext.bbclass | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
meta/classes/populate_sdk_ext.bbclass +1 -4
index 249ec36..e4e0233 100644
@@ -187,10 +187,7 @@ python copy_buildsystem () {
 }
 
 def extsdk_get_buildtools_filename(d):
-    # This is somewhat of a hack
-    localdata = bb.data.createCopy(d)
-    localdata.setVar('PN', 'buildtools-tarball')
-    return localdata.expand('${SDK_NAME}-buildtools-nativesdk-standalone-*.sh')
+    return '*-buildtools-nativesdk-standalone-*.sh'
 
 install_tools() {
 	install -d ${SDK_OUTPUT}/${SDKPATHNATIVE}${bindir_nativesdk}
Signature · 1 line
2.5.0