diff options
Diffstat (limited to 'meta/classes')
| -rw-r--r-- | meta/classes/cross-canadian.bbclass | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/meta/classes/cross-canadian.bbclass b/meta/classes/cross-canadian.bbclass index fec6438c60..a8565e91e3 100644 --- a/meta/classes/cross-canadian.bbclass +++ b/meta/classes/cross-canadian.bbclass | |||
| @@ -16,6 +16,7 @@ STAGING_BINDIR_TOOLCHAIN = "${STAGING_DIR_NATIVE}${bindir_native}/${SDK_ARCH}${S | |||
| 16 | # | 16 | # |
| 17 | PACKAGE_ARCH = "${SDK_ARCH}-${SDKPKGSUFFIX}" | 17 | PACKAGE_ARCH = "${SDK_ARCH}-${SDKPKGSUFFIX}" |
| 18 | CANADIANEXTRAOS = "" | 18 | CANADIANEXTRAOS = "" |
| 19 | MODIFYTOS ??= "1" | ||
| 19 | python () { | 20 | python () { |
| 20 | archs = d.getVar('PACKAGE_ARCHS', True).split() | 21 | archs = d.getVar('PACKAGE_ARCHS', True).split() |
| 21 | sdkarchs = [] | 22 | sdkarchs = [] |
| @@ -23,6 +24,9 @@ python () { | |||
| 23 | sdkarchs.append(arch + '-${SDKPKGSUFFIX}') | 24 | sdkarchs.append(arch + '-${SDKPKGSUFFIX}') |
| 24 | d.setVar('PACKAGE_ARCHS', " ".join(sdkarchs)) | 25 | d.setVar('PACKAGE_ARCHS', " ".join(sdkarchs)) |
| 25 | 26 | ||
| 27 | # Allow the following code segment to be disabled, e.g. meta-environment | ||
| 28 | if d.getVar("MODIFYTOS", True) != "1": | ||
| 29 | return | ||
| 26 | # PowerPC can build "linux" and "linux-gnuspe" | 30 | # PowerPC can build "linux" and "linux-gnuspe" |
| 27 | tarch = d.getVar("TARGET_ARCH", True) | 31 | tarch = d.getVar("TARGET_ARCH", True) |
| 28 | if tarch == "powerpc": | 32 | if tarch == "powerpc": |
