angstrom.conf: use python instead of overrides to select arm eabi on arm builds
authorPhilipp Zabel <philipp.zabel@gmail.com>
Thu, 23 Mar 2006 15:57:36 +0000 (15:57 +0000)
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>
Thu, 23 Mar 2006 15:57:36 +0000 (15:57 +0000)
conf/distro/angstrom.conf

index d8b9700..e9e0520 100644 (file)
@@ -21,10 +21,10 @@ include conf/distro/include/multimachine.conf
 ENABLE_BINARY_LOCALE_GENERATION ?= ""
 
 
-#Use the ARM EABI when building for an ARM cpu.
-TARGET_VENDOR_arm = "-none"
-TARGET_OS_arm = "linux-gnueabi"
-TARGET_OS = "linux"
+#Use the ARM EABI when building for an ARM cpu. We can't use overrides
+#here because this breaks all places where ":=" is used.
+TARGET_VENDOR = "${@['','-none'][bb.data.getVar('TARGET_ARCH',d,1)=='arm']}"
+TARGET_OS = "linux${@['','-gnueabi'][bb.data.getVar('TARGET_ARCH',d,1)=='arm']}"
 
 #mess with compiler flags to use -Os instead of -O2
 #Please see http://free-electrons.com/doc/embedded_linux_optimizations/img47.html for some more info