summaryrefslogtreecommitdiffstats
path: root/meta/classes/multimachine.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes/multimachine.bbclass')
-rw-r--r--meta/classes/multimachine.bbclass30
1 files changed, 0 insertions, 30 deletions
diff --git a/meta/classes/multimachine.bbclass b/meta/classes/multimachine.bbclass
deleted file mode 100644
index 945d22bfe0..0000000000
--- a/meta/classes/multimachine.bbclass
+++ /dev/null
@@ -1,30 +0,0 @@
1STAMP = "${TMPDIR}/stamps/${MULTIMACH_ARCH}${TARGET_VENDOR}-${TARGET_OS}/${PF}"
2WORKDIR = "${TMPDIR}/work/${MULTIMACH_ARCH}${TARGET_VENDOR}-${TARGET_OS}/${PF}"
3STAGING_KERNEL_DIR = "${STAGING_DIR}/${MULTIMACH_ARCH}${TARGET_VENDOR}-${TARGET_OS}/kernel"
4PKGDATA_DIR = "${STAGING_DIR}/pkgdata/${MULTIMACH_ARCH}${TARGET_VENDOR}-${TARGET_OS}"
5
6# Find any machine specific sub packages and if present, mark the
7# whole package as machine specific for multimachine purposes.
8
9
10def multi_machine_after_parse(d):
11 import bb
12 packages = bb.data.getVar('PACKAGES', d, 1).split()
13 macharch = bb.data.getVar('MACHINE_ARCH', d, 1)
14 multiarch = bb.data.getVar('PACKAGE_ARCH', d, 1)
15
16 for pkg in packages:
17 pkgarch = bb.data.getVar("PACKAGE_ARCH_%s" % pkg, d, 1)
18
19 # We could look for != PACKAGE_ARCH here but how to choose
20 # if multiple differences are present?
21 # Look through PACKAGE_ARCHS for the priority order?
22 if pkgarch and pkgarch == macharch:
23 multiarch = macharch
24
25 bb.data.setVar('MULTIMACH_ARCH', multiarch, d)
26
27
28python __anonymous () {
29 multi_machine_after_parse(d)
30}