summaryrefslogtreecommitdiffstats
path: root/meta/classes/populate_sdk_ext.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2016-03-07 11:52:30 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-03-09 16:58:10 +0000
commit946d00c01f98561b509cfd2acdb9c769539ae765 (patch)
treecf65db9484020a8dee2b99a18df351a6e1c1ad64 /meta/classes/populate_sdk_ext.bbclass
parentba57ba1942546045907a7e1831515ad2da420ab2 (diff)
downloadpoky-946d00c01f98561b509cfd2acdb9c769539ae765.tar.gz
populate_sdk_ext: Update after uninative changes
(From OE-Core rev: 8b81bb56c69aabdea984352f8e267a9783c0bdbc) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/populate_sdk_ext.bbclass')
-rw-r--r--meta/classes/populate_sdk_ext.bbclass12
1 files changed, 8 insertions, 4 deletions
diff --git a/meta/classes/populate_sdk_ext.bbclass b/meta/classes/populate_sdk_ext.bbclass
index 6afc53d284..e1dbea9bcb 100644
--- a/meta/classes/populate_sdk_ext.bbclass
+++ b/meta/classes/populate_sdk_ext.bbclass
@@ -29,6 +29,7 @@ SDK_LOCAL_CONF_BLACKLIST ?= "CONF_VERSION \
29 PARALLEL_MAKE \ 29 PARALLEL_MAKE \
30 PRSERV_HOST \ 30 PRSERV_HOST \
31 SSTATE_MIRRORS \ 31 SSTATE_MIRRORS \
32 DL_DIR \
32 " 33 "
33SDK_INHERIT_BLACKLIST ?= "buildhistory icecc" 34SDK_INHERIT_BLACKLIST ?= "buildhistory icecc"
34SDK_UPDATE_URL ?= "" 35SDK_UPDATE_URL ?= ""
@@ -321,11 +322,17 @@ install_tools() {
321 lnr ${SDK_OUTPUT}/${SDKPATH}/${scriptrelpath}/recipetool ${SDK_OUTPUT}/${SDKPATHNATIVE}${bindir_nativesdk}/recipetool 322 lnr ${SDK_OUTPUT}/${SDKPATH}/${scriptrelpath}/recipetool ${SDK_OUTPUT}/${SDKPATHNATIVE}${bindir_nativesdk}/recipetool
322 touch ${SDK_OUTPUT}/${SDKPATH}/.devtoolbase 323 touch ${SDK_OUTPUT}/${SDKPATH}/.devtoolbase
323 324
325 localconf=${SDK_OUTPUT}/${SDKPATH}/conf/local.conf
326
324 # find latest buildtools-tarball and install it 327 # find latest buildtools-tarball and install it
325 buildtools_path=`ls -t1 ${SDK_DEPLOY}/${@extsdk_get_buildtools_filename(d)} | head -n1` 328 buildtools_path=`ls -t1 ${SDK_DEPLOY}/${@extsdk_get_buildtools_filename(d)} | head -n1`
326 install $buildtools_path ${SDK_OUTPUT}/${SDKPATH} 329 install $buildtools_path ${SDK_OUTPUT}/${SDKPATH}
327 330
328 install ${SDK_DEPLOY}/${BUILD_ARCH}-nativesdk-libc.tar.bz2 ${SDK_OUTPUT}/${SDKPATH} 331 # For now this is where uninative.bbclass expects the tarball
332 chksum=`md5sum ${SDK_DEPLOY}/${BUILD_ARCH}-nativesdk-libc.tar.bz2 | cut -f 1 -d ' '`
333 install -d ${SDK_OUTPUT}/${SDKPATH}/downloads/uninative/$chksum/
334 install ${SDK_DEPLOY}/${BUILD_ARCH}-nativesdk-libc.tar.bz2 ${SDK_OUTPUT}/${SDKPATH}/downloads/uninative/$chksum/
335 echo "UNINATIVE_CHECKSUM[${BUILD_ARCH}] = '$chksum'" >> ${SDK_OUTPUT}/${SDKPATH}/conf/local.conf
329 336
330 install -m 0644 ${COREBASE}/meta/files/ext-sdk-prepare.py ${SDK_OUTPUT}/${SDKPATH} 337 install -m 0644 ${COREBASE}/meta/files/ext-sdk-prepare.py ${SDK_OUTPUT}/${SDKPATH}
331} 338}
@@ -368,9 +375,6 @@ sdk_ext_postinst() {
368 # Warn if trying to use external bitbake and the ext SDK together 375 # Warn if trying to use external bitbake and the ext SDK together
369 echo "(which bitbake > /dev/null 2>&1 && echo 'WARNING: attempting to use the extensible SDK in an environment set up to run bitbake - this may lead to unexpected results. Please source this script in a new shell session instead.') || true" >> $env_setup_script 376 echo "(which bitbake > /dev/null 2>&1 && echo 'WARNING: attempting to use the extensible SDK in an environment set up to run bitbake - this may lead to unexpected results. Please source this script in a new shell session instead.') || true" >> $env_setup_script
370 377
371 # For now this is where uninative.bbclass expects the tarball
372 mv *-nativesdk-libc.tar.* $target_sdk_dir/`dirname ${oe_init_build_env_path}`
373
374 if [ "$prepare_buildsystem" != "no" -a -n "${@SDK_INSTALL_TARGETS.strip()}" ]; then 378 if [ "$prepare_buildsystem" != "no" -a -n "${@SDK_INSTALL_TARGETS.strip()}" ]; then
375 printf "Preparing build system...\n" 379 printf "Preparing build system...\n"
376 # dash which is /bin/sh on Ubuntu will not preserve the 380 # dash which is /bin/sh on Ubuntu will not preserve the