diff options
Diffstat (limited to 'meta/classes-recipe/populate_sdk_ext.bbclass')
-rw-r--r-- | meta/classes-recipe/populate_sdk_ext.bbclass | 20 |
1 files changed, 7 insertions, 13 deletions
diff --git a/meta/classes-recipe/populate_sdk_ext.bbclass b/meta/classes-recipe/populate_sdk_ext.bbclass index f5687e5899..2d7d661d25 100644 --- a/meta/classes-recipe/populate_sdk_ext.bbclass +++ b/meta/classes-recipe/populate_sdk_ext.bbclass | |||
@@ -40,7 +40,7 @@ ESDK_LOCALCONF_REMOVE ?= "CONF_VERSION \ | |||
40 | TMPDIR \ | 40 | TMPDIR \ |
41 | BB_SERVER_TIMEOUT \ | 41 | BB_SERVER_TIMEOUT \ |
42 | " | 42 | " |
43 | ESDK_CLASS_INHERIT_DISABLE ?= "buildhistory icecc" | 43 | ESDK_CLASS_INHERIT_DISABLE ?= "buildhistory" |
44 | SDK_UPDATE_URL ?= "" | 44 | SDK_UPDATE_URL ?= "" |
45 | 45 | ||
46 | SDK_TARGETS ?= "${PN}" | 46 | SDK_TARGETS ?= "${PN}" |
@@ -153,7 +153,6 @@ def create_filtered_tasklist(d, sdkbasepath, tasklistfile, conf_initpath): | |||
153 | f.write('SSTATE_MIRRORS:forcevariable = "file://universal/(.*) file://universal-4.9/\\1 file://universal-4.9/(.*) file://universal-4.8/\\1"\n') | 153 | f.write('SSTATE_MIRRORS:forcevariable = "file://universal/(.*) file://universal-4.9/\\1 file://universal-4.9/(.*) file://universal-4.8/\\1"\n') |
154 | # Ensure TMPDIR is the default so that clean_esdk_builddir() can delete it | 154 | # Ensure TMPDIR is the default so that clean_esdk_builddir() can delete it |
155 | f.write('TMPDIR:forcevariable = "${TOPDIR}/tmp"\n') | 155 | f.write('TMPDIR:forcevariable = "${TOPDIR}/tmp"\n') |
156 | f.write('TCLIBCAPPEND:forcevariable = ""\n') | ||
157 | # Drop uninative if the build isn't using it (or else NATIVELSBSTRING will | 156 | # Drop uninative if the build isn't using it (or else NATIVELSBSTRING will |
158 | # be different and we won't be able to find our native sstate) | 157 | # be different and we won't be able to find our native sstate) |
159 | if not bb.data.inherits_class('uninative', d): | 158 | if not bb.data.inherits_class('uninative', d): |
@@ -276,6 +275,8 @@ def write_bblayers_conf(d, baseoutpath, sdkbblayers): | |||
276 | def copy_uninative(d, baseoutpath): | 275 | def copy_uninative(d, baseoutpath): |
277 | import shutil | 276 | import shutil |
278 | 277 | ||
278 | uninative_checksum = None | ||
279 | |||
279 | # Copy uninative tarball | 280 | # Copy uninative tarball |
280 | # For now this is where uninative.bbclass expects the tarball | 281 | # For now this is where uninative.bbclass expects the tarball |
281 | if bb.data.inherits_class('uninative', d): | 282 | if bb.data.inherits_class('uninative', d): |
@@ -288,6 +289,8 @@ def copy_uninative(d, baseoutpath): | |||
288 | return uninative_checksum | 289 | return uninative_checksum |
289 | 290 | ||
290 | def write_local_conf(d, baseoutpath, derivative, core_meta_subdir, uninative_checksum): | 291 | def write_local_conf(d, baseoutpath, derivative, core_meta_subdir, uninative_checksum): |
292 | import shutil | ||
293 | |||
291 | #check if custome templateconf path is set | 294 | #check if custome templateconf path is set |
292 | use_custom_templateconf = d.getVar('SDK_CUSTOM_TEMPLATECONF') | 295 | use_custom_templateconf = d.getVar('SDK_CUSTOM_TEMPLATECONF') |
293 | 296 | ||
@@ -338,7 +341,6 @@ def write_local_conf(d, baseoutpath, derivative, core_meta_subdir, uninative_che | |||
338 | f.write('\n') | 341 | f.write('\n') |
339 | 342 | ||
340 | f.write('TMPDIR = "${TOPDIR}/tmp"\n') | 343 | f.write('TMPDIR = "${TOPDIR}/tmp"\n') |
341 | f.write('TCLIBCAPPEND = ""\n') | ||
342 | f.write('DL_DIR = "${TOPDIR}/downloads"\n') | 344 | f.write('DL_DIR = "${TOPDIR}/downloads"\n') |
343 | 345 | ||
344 | if bb.data.inherits_class('uninative', d): | 346 | if bb.data.inherits_class('uninative', d): |
@@ -411,10 +413,6 @@ def write_local_conf(d, baseoutpath, derivative, core_meta_subdir, uninative_che | |||
411 | if os.path.exists(builddir + dest_stub): | 413 | if os.path.exists(builddir + dest_stub): |
412 | shutil.copyfile(builddir + dest_stub, baseoutpath + dest_stub) | 414 | shutil.copyfile(builddir + dest_stub, baseoutpath + dest_stub) |
413 | 415 | ||
414 | cachedir = os.path.join(baseoutpath, 'cache') | ||
415 | bb.utils.mkdirhier(cachedir) | ||
416 | bb.parse.siggen.copy_unitaskhashes(cachedir) | ||
417 | |||
418 | # If PR Service is in use, we need to export this as well | 416 | # If PR Service is in use, we need to export this as well |
419 | bb.note('Do we have a pr database?') | 417 | bb.note('Do we have a pr database?') |
420 | if d.getVar("PRSERV_HOST"): | 418 | if d.getVar("PRSERV_HOST"): |
@@ -505,10 +503,6 @@ def prepare_locked_cache(d, baseoutpath, derivative, conf_initpath): | |||
505 | else: | 503 | else: |
506 | tasklistfn = None | 504 | tasklistfn = None |
507 | 505 | ||
508 | cachedir = os.path.join(baseoutpath, 'cache') | ||
509 | bb.utils.mkdirhier(cachedir) | ||
510 | bb.parse.siggen.copy_unitaskhashes(cachedir) | ||
511 | |||
512 | # Add packagedata if enabled | 506 | # Add packagedata if enabled |
513 | if d.getVar('SDK_INCLUDE_PKGDATA') == '1': | 507 | if d.getVar('SDK_INCLUDE_PKGDATA') == '1': |
514 | lockedsigs_base = d.getVar('WORKDIR') + '/locked-sigs-base.inc' | 508 | lockedsigs_base = d.getVar('WORKDIR') + '/locked-sigs-base.inc' |
@@ -730,7 +724,7 @@ sdk_ext_postinst() { | |||
730 | echo "# Save and reset OECORE_NATIVE_SYSROOT as buildtools may change it" >> $env_setup_script | 724 | echo "# Save and reset OECORE_NATIVE_SYSROOT as buildtools may change it" >> $env_setup_script |
731 | echo "SAVED=\"\$OECORE_NATIVE_SYSROOT\"" >> $env_setup_script | 725 | echo "SAVED=\"\$OECORE_NATIVE_SYSROOT\"" >> $env_setup_script |
732 | echo ". $target_sdk_dir/buildtools/environment-setup*" >> $env_setup_script | 726 | echo ". $target_sdk_dir/buildtools/environment-setup*" >> $env_setup_script |
733 | echo "OECORE_NATIVE_SYSROOT=\"\$SAVED\"" >> $env_setup_script | 727 | echo "export OECORE_NATIVE_SYSROOT=\"\$SAVED\"" >> $env_setup_script |
734 | fi | 728 | fi |
735 | 729 | ||
736 | # Allow bitbake environment setup to be ran as part of this sdk. | 730 | # Allow bitbake environment setup to be ran as part of this sdk. |
@@ -774,7 +768,7 @@ fakeroot python do_populate_sdk_ext() { | |||
774 | 768 | ||
775 | # FIXME hopefully we can remove this restriction at some point, but the eSDK | 769 | # FIXME hopefully we can remove this restriction at some point, but the eSDK |
776 | # can only be built for the primary (default) multiconfig | 770 | # can only be built for the primary (default) multiconfig |
777 | if d.getVar('BB_CURRENT_MC') != 'default': | 771 | if d.getVar('BB_CURRENT_MC') != '': |
778 | bb.fatal('The extensible SDK can currently only be built for the default multiconfig. Currently trying to build for %s.' % d.getVar('BB_CURRENT_MC')) | 772 | bb.fatal('The extensible SDK can currently only be built for the default multiconfig. Currently trying to build for %s.' % d.getVar('BB_CURRENT_MC')) |
779 | 773 | ||
780 | # eSDK dependencies don't use the traditional variables and things don't work properly if they are set | 774 | # eSDK dependencies don't use the traditional variables and things don't work properly if they are set |