summaryrefslogtreecommitdiff
path: root/recipes/at91bootstrap/at91bootstrap_2.0.inc
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/at91bootstrap/at91bootstrap_2.0.inc')
-rw-r--r--recipes/at91bootstrap/at91bootstrap_2.0.inc33
1 files changed, 33 insertions, 0 deletions
diff --git a/recipes/at91bootstrap/at91bootstrap_2.0.inc b/recipes/at91bootstrap/at91bootstrap_2.0.inc
new file mode 100644
index 0000000000..67e7893c3e
--- /dev/null
+++ b/recipes/at91bootstrap/at91bootstrap_2.0.inc
@@ -0,0 +1,33 @@
+DESCRIPTION = "at91bootstrap: loaded into internal SRAM by AT91 BootROM"
+SECTION = "bootloaders"
+
+PARALLEL_MAKE = ""
+
+SRC_URI = "ftp://www.at91.com/pub/buildroot/${PN}-${PV}.tar.bz2 \
+ "
+
+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
+ if ! [ "x${AT91BOOTSTRAP_BOARD}" == "x" ] ; then
+ for board in ${AT91BOOTSTRAP_BOARD} ; do
+ cp `find ./board/ -name ${board}_defconfig` .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
+
+}