diff options
author | Jesse Gilles <jgilles@multitech.com> | 2014-11-04 11:23:21 -0600 |
---|---|---|
committer | Jesse Gilles <jgilles@multitech.com> | 2014-11-04 11:23:21 -0600 |
commit | 812befa503067ad2bae5de58962ff38321c369ca (patch) | |
tree | b472b5118f62e97f760a5b23f3a72130e5ce235b /recipes-bsp/at91bootstrap/at91bootstrap_3.5.inc | |
download | meta-multitech-812befa503067ad2bae5de58962ff38321c369ca.tar.gz meta-multitech-812befa503067ad2bae5de58962ff38321c369ca.tar.bz2 meta-multitech-812befa503067ad2bae5de58962ff38321c369ca.zip |
initial commit with MTCDT support
Diffstat (limited to 'recipes-bsp/at91bootstrap/at91bootstrap_3.5.inc')
-rw-r--r-- | recipes-bsp/at91bootstrap/at91bootstrap_3.5.inc | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/recipes-bsp/at91bootstrap/at91bootstrap_3.5.inc b/recipes-bsp/at91bootstrap/at91bootstrap_3.5.inc new file mode 100644 index 0000000..ac147c0 --- /dev/null +++ b/recipes-bsp/at91bootstrap/at91bootstrap_3.5.inc @@ -0,0 +1,27 @@ +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} REVISION=${PR}" + +do_compile () { + unset LDFLAGS + unset CFLAGS + unset CPPFLAGS + + rm -Rf ${S}/binaries + 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 + oe_runmake install + else + echo "${board} could not be built" + exit 1 + fi + done +} |