[oe-commits] Ulf Samuelsson : Fix build error, when building multiple at91bootstraps
git version control
git at git.openembedded.org
Fri Jan 21 22:38:53 UTC 2011
Module: openembedded.git
Branch: ulf/linux-2.6.30-2011-01-16
Commit: f11bf70374436ed70d1a32853dca270ef7a47833
URL: http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=f11bf70374436ed70d1a32853dca270ef7a47833
Author: Ulf Samuelsson <ulf.samuelsson at atmel.com>
Date: Fri Jan 21 23:37:51 2011 +0100
Fix build error, when building multiple at91bootstraps
---
recipes/at91bootstrap/at91bootstrap_3.0.bb | 2 +-
recipes/at91bootstrap/at91bootstrap_3.0.inc | 20 +++++++++-----------
2 files changed, 10 insertions(+), 12 deletions(-)
diff --git a/recipes/at91bootstrap/at91bootstrap_3.0.bb b/recipes/at91bootstrap/at91bootstrap_3.0.bb
index ff86c7d..435269b 100644
--- a/recipes/at91bootstrap/at91bootstrap_3.0.bb
+++ b/recipes/at91bootstrap/at91bootstrap_3.0.bb
@@ -4,7 +4,7 @@ DEFAULT_PREFERENCE = "-1"
DEFAULT_PREFERENCE_at91sam9g45ek = "3"
DEFAULT_PREFERENCE_at91sam9g45ekes = "3"
DEFAULT_PREFERENCE_at91sam9m10ek = "3"
-
+DEFAULT_PREFERENCE_at91sam9m10ekes = "3"
SRC_URI = "ftp://ftp.linux4sam.org/pub/Android4SAM/9m10g45/v1.1/patches/bootstrap30.tar.gz \
"
diff --git a/recipes/at91bootstrap/at91bootstrap_3.0.inc b/recipes/at91bootstrap/at91bootstrap_3.0.inc
index 078a29d..ca213d1 100644
--- a/recipes/at91bootstrap/at91bootstrap_3.0.inc
+++ b/recipes/at91bootstrap/at91bootstrap_3.0.inc
@@ -12,18 +12,16 @@ do_compile () {
unset CPPFLAGS
rm -Rf ${S}/binaries
- if ! [ "x${AT91BOOTSTRAP_BOARD}" == "x" ] ; then
- for board in ${AT91BOOTSTRAP_BOARD} ; do
- cp `find ./board/ -name ${board}_defconfig` .config
+ for board in ${AT91BOOTSTRAP_BOARD} ; do
+ oe_runmake mrproper
+ filename=`find board -name ${board}_defconfig`
+ if ! [ "x$filename" == "x" ] ; then
+ cp $filename .config
oe_runmake AT91_CUSTOM_FLAGS="${AT91BOOTSTRAP_FLAGS}"
oe_runmake AT91_CUSTOM_FLAGS="${AT91BOOTSTRAP_FLAGS}" boot
oe_runmake AT91_CUSTOM_FLAGS="${AT91BOOTSTRAP_FLAGS}" install
- done
- else
- cp ${S}/../defconfig ${S}/.config
- oe_runmake AT91_CUSTOM_FLAGS="${AT91BOOTSTRAP_FLAGS}"
- oe_runmake AT91_CUSTOM_FLAGS="${AT91BOOTSTRAP_FLAGS}" boot
- oe_runmake AT91_CUSTOM_FLAGS="${AT91BOOTSTRAP_FLAGS}" install
- fi
-
+ else
+ echo "${board} could not be built"
+ fi
+ done
}
More information about the Openembedded-commits
mailing list