diff options
author | Marcel Ziswiler <marcel.ziswiler@toradex.com> | 2013-10-03 17:13:39 +0200 |
---|---|---|
committer | Marcel Ziswiler <marcel.ziswiler@toradex.com> | 2013-10-03 17:13:39 +0200 |
commit | 63437b3ecfef5acf322aa827fd6430c43d444269 (patch) | |
tree | 72dd494b867756867f403b60747c4aea9285aad9 /Makefile | |
parent | 9629454003a2f85dcff4410e4b56d27e1bde0dd0 (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-- | Makefile | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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 + ######################################################################### |