summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorSascha Hauer <sha@octopus.labnet.pengutronix.de>2007-09-05 12:58:00 +0200
committerSascha Hauer <sha@octopus.labnet.pengutronix.de>2007-09-05 12:58:00 +0200
commit6422fe2cd5683b83c7c4c3449fa778efd5de59a7 (patch)
tree871e51eaa984e88698dd41c2fb0431199073f4de /Makefile
parentb39e410ca701f0d96b38a1347cc1d3aaddbe0164 (diff)
downloadbarebox-6422fe2cd5683b83c7c4c3449fa778efd5de59a7.tar.gz
barebox-6422fe2cd5683b83c7c4c3449fa778efd5de59a7.tar.xz
generate netx images in toplevel Makefile. This does not look very good
but I do not have another idea now.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 1f8e5c935c..aeefad9aa4 100644
--- a/Makefile
+++ b/Makefile
@@ -592,6 +592,15 @@ define rule_uboot__
$(OBJCOPY) -O binary uboot uboot.bin
$(OBJDUMP) -d uboot > uboot.S
+ $(Q)if [ -n $(CONFIG_ARCH_NETX) ]; then \
+ scripts/gen_netx_image -i uboot.bin -o uboot.netx \
+ --sdramctrl=$(CONFIG_NETX_SDRAM_CTRL) \
+ --sdramtimctrl=$(CONFIG_NETX_SDRAM_TIMING_CTRL) \
+ --memctrl=$(CONFIG_NETX_MEM_CTRL) \
+ --entrypoint=$(CONFIG_TEXT_BASE) \
+ --cookie=$(CONFIG_NETX_COOKIE); \
+ fi
+
$(Q)$(if $($(quiet)cmd_sysmap), \
echo ' $($(quiet)cmd_sysmap) System.map' &&) \
$(cmd_sysmap) $@ System.map; \