diff options
| author | Rod Whitby <rod@whitby.id.au> | 2006-05-22 01:48:53 +0000 |
|---|---|---|
| committer | OpenEmbedded Project <openembedded-devel@lists.openembedded.org> | 2006-05-22 01:48:53 +0000 |
| commit | fe19b81b064bb612a85b11ac1b3ee8b40a7a72be (patch) | |
| tree | 3a4d0e8a051d7c05529a917730f9efa1c7394ede /classes/multimachine.bbclass | |
| parent | 405b9c56fd921db33cc33b723145eb0453bf89a8 (diff) | |
| parent | a6e39080788cf30c6d71977fae4ca2bf1e7bde8c (diff) | |
merge of 45908085bdceb2276493e588d8d89daba46b6d5c
and ec1cfabe499e84bf5627a49cc40bae42b557c638
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) +} |
