[oe-commits] Sergey Lapin : at91bootstrap: generalization of recipes

GIT User account git at amethyst.openembedded.net
Sat May 16 12:24:15 UTC 2009


Module: openembedded.git
Branch: org.openembedded.dev
Commit: f7cda20ffc2bd30fbb7db898cbffc5d273bb9bb8
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=f7cda20ffc2bd30fbb7db898cbffc5d273bb9bb8

Author: Sergey Lapin <slapin at ossfans.org>
Date:   Thu May 14 17:03:10 2009 +0400

at91bootstrap: generalization of recipes

---

 recipes/at91bootstrap/at91bootstrap.inc     |   21 ++++++++++++++++++++
 recipes/at91bootstrap/at91bootstrap_2.10.bb |   28 +-------------------------
 recipes/at91bootstrap/at91bootstrap_2.4.bb  |    7 +----
 3 files changed, 25 insertions(+), 31 deletions(-)

diff --git a/recipes/at91bootstrap/at91bootstrap.inc b/recipes/at91bootstrap/at91bootstrap.inc
new file mode 100644
index 0000000..2160f64
--- /dev/null
+++ b/recipes/at91bootstrap/at91bootstrap.inc
@@ -0,0 +1,21 @@
+DESCRIPTION = "at91bootstrap: loaded into internal SRAM by AT91 BootROM"
+SECTION = "bootloaders"
+
+SRC_URI = "ftp://www.at91.com/pub/buildroot/${PN}-${PV}.tar.bz2 \
+	   file://defconfig \
+           "
+S = "${WORKDIR}/${PN}-${PV}"
+PACKAGE_ARCH = "${MACHINE_ARCH}"
+EXTRA_OEMAKE = "CROSS_COMPILE=${TARGET_PREFIX} DESTDIR=${DEPLOY_DIR_IMAGE} REVISION=${PR}"
+
+do_compile () {
+	unset LDFLAGS
+	unset CFLAGS
+	unset CPPFLAGS
+
+	rm -Rf ${S}/binaries
+	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
+}
diff --git a/recipes/at91bootstrap/at91bootstrap_2.10.bb b/recipes/at91bootstrap/at91bootstrap_2.10.bb
index a652f1b..a68d8ef 100644
--- a/recipes/at91bootstrap/at91bootstrap_2.10.bb
+++ b/recipes/at91bootstrap/at91bootstrap_2.10.bb
@@ -1,26 +1,2 @@
-DESCRIPTION = "at91bootstrap: loaded into internal SRAM by AT91 BootROM"
-SECTION = "bootloaders"
-
-SRC_URI = "ftp://www.at91.com/pub/buildroot/${PN}-${PV}.tar.bz2 \
-	   file://defconfig \
-           "
-
-AT91BOOTSTRAP_FLAGS ?= ""
-
-S = "${WORKDIR}/${PN}-${PV}"
-
-PACKAGE_ARCH = "${MACHINE_ARCH}"
-EXTRA_OEMAKE = "CROSS_COMPILE=${TARGET_PREFIX} DESTDIR=${DEPLOY_DIR_IMAGE} REVISION=${PR}"
-
-do_compile () {
-	unset LDFLAGS
-	unset CFLAGS
-	unset CPPFLAGS
-
-	rm -Rf ${S}/binaries
-	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
-}
-
+PR = "r1"
+require at91bootstrap.inc
diff --git a/recipes/at91bootstrap/at91bootstrap_2.4.bb b/recipes/at91bootstrap/at91bootstrap_2.4.bb
index 69c7d6c..e2ba34e 100644
--- a/recipes/at91bootstrap/at91bootstrap_2.4.bb
+++ b/recipes/at91bootstrap/at91bootstrap_2.4.bb
@@ -1,4 +1,4 @@
-DESCRIPTION = "at91bootstrap"
+require at91bootstrap.inc
 SRC_URI = "ftp://www.at91.com/pub/buildroot/${PN}-${PV}.tar.bz2 \
            "
 SRC_URI_append_afeb9260 = " file://0001-Generic-code-changes.patch;patch=1 \
@@ -6,8 +6,7 @@ SRC_URI_append_afeb9260 = " file://0001-Generic-code-changes.patch;patch=1 \
            file://0003-AFEB9260-board-support.patch;patch=1 \
            file://0004-AFEB9260-133-board-support.patch;patch=1"
 
-PR = "r4"
-SECTION = "bootloaders"
+PR = "r5"
 
 AT91BOOTSTRAP_MACHINE ?= "${MACHINE}"
 AT91BOOTSTRAP_FLAGS ?= ""
@@ -16,8 +15,6 @@ AT91BOOTSTRAP_MEMORY ?= "dataflash"
 AT91BOOTSTRAP_IMAGE = "at91bootstrap-${MACHINE}-${AT91BOOTSTRAP_MEMORY}-${PV}-${PR}.bin"
 AT91BOOTSTRAP_SYMLINK = "at91bootstrap.bin"
 
-S = "${WORKDIR}/${PN}-${PV}"
-
 PACKAGE_ARCH = "${MACHINE_ARCH}"
 EXTRA_OEMAKE = "CROSS_COMPILE=${TARGET_PREFIX} MEMORY=${AT91BOOTSTRAP_MEMORY}"
 





More information about the Openembedded-commits mailing list