summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorSascha Hauer <sha@octopus.labnet.pengutronix.de>2007-09-13 15:33:09 +0200
committerSascha Hauer <sha@octopus.labnet.pengutronix.de>2007-09-13 15:33:09 +0200
commit47d938f7ab256a34075f03e51d9be9e1980d4f73 (patch)
treeadd0c1833584ed582c4867098b97f48298ba824a /arch
parenta1fe3d6b828a02a366ea3483dd25b4819c672c8e (diff)
downloadbarebox-47d938f7ab256a34075f03e51d9be9e1980d4f73.tar.gz
barebox-47d938f7ab256a34075f03e51d9be9e1980d4f73.tar.xz
- some more cleanup in Makefiles
- move netx image generation to arch/arm/Makefile
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/Makefile14
1 files changed, 14 insertions, 0 deletions
diff --git a/arch/arm/Makefile b/arch/arm/Makefile
index 52087ecc09..24b5d98686 100644
--- a/arch/arm/Makefile
+++ b/arch/arm/Makefile
@@ -41,6 +41,20 @@ endif
$(Q)ln -fsn proc-armv include/asm-arm/proc
@touch $@
+uboot.netx: uboot.bin
+ $(Q)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);
+
+ifeq ($(machine-y),netx)
+KBUILD_IMAGE := u-boot.netx
+endif
+
+all: $(KBUILD_IMAGE)
+
archprepare: maketools
PHONY += maketools