angstrom: fix OABI package archs
authorKoen Kooi <koen@openembedded.org>
Wed, 20 Jun 2007 13:09:55 +0000 (13:09 +0000)
committerKoen Kooi <koen@openembedded.org>
Wed, 20 Jun 2007 13:09:55 +0000 (13:09 +0000)
* downside: now there are 3 places for people to edit for people with oabi machines

conf/distro/angstrom-2007.1.conf
conf/distro/include/angstromoabi.inc [new file with mode: 0644]

index 6ef9646..db29363 100644 (file)
 DISTRO_VERSION = "test-${DATE}"
 DISTRO_REVISION = "46"
 
-require conf/distro/include/angstrom.inc
 require conf/distro/include/sane-srcdates.inc
 
+#This is needed to get a correct PACKAGE_ARCH for packages that have PACKAGE_ARCH = ${MACHINE_ARCH}
+ARM_ABI = "${@['','oabi'][bb.data.getVar('MACHINE',d) in ['collie','h3600', 'h3800', 'simpad']]}"
+require conf/distro/include/angstrom${ARM_ABI}.inc
+
 #Images built can have to modes:
 # 'debug': empty rootpassword, strace and gdb included
 # 'release' no root password, no strace and gdb by default
@@ -88,11 +91,6 @@ FEED_ARCH_simpad        = "arm-oabi"
 
 #Tweak packaging for strongarm machines since they can't use EABI
 
-PACKAGE_ARCH_collie     = "arm-oabi"
-PACKAGE_ARCH_h3600      = "arm-oabi"
-PACKAGE_ARCH_h3800      = "arm-oabi"
-PACKAGE_ARCH_simpad     = "arm-oabi"
-
 PACKAGE_EXTRA_ARCHS_collie = "arm-oabi"
 PACKAGE_EXTRA_ARCHS_h3600  = "arm-oabi"
 PACKAGE_EXTRA_ARCHS_h3800  = "arm-oabi"
diff --git a/conf/distro/include/angstromoabi.inc b/conf/distro/include/angstromoabi.inc
new file mode 100644 (file)
index 0000000..bb7bc45
--- /dev/null
@@ -0,0 +1,4 @@
+require conf/distro/include/angstrom.inc
+
+PACKAGE_ARCH     = "arm-oabi"
+