summaryrefslogtreecommitdiffstats
path: root/meta/classes/populate_sdk_ext.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2021-07-28 23:28:15 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-08-02 15:44:10 +0100
commitbb6ddc3691ab04162ec5fd69a2d5e7876713fd15 (patch)
tree76e376b01253c3aace1a98a5021bcaad3c92e861 /meta/classes/populate_sdk_ext.bbclass
parentfcc456ee4b8f619134abb4649db53c638074082c (diff)
downloadpoky-bb6ddc3691ab04162ec5fd69a2d5e7876713fd15.tar.gz
Convert to new override syntax
This is the result of automated script conversion: scripts/contrib/convert-overrides.py <oe-core directory> converting the metadata to use ":" as the override character instead of "_". (From OE-Core rev: 42344347be29f0997cc2f7636d9603b1fe1875ae) 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.bbclass38
1 files changed, 19 insertions, 19 deletions
diff --git a/meta/classes/populate_sdk_ext.bbclass b/meta/classes/populate_sdk_ext.bbclass
index 4aabafa079..f67849708c 100644
--- a/meta/classes/populate_sdk_ext.bbclass
+++ b/meta/classes/populate_sdk_ext.bbclass
@@ -5,16 +5,16 @@ inherit populate_sdk_base
5# NOTE: normally you cannot use task overrides for this kind of thing - this 5# NOTE: normally you cannot use task overrides for this kind of thing - this
6# only works because of get_sdk_ext_rdepends() 6# only works because of get_sdk_ext_rdepends()
7 7
8TOOLCHAIN_HOST_TASK_task-populate-sdk-ext = " \ 8TOOLCHAIN_HOST_TASK:task-populate-sdk-ext = " \
9 meta-environment-extsdk-${MACHINE} \ 9 meta-environment-extsdk-${MACHINE} \
10 " 10 "
11 11
12TOOLCHAIN_TARGET_TASK_task-populate-sdk-ext = "" 12TOOLCHAIN_TARGET_TASK:task-populate-sdk-ext = ""
13 13
14SDK_RELOCATE_AFTER_INSTALL_task-populate-sdk-ext = "0" 14SDK_RELOCATE_AFTER_INSTALL:task-populate-sdk-ext = "0"
15 15
16SDK_EXT = "" 16SDK_EXT = ""
17SDK_EXT_task-populate-sdk-ext = "-ext" 17SDK_EXT:task-populate-sdk-ext = "-ext"
18 18
19# Options are full or minimal 19# Options are full or minimal
20SDK_EXT_TYPE ?= "full" 20SDK_EXT_TYPE ?= "full"
@@ -78,10 +78,10 @@ COREBASE_FILES ?= " \
78 .templateconf \ 78 .templateconf \
79" 79"
80 80
81SDK_DIR_task-populate-sdk-ext = "${WORKDIR}/sdk-ext" 81SDK_DIR:task-populate-sdk-ext = "${WORKDIR}/sdk-ext"
82B_task-populate-sdk-ext = "${SDK_DIR}" 82B:task-populate-sdk-ext = "${SDK_DIR}"
83TOOLCHAINEXT_OUTPUTNAME ?= "${SDK_NAME}-toolchain-ext-${SDK_VERSION}" 83TOOLCHAINEXT_OUTPUTNAME ?= "${SDK_NAME}-toolchain-ext-${SDK_VERSION}"
84TOOLCHAIN_OUTPUTNAME_task-populate-sdk-ext = "${TOOLCHAINEXT_OUTPUTNAME}" 84TOOLCHAIN_OUTPUTNAME:task-populate-sdk-ext = "${TOOLCHAINEXT_OUTPUTNAME}"
85 85
86SDK_EXT_TARGET_MANIFEST = "${SDK_DEPLOY}/${TOOLCHAINEXT_OUTPUTNAME}.target.manifest" 86SDK_EXT_TARGET_MANIFEST = "${SDK_DEPLOY}/${TOOLCHAINEXT_OUTPUTNAME}.target.manifest"
87SDK_EXT_HOST_MANIFEST = "${SDK_DEPLOY}/${TOOLCHAINEXT_OUTPUTNAME}.host.manifest" 87SDK_EXT_HOST_MANIFEST = "${SDK_DEPLOY}/${TOOLCHAINEXT_OUTPUTNAME}.host.manifest"
@@ -118,9 +118,9 @@ python write_host_sdk_ext_manifest () {
118 f.write("%s %s %s\n" % (info[1], info[2], info[3])) 118 f.write("%s %s %s\n" % (info[1], info[2], info[3]))
119} 119}
120 120
121SDK_POSTPROCESS_COMMAND_append_task-populate-sdk-ext = "write_target_sdk_ext_manifest; write_host_sdk_ext_manifest; " 121SDK_POSTPROCESS_COMMAND:append:task-populate-sdk-ext = "write_target_sdk_ext_manifest; write_host_sdk_ext_manifest; "
122 122
123SDK_TITLE_task-populate-sdk-ext = "${@d.getVar('DISTRO_NAME') or d.getVar('DISTRO')} Extensible SDK" 123SDK_TITLE:task-populate-sdk-ext = "${@d.getVar('DISTRO_NAME') or d.getVar('DISTRO')} Extensible SDK"
124 124
125def clean_esdk_builddir(d, sdkbasepath): 125def clean_esdk_builddir(d, sdkbasepath):
126 """Clean up traces of the fake build for create_filtered_tasklist()""" 126 """Clean up traces of the fake build for create_filtered_tasklist()"""
@@ -148,14 +148,14 @@ def create_filtered_tasklist(d, sdkbasepath, tasklistfile, conf_initpath):
148 with open(sdkbasepath + '/conf/local.conf', 'a') as f: 148 with open(sdkbasepath + '/conf/local.conf', 'a') as f:
149 # Force the use of sstate from the build system 149 # Force the use of sstate from the build system
150 f.write('\nSSTATE_DIR_forcevariable = "%s"\n' % d.getVar('SSTATE_DIR')) 150 f.write('\nSSTATE_DIR_forcevariable = "%s"\n' % d.getVar('SSTATE_DIR'))
151 f.write('SSTATE_MIRRORS_forcevariable = "file://universal/(.*) file://universal-4.9/\\1 file://universal-4.9/(.*) file://universal-4.8/\\1"\n') 151 f.write('SSTATE_MIRRORS:forcevariable = "file://universal/(.*) file://universal-4.9/\\1 file://universal-4.9/(.*) file://universal-4.8/\\1"\n')
152 # Ensure TMPDIR is the default so that clean_esdk_builddir() can delete it 152 # Ensure TMPDIR is the default so that clean_esdk_builddir() can delete it
153 f.write('TMPDIR_forcevariable = "${TOPDIR}/tmp"\n') 153 f.write('TMPDIR:forcevariable = "${TOPDIR}/tmp"\n')
154 f.write('TCLIBCAPPEND_forcevariable = ""\n') 154 f.write('TCLIBCAPPEND:forcevariable = ""\n')
155 # Drop uninative if the build isn't using it (or else NATIVELSBSTRING will 155 # Drop uninative if the build isn't using it (or else NATIVELSBSTRING will
156 # be different and we won't be able to find our native sstate) 156 # be different and we won't be able to find our native sstate)
157 if not bb.data.inherits_class('uninative', d): 157 if not bb.data.inherits_class('uninative', d):
158 f.write('INHERIT_remove = "uninative"\n') 158 f.write('INHERIT:remove = "uninative"\n')
159 159
160 # Unfortunately the default SDKPATH (or even a custom value) may contain characters that bitbake 160 # Unfortunately the default SDKPATH (or even a custom value) may contain characters that bitbake
161 # will not allow in its COREBASE path, so we need to rename the directory temporarily 161 # will not allow in its COREBASE path, so we need to rename the directory temporarily
@@ -342,7 +342,7 @@ python copy_buildsystem () {
342 f.write('CONF_VERSION = "%s"\n\n' % d.getVar('CONF_VERSION', False)) 342 f.write('CONF_VERSION = "%s"\n\n' % d.getVar('CONF_VERSION', False))
343 343
344 # Some classes are not suitable for SDK, remove them from INHERIT 344 # Some classes are not suitable for SDK, remove them from INHERIT
345 f.write('INHERIT_remove = "%s"\n' % d.getVar('SDK_INHERIT_BLACKLIST', False)) 345 f.write('INHERIT:remove = "%s"\n' % d.getVar('SDK_INHERIT_BLACKLIST', False))
346 346
347 # Bypass the default connectivity check if any 347 # Bypass the default connectivity check if any
348 f.write('CONNECTIVITY_CHECK_URIS = ""\n\n') 348 f.write('CONNECTIVITY_CHECK_URIS = ""\n\n')
@@ -358,7 +358,7 @@ python copy_buildsystem () {
358 f.write('SIGGEN_LOCKEDSIGS_TASKSIG_CHECK = "warn"\n\n') 358 f.write('SIGGEN_LOCKEDSIGS_TASKSIG_CHECK = "warn"\n\n')
359 359
360 # We want to be able to set this without a full reparse 360 # We want to be able to set this without a full reparse
361 f.write('BB_HASHCONFIG_WHITELIST_append = " SIGGEN_UNLOCKED_RECIPES"\n\n') 361 f.write('BB_HASHCONFIG_WHITELIST:append = " SIGGEN_UNLOCKED_RECIPES"\n\n')
362 362
363 # Set up whitelist for run on install 363 # Set up whitelist for run on install
364 f.write('BB_SETSCENE_ENFORCE_WHITELIST = "%:* *:do_shared_workdir *:do_rm_work wic-tools:* *:do_addto_recipe_sysroot"\n\n') 364 f.write('BB_SETSCENE_ENFORCE_WHITELIST = "%:* *:do_shared_workdir *:do_rm_work wic-tools:* *:do_addto_recipe_sysroot"\n\n')
@@ -688,7 +688,7 @@ sdk_ext_preinst() {
688 EXTRA_TAR_OPTIONS="$EXTRA_TAR_OPTIONS --exclude=sstate-cache" 688 EXTRA_TAR_OPTIONS="$EXTRA_TAR_OPTIONS --exclude=sstate-cache"
689 fi 689 fi
690} 690}
691SDK_PRE_INSTALL_COMMAND_task-populate-sdk-ext = "${sdk_ext_preinst}" 691SDK_PRE_INSTALL_COMMAND:task-populate-sdk-ext = "${sdk_ext_preinst}"
692 692
693# FIXME this preparation should be done as part of the SDK construction 693# FIXME this preparation should be done as part of the SDK construction
694sdk_ext_postinst() { 694sdk_ext_postinst() {
@@ -739,9 +739,9 @@ sdk_ext_postinst() {
739 echo done 739 echo done
740} 740}
741 741
742SDK_POST_INSTALL_COMMAND_task-populate-sdk-ext = "${sdk_ext_postinst}" 742SDK_POST_INSTALL_COMMAND:task-populate-sdk-ext = "${sdk_ext_postinst}"
743 743
744SDK_POSTPROCESS_COMMAND_prepend_task-populate-sdk-ext = "copy_buildsystem; install_tools; " 744SDK_POSTPROCESS_COMMAND:prepend:task-populate-sdk-ext = "copy_buildsystem; install_tools; "
745 745
746SDK_INSTALL_TARGETS = "" 746SDK_INSTALL_TARGETS = ""
747fakeroot python do_populate_sdk_ext() { 747fakeroot python do_populate_sdk_ext() {
@@ -833,7 +833,7 @@ do_populate_sdk_ext[nostamp] = "1"
833SDKEXTDEPLOYDIR = "${WORKDIR}/deploy-${PN}-populate-sdk-ext" 833SDKEXTDEPLOYDIR = "${WORKDIR}/deploy-${PN}-populate-sdk-ext"
834 834
835SSTATETASKS += "do_populate_sdk_ext" 835SSTATETASKS += "do_populate_sdk_ext"
836SSTATE_SKIP_CREATION_task-populate-sdk-ext = '1' 836SSTATE_SKIP_CREATION:task-populate-sdk-ext = '1'
837do_populate_sdk_ext[cleandirs] = "${SDKEXTDEPLOYDIR}" 837do_populate_sdk_ext[cleandirs] = "${SDKEXTDEPLOYDIR}"
838do_populate_sdk_ext[sstate-inputdirs] = "${SDKEXTDEPLOYDIR}" 838do_populate_sdk_ext[sstate-inputdirs] = "${SDKEXTDEPLOYDIR}"
839do_populate_sdk_ext[sstate-outputdirs] = "${SDK_DEPLOY}" 839do_populate_sdk_ext[sstate-outputdirs] = "${SDK_DEPLOY}"