diff options
| author | Tudor Florea <tudor.florea@enea.com> | 2015-10-09 22:59:03 +0200 |
|---|---|---|
| committer | Tudor Florea <tudor.florea@enea.com> | 2015-10-09 22:59:03 +0200 |
| commit | 972dcfcdbfe75dcfeb777150c136576cf1a71e99 (patch) | |
| tree | 97a61cd7e293d7ae9d56ef7ed0f81253365bb026 /meta/classes/allarch.bbclass | |
| download | poky-972dcfcdbfe75dcfeb777150c136576cf1a71e99.tar.gz | |
initial commit for Enea Linux 5.0 arm
Signed-off-by: Tudor Florea <tudor.florea@enea.com>
Diffstat (limited to 'meta/classes/allarch.bbclass')
| -rw-r--r-- | meta/classes/allarch.bbclass | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/meta/classes/allarch.bbclass b/meta/classes/allarch.bbclass new file mode 100644 index 0000000000..4bc99272c4 --- /dev/null +++ b/meta/classes/allarch.bbclass | |||
| @@ -0,0 +1,43 @@ | |||
| 1 | # | ||
| 2 | # This class is used for architecture independent recipes/data files (usally scripts) | ||
| 3 | # | ||
| 4 | |||
| 5 | # Expand STAGING_DIR_HOST since for cross-canadian/native/nativesdk, this will | ||
| 6 | # point elsewhere after these changes. | ||
| 7 | STAGING_DIR_HOST := "${STAGING_DIR_HOST}" | ||
| 8 | |||
| 9 | PACKAGE_ARCH = "all" | ||
| 10 | |||
| 11 | python () { | ||
| 12 | # Allow this class to be included but overridden - only set | ||
| 13 | # the values if we're still "all" package arch. | ||
| 14 | if d.getVar("PACKAGE_ARCH") == "all": | ||
| 15 | # No need for virtual/libc or a cross compiler | ||
| 16 | d.setVar("INHIBIT_DEFAULT_DEPS","1") | ||
| 17 | |||
| 18 | # Set these to a common set of values, we shouldn't be using them other that for WORKDIR directory | ||
| 19 | # naming anyway | ||
| 20 | d.setVar("TARGET_ARCH", "allarch") | ||
| 21 | d.setVar("TARGET_OS", "linux") | ||
| 22 | d.setVar("TARGET_CC_ARCH", "none") | ||
| 23 | d.setVar("TARGET_LD_ARCH", "none") | ||
| 24 | d.setVar("TARGET_AS_ARCH", "none") | ||
| 25 | d.setVar("TARGET_FPU", "") | ||
| 26 | d.setVar("TARGET_PREFIX", "") | ||
| 27 | d.setVar("PACKAGE_EXTRA_ARCHS", "") | ||
| 28 | d.setVar("SDK_ARCH", "none") | ||
| 29 | d.setVar("SDK_CC_ARCH", "none") | ||
| 30 | |||
| 31 | # Avoid this being unnecessarily different due to nuances of | ||
| 32 | # the target machine that aren't important for "all" arch | ||
| 33 | # packages. | ||
| 34 | d.setVar("LDFLAGS", "") | ||
| 35 | |||
| 36 | # No need to do shared library processing or debug symbol handling | ||
| 37 | d.setVar("EXCLUDE_FROM_SHLIBS", "1") | ||
| 38 | d.setVar("INHIBIT_PACKAGE_DEBUG_SPLIT", "1") | ||
| 39 | d.setVar("INHIBIT_PACKAGE_STRIP", "1") | ||
| 40 | elif bb.data.inherits_class('packagegroup', d) and not bb.data.inherits_class('nativesdk', d): | ||
| 41 | bb.error("Please ensure recipe %s sets PACKAGE_ARCH before inherit packagegroup" % d.getVar("FILE", True)) | ||
| 42 | } | ||
| 43 | |||
