aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/at91bootstrap/at91bootstrap_3.1.inc
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/at91bootstrap/at91bootstrap_3.1.inc')
-rw-r--r--recipes/at91bootstrap/at91bootstrap_3.1.inc29
1 files changed, 29 insertions, 0 deletions
diff --git a/recipes/at91bootstrap/at91bootstrap_3.1.inc b/recipes/at91bootstrap/at91bootstrap_3.1.inc
new file mode 100644
index 0000000000..b4667e09d6
--- /dev/null
+++ b/recipes/at91bootstrap/at91bootstrap_3.1.inc
@@ -0,0 +1,29 @@
+DESCRIPTION = "at91bootstrap: loaded into internal SRAM by AT91 BootROM"
+SECTION = "bootloaders"
+
+PARALLEL_MAKE = ""
+
+PACKAGE_ARCH = "${MACHINE_ARCH}"
+EXTRA_OEMAKE = "CROSS_COMPILE=${TARGET_PREFIX} DESTDIR=${DEPLOY_DIR_IMAGE}/at91bootstrap REVISION=${PR}"
+
+do_compile () {
+ unset LDFLAGS
+ unset CFLAGS
+ unset CPPFLAGS
+
+ rm -Rf ${S}/binaries
+ install -d ${DEPLOY_DIR_IMAGE}/at91bootstrap
+ for board in ${AT91BOOTSTRAP_BOARD} ; do
+ oe_runmake mrproper
+# filename=`find board -name ${board}_defconfig`
+# if ! [ "x$filename" == "x" ] ; then
+ oe_runmake ${board}_defconfig
+ oe_runmake AT91_CUSTOM_FLAGS="${AT91BOOTSTRAP_FLAGS}"
+ oe_runmake AT91_CUSTOM_FLAGS="${AT91BOOTSTRAP_FLAGS}" boot
+ oe_runmake AT91_CUSTOM_FLAGS="${AT91BOOTSTRAP_FLAGS}" host-utilities
+ oe_runmake AT91_CUSTOM_FLAGS="${AT91BOOTSTRAP_FLAGS}" install
+# else
+# echo "${board} could not be built"
+# fi
+ done
+}