summaryrefslogtreecommitdiff
path: root/classes/chicken.bbclass
diff options
context:
space:
mode:
authorMario Domenech Goulart <mario@ossystems.com.br>2009-11-24 15:53:50 -0200
committerOtavio Salvador <otavio@ossystems.com.br>2009-11-24 16:39:23 -0200
commit32b754e45f81ec369258a0417271535770d12aa3 (patch)
treea969961c161ab4aeea2983b0e6e0b7ae76ab666c /classes/chicken.bbclass
parentbad39c9259d10cb30f93bde04c1c09954ec7ea55 (diff)
chicken: added support for cross compilation with chicken
Added the chicken-cross recipe and a chicken class for translating architectures to the Chicken nomenclature. Signed-off-by: Mario Domenech Goulart <mario@ossystems.com.br> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Diffstat (limited to 'classes/chicken.bbclass')
-rw-r--r--classes/chicken.bbclass11
1 files changed, 11 insertions, 0 deletions
diff --git a/classes/chicken.bbclass b/classes/chicken.bbclass
new file mode 100644
index 0000000000..5ebe1ff462
--- /dev/null
+++ b/classes/chicken.bbclass
@@ -0,0 +1,11 @@
+def chicken_arch(bb, d):
+ import re
+ arch_pattern = re.compile('^i.*86$')
+ target_arch = d.getVar("TARGET_ARCH", 1)
+ if arch_pattern.match(target_arch):
+ return 'x86'
+ else:
+ return target_arch
+
+CHICKEN_ARCH = "${@chicken_arch(bb, d)}"
+