summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/sdk.bbclass10
1 files changed, 10 insertions, 0 deletions
diff --git a/meta/classes/sdk.bbclass b/meta/classes/sdk.bbclass
index 766d513efd..af516bdbb7 100644
--- a/meta/classes/sdk.bbclass
+++ b/meta/classes/sdk.bbclass
@@ -60,3 +60,13 @@ FILES_${PN}-dbg += "${prefix}/.debug \
60 " 60 "
61 61
62export PKG_CONFIG_SYSROOT_DIR = "${STAGING_DIR_HOST}" 62export PKG_CONFIG_SYSROOT_DIR = "${STAGING_DIR_HOST}"
63
64python () {
65 barch = bb.data.getVar('BUILD_ARCH', d, True)
66 archs = bb.data.getVar('PACKAGE_ARCHS', d, True).split()
67 sdkarchs = []
68 for arch in archs:
69 sdkarchs.append(barch + '-' + arch + '-sdk')
70 bb.data.setVar('PACKAGE_ARCHS', " ".join(sdkarchs), d)
71}
72