summaryrefslogtreecommitdiffstats
path: root/recipes/at91bootstrap/at91bootstrap.inc
diff options
context:
space:
mode:
authorSergey Lapin <slapin@ossfans.org>2009-05-14 17:03:10 +0400
committerSergey Lapin <slapin@ossfans.org>2009-05-16 16:18:09 +0400
commitf7cda20ffc2bd30fbb7db898cbffc5d273bb9bb8 (patch)
tree7a7bea1ea9d52cf5908e6c75ada341e1f1e3d476 /recipes/at91bootstrap/at91bootstrap.inc
parenta420e4d129b6b4a6de18b3195161195a630a38b8 (diff)
downloadopenembedded-f7cda20ffc2bd30fbb7db898cbffc5d273bb9bb8.tar.gz
at91bootstrap: generalization of recipes
Diffstat (limited to 'recipes/at91bootstrap/at91bootstrap.inc')
-rw-r--r--recipes/at91bootstrap/at91bootstrap.inc21
1 files changed, 21 insertions, 0 deletions
diff --git a/recipes/at91bootstrap/at91bootstrap.inc b/recipes/at91bootstrap/at91bootstrap.inc
new file mode 100644
index 0000000000..2160f64fbc
--- /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
+}