summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/populate_sdk_ext.bbclass10
1 files changed, 9 insertions, 1 deletions
diff --git a/meta/classes/populate_sdk_ext.bbclass b/meta/classes/populate_sdk_ext.bbclass
index 8509f0c25b..5dd60515d5 100644
--- a/meta/classes/populate_sdk_ext.bbclass
+++ b/meta/classes/populate_sdk_ext.bbclass
@@ -163,13 +163,21 @@ python copy_buildsystem () {
163 pass 163 pass
164} 164}
165 165
166def extsdk_get_buildtools_filename(d):
167 # This is somewhat of a hack
168 localdata = bb.data.createCopy(d)
169 localdata.setVar('PN', 'buildtools-tarball')
170 return localdata.expand('${SDK_NAME}-buildtools-nativesdk-standalone-*.sh')
171
166install_tools() { 172install_tools() {
167 install -d ${SDK_OUTPUT}/${SDKPATHNATIVE}${bindir_nativesdk} 173 install -d ${SDK_OUTPUT}/${SDKPATHNATIVE}${bindir_nativesdk}
168 lnr ${SDK_OUTPUT}/${SDKPATH}/${scriptrelpath}/devtool ${SDK_OUTPUT}/${SDKPATHNATIVE}${bindir_nativesdk}/devtool 174 lnr ${SDK_OUTPUT}/${SDKPATH}/${scriptrelpath}/devtool ${SDK_OUTPUT}/${SDKPATHNATIVE}${bindir_nativesdk}/devtool
169 lnr ${SDK_OUTPUT}/${SDKPATH}/${scriptrelpath}/recipetool ${SDK_OUTPUT}/${SDKPATHNATIVE}${bindir_nativesdk}/recipetool 175 lnr ${SDK_OUTPUT}/${SDKPATH}/${scriptrelpath}/recipetool ${SDK_OUTPUT}/${SDKPATHNATIVE}${bindir_nativesdk}/recipetool
170 touch ${SDK_OUTPUT}/${SDKPATH}/.devtoolbase 176 touch ${SDK_OUTPUT}/${SDKPATH}/.devtoolbase
171 177
172 install ${SDK_DEPLOY}/${DISTRO}-${TCLIBC}-${SDK_ARCH}-buildtools-tarball-${TUNE_PKGARCH}-buildtools-nativesdk-standalone-${DISTRO_VERSION}.sh ${SDK_OUTPUT}/${SDKPATH} 178 # find latest buildtools-tarball and install it
179 buildtools_path=`ls -t1 ${SDK_DEPLOY}/${@extsdk_get_buildtools_filename(d)} | head -n1`
180 install $buildtools_path ${SDK_OUTPUT}/${SDKPATH}
173 181
174 install ${SDK_DEPLOY}/${BUILD_ARCH}-nativesdk-libc.tar.bz2 ${SDK_OUTPUT}/${SDKPATH} 182 install ${SDK_DEPLOY}/${BUILD_ARCH}-nativesdk-libc.tar.bz2 ${SDK_OUTPUT}/${SDKPATH}
175} 183}