diff options
author | Michael Lauer <mickey@vanille-media.de> | 2006-05-29 09:17:50 +0000 |
---|---|---|
committer | OpenEmbedded Project <openembedded-devel@lists.openembedded.org> | 2006-05-29 09:17:50 +0000 |
commit | ba33bb7c0a4af155d0efe0f5b72b75254b0cb91e (patch) | |
tree | 471c63adfcd5e24af5dad870950ccbf04f433443 /classes/multimachine.bbclass | |
parent | 130a448a3293d3918a26c573c3317315c5d8187a (diff) | |
parent | 38da3ad2a494bd7d15de59ffea5a1909def1b39f (diff) |
merge of a615f71806dc9ceee0102ed403b1e7fe4f948b5d
and aac02cf2eb8931c6f1e4df467cc5ff36a36a2051
Diffstat (limited to 'classes/multimachine.bbclass')
-rw-r--r-- | classes/multimachine.bbclass | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/classes/multimachine.bbclass b/classes/multimachine.bbclass new file mode 100644 index 0000000000..2248f326cc --- /dev/null +++ b/classes/multimachine.bbclass @@ -0,0 +1,22 @@ +STAMP = "${TMPDIR}/stamps/${MULTIMACH_ARCH}-${HOST_OS}/${PF}" +WORKDIR = "${TMPDIR}/work/${MULTIMACH_ARCH}-${HOST_OS}/${PF}" +STAGING_KERNEL_DIR = "${STAGING_DIR}/${MULTIMACH_ARCH}-${HOST_OS}/kernel" + +# Find any machine specific sub packages and if present, mark the +# whole package as machine specific for multimachine purposes. +python __anonymous () { + packages = bb.data.getVar('PACKAGES', d, 1).split() + macharch = bb.data.getVar('MACHINE_ARCH', d, 1) + multiarch = bb.data.getVar('PACKAGE_ARCH', d, 1) + + for pkg in packages: + pkgarch = bb.data.getVar("PACKAGE_ARCH_%s" % pkg, d, 1) + + # We could look for != PACKAGE_ARCH here but how to choose + # if multiple differences are present? + # Look through IPKG_ARCHS for the priority order? + if pkgarch and pkgarch == macharch: + multiarch = macharch + + bb.data.setVar('MULTIMACH_ARCH', multiarch, d) +} |