diff options
Diffstat (limited to 'meta/classes/multimachine.bbclass')
-rw-r--r-- | meta/classes/multimachine.bbclass | 30 |
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 @@ | |||
1 | STAMP = "${TMPDIR}/stamps/${MULTIMACH_ARCH}${TARGET_VENDOR}-${TARGET_OS}/${PF}" | ||
2 | WORKDIR = "${TMPDIR}/work/${MULTIMACH_ARCH}${TARGET_VENDOR}-${TARGET_OS}/${PF}" | ||
3 | STAGING_KERNEL_DIR = "${STAGING_DIR}/${MULTIMACH_ARCH}${TARGET_VENDOR}-${TARGET_OS}/kernel" | ||
4 | PKGDATA_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 | |||
10 | def 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 | |||
28 | python __anonymous () { | ||
29 | multi_machine_after_parse(d) | ||
30 | } | ||