aboutsummaryrefslogtreecommitdiffstats
path: root/meta/classes/populate_sdk_base.bbclass
diff options
context:
space:
mode:
authorLaurentiu Palcu <laurentiu.palcu@intel.com>2014-01-22 14:30:03 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-02-11 11:50:27 +0000
commit5a81b8a0820ceac972a68af2caebdc8d2f3945a1 (patch)
tree97a5b87d46eb839bc4bf603c92b0519e5ceff453 /meta/classes/populate_sdk_base.bbclass
parent6247efaba592db924e6466c39aef441f0e07c62a (diff)
downloadopenembedded-core-contrib-5a81b8a0820ceac972a68af2caebdc8d2f3945a1.tar.gz
populate_sdk_base.bbclass: activate the new python routines
Lose the old shell populate_sdk_image() function and use the new python implementation. Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Diffstat (limited to 'meta/classes/populate_sdk_base.bbclass')
-rw-r--r--meta/classes/populate_sdk_base.bbclass42
1 files changed, 10 insertions, 32 deletions
diff --git a/meta/classes/populate_sdk_base.bbclass b/meta/classes/populate_sdk_base.bbclass
index 096628b51b..0c17aac251 100644
--- a/meta/classes/populate_sdk_base.bbclass
+++ b/meta/classes/populate_sdk_base.bbclass
@@ -27,10 +27,19 @@ EXCLUDE_FROM_WORLD = "1"
SDK_PACKAGING_FUNC ?= "create_shar"
fakeroot python do_populate_sdk() {
+ from oe.sdk import populate_sdk
+ from oe.manifest import create_manifest, Manifest
+
pn = d.getVar('PN', True)
runtime_mapping_rename("TOOLCHAIN_TARGET_TASK", pn, d)
- bb.build.exec_func("populate_sdk_image", d)
+ # create target/host SDK manifests
+ create_manifest(d, manifest_dir=d.getVar('SDK_DIR', True),
+ manifest_type=Manifest.MANIFEST_TYPE_SDK_HOST)
+ create_manifest(d, manifest_dir=d.getVar('SDK_DIR', True),
+ manifest_type=Manifest.MANIFEST_TYPE_SDK_TARGET)
+
+ populate_sdk(d)
# Handle multilibs in the SDK environment, siteconfig, etc files...
localdata = bb.data.createCopy(d)
@@ -57,37 +66,6 @@ fakeroot python do_populate_sdk() {
bb.build.exec_func(d.getVar("SDK_PACKAGING_FUNC", True), d)
}
-fakeroot populate_sdk_image() {
- rm -rf ${SDK_OUTPUT}
- mkdir -p ${SDK_OUTPUT}
-
- # populate_sdk_<image> is required to construct two images:
- # SDK_ARCH-nativesdk - contains the cross compiler and associated tooling
- # target - contains a target rootfs configured for the SDK usage
- #
- # the output of populate_sdk_<image> should end up in ${SDK_OUTPUT} it is made
- # up of:
- # ${SDK_OUTPUT}/<sdk_arch-nativesdk pkgs>
- # ${SDK_OUTPUT}/${SDKTARGETSYSROOT}/<target pkgs>
-
- populate_sdk_${IMAGE_PKGTYPE}
-
- # Don't ship any libGL in the SDK
- rm -rf ${SDK_OUTPUT}/${SDKPATHNATIVE}${libdir_nativesdk}/libGL*
-
- # Can copy pstage files here
- # target_pkgs=`cat ${SDK_OUTPUT}/${SDKTARGETSYSROOT}/var/lib/opkg/status | grep Package: | cut -f 2 -d ' '`
-
- # Fix or remove broken .la files
- #rm -f ${SDK_OUTPUT}/${SDKPATHNATIVE}/lib/*.la
- rm -f ${SDK_OUTPUT}/${SDKPATHNATIVE}${libdir_nativesdk}/*.la
-
- # Link the ld.so.cache file into the hosts filesystem
- ln -s /etc/ld.so.cache ${SDK_OUTPUT}/${SDKPATHNATIVE}/etc/ld.so.cache
-
- ${SDK_POSTPROCESS_COMMAND}
-}
-
fakeroot create_sdk_files() {
# Setup site file for external use
toolchain_create_sdk_siteconfig ${SDK_OUTPUT}/${SDKPATH}/site-config-${REAL_MULTIMACH_TARGET_SYS}