summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMarcel Ziswiler <marcel.ziswiler@toradex.com>2013-10-03 17:13:39 +0200
committerMarcel Ziswiler <marcel.ziswiler@toradex.com>2013-10-03 17:13:39 +0200
commit63437b3ecfef5acf322aa827fd6430c43d444269 (patch)
tree72dd494b867756867f403b60747c4aea9285aad9 /Makefile
parent9629454003a2f85dcff4410e4b56d27e1bde0dd0 (diff)
colibri_vf50: migrate nand vs. sdboot configuration
Migrate to default NAND boot configuration (e.g. colibri_vf50_config) and SD card boot on request (e.g. colibri_vf50_sdboot_config). Automatically do the padding required for NAND boot image (e.g. u-boot.nand). This is also more in-line with how we did stuff back on the Colibri T20.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 10 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index fd5b7d0ed3..a8c16f75c8 100644
--- a/Makefile
+++ b/Makefile
@@ -790,4 +790,14 @@ backup:
F=`basename $(TOPDIR)` ; cd .. ; \
gtar --force-local -zcvf `LC_ALL=C date "+$$F-%Y-%m-%d-%T.tar.gz"` $$F
+ifeq ($(BOARD),colibri_vf50)
+.DEFAULT_GOAL := u-boot.imx
+ifeq ($(CONFIG_NANDBOOT),y)
+.DEFAULT_GOAL := u-boot.nand
+u-boot.nand: u-boot.imx
+ dd if=/dev/zero of=u-boot-pad bs=1024 count=1
+ cat u-boot-pad u-boot.imx > u-boot.nand
+endif
+endif
+
#########################################################################