diff options
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/sdk.bbclass | 10 |
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 \ " export PKG_CONFIG_SYSROOT_DIR = "${STAGING_DIR_HOST}" + +python () { + barch = bb.data.getVar('BUILD_ARCH', d, True) + archs = bb.data.getVar('PACKAGE_ARCHS', d, True).split() + sdkarchs = [] + for arch in archs: + sdkarchs.append(barch + '-' + arch + '-sdk') + bb.data.setVar('PACKAGE_ARCHS', " ".join(sdkarchs), d) +} + |