summaryrefslogtreecommitdiffstats
path: root/meta/classes/populate_sdk_base.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2014-09-19 18:09:12 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-09-22 13:04:23 +0100
commit955bf632a72abc339102fd8b1e1ad27cd300ccd0 (patch)
tree237e438766497e965e653a35733cf6cafe781145 /meta/classes/populate_sdk_base.bbclass
parent6523bc171cdd06bed9c7a36aa2198b17b9c0a016 (diff)
downloadpoky-955bf632a72abc339102fd8b1e1ad27cd300ccd0.tar.gz
populate_sdk_base/meta-environment: Remove overlap from the two
Currently we have the horrible situation where meta-environment packages the toolchain environment files and they get included in the SDK but are broken, then, the SDK code overwrites them with good versions. This is suboptimal. This change fixes the code in meta-environment to create working files and adds in the multilib support from populate_sdk_base, then we remove the code in that base bbclass and rely on the packages being installed if/as/when needed. This removes the duplication and the broken versions of the files, hopefully making all well. [YOCTO #6608] [YOCTO #6613] (From OE-Core rev: 063355e5965439c7b3253d692d7ab0ed1189d123) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/populate_sdk_base.bbclass')
-rw-r--r--meta/classes/populate_sdk_base.bbclass27
1 files changed, 1 insertions, 26 deletions
diff --git a/meta/classes/populate_sdk_base.bbclass b/meta/classes/populate_sdk_base.bbclass
index 946a1d479b..de72e32ed8 100644
--- a/meta/classes/populate_sdk_base.bbclass
+++ b/meta/classes/populate_sdk_base.bbclass
@@ -88,25 +88,8 @@ fakeroot python do_populate_sdk() {
88 88
89 populate_sdk(d) 89 populate_sdk(d)
90 90
91 # Handle multilibs in the SDK environment, siteconfig, etc files...
92 localdata = bb.data.createCopy(d)
93
94 # make sure we only use the WORKDIR value from 'd', or it can change
95 localdata.setVar('WORKDIR', d.getVar('WORKDIR', True))
96
97 # make sure we only use the SDKTARGETSYSROOT value from 'd'
98 localdata.setVar('SDKTARGETSYSROOT', d.getVar('SDKTARGETSYSROOT', True))
99
100 # Process DEFAULTTUNE 91 # Process DEFAULTTUNE
101 bb.build.exec_func("create_sdk_files", localdata) 92 bb.build.exec_func("create_sdk_files", d)
102
103 variants = d.getVar("MULTILIB_VARIANTS", True) or ""
104 for item in variants.split():
105 # Load overrides from 'd' to avoid having to reset the value...
106 overrides = d.getVar("OVERRIDES", False) + ":virtclass-multilib-" + item
107 localdata.setVar("OVERRIDES", overrides)
108 bb.data.update_data(localdata)
109 bb.build.exec_func("create_sdk_files", localdata)
110 93
111 bb.build.exec_func("tar_sdk", d) 94 bb.build.exec_func("tar_sdk", d)
112 95
@@ -114,14 +97,6 @@ fakeroot python do_populate_sdk() {
114} 97}
115 98
116fakeroot create_sdk_files() { 99fakeroot create_sdk_files() {
117 # Setup site file for external use
118 toolchain_create_sdk_siteconfig ${SDK_OUTPUT}/${SDKPATH}/site-config-${REAL_MULTIMACH_TARGET_SYS}
119
120 toolchain_create_sdk_env_script ${SDK_OUTPUT}/${SDKPATH}/environment-setup-${REAL_MULTIMACH_TARGET_SYS}
121
122 # Add version information
123 toolchain_create_sdk_version ${SDK_OUTPUT}/${SDKPATH}/version-${REAL_MULTIMACH_TARGET_SYS}
124
125 cp ${COREBASE}/scripts/relocate_sdk.py ${SDK_OUTPUT}/${SDKPATH}/ 100 cp ${COREBASE}/scripts/relocate_sdk.py ${SDK_OUTPUT}/${SDKPATH}/
126 101
127 # Replace the ##DEFAULT_INSTALL_DIR## with the correct pattern. 102 # Replace the ##DEFAULT_INSTALL_DIR## with the correct pattern.