diff options
author | Adrian Dudau <adrian.dudau@enea.com> | 2013-12-12 13:38:32 +0100 |
---|---|---|
committer | Adrian Dudau <adrian.dudau@enea.com> | 2013-12-12 13:50:20 +0100 |
commit | e2e6f6fe07049f33cb6348780fa975162752e421 (patch) | |
tree | b1813295411235d1297a0ed642b1346b24fdfb12 /meta/classes/allarch.bbclass | |
download | poky-e2e6f6fe07049f33cb6348780fa975162752e421.tar.gz |
initial commit of Enea Linux 3.1
Migrated from the internal git server on the dora-enea branch
Signed-off-by: Adrian Dudau <adrian.dudau@enea.com>
Diffstat (limited to 'meta/classes/allarch.bbclass')
-rw-r--r-- | meta/classes/allarch.bbclass | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/meta/classes/allarch.bbclass b/meta/classes/allarch.bbclass new file mode 100644 index 0000000000..5e13a5b8a8 --- /dev/null +++ b/meta/classes/allarch.bbclass | |||
@@ -0,0 +1,32 @@ | |||
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("PACKAGE_EXTRA_ARCHS", "") | ||
26 | |||
27 | # No need to do shared library processing or debug symbol handling | ||
28 | d.setVar("EXCLUDE_FROM_SHLIBS", "1") | ||
29 | d.setVar("INHIBIT_PACKAGE_DEBUG_SPLIT", "1") | ||
30 | d.setVar("INHIBIT_PACKAGE_STRIP", "1") | ||
31 | } | ||
32 | |||