summaryrefslogtreecommitdiff
path: root/target/foxg20/Makefile
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2010-11-14 21:10:58 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2010-11-14 21:10:58 +0100
commitdd0513a1ae9fda90a4d048b98b5ac418e1ef6380 (patch)
tree62e9e8e9a7e1bc9cfbf2e824234d19a83ac326e4 /target/foxg20/Makefile
parentb4d61f0ee3485f89dd8560227c833dc948523ecf (diff)
parent3c253112ef251feb7151249e0954b7ffc93dbbdb (diff)
Merge branch 'master' of git+ssh://openadk.org/git/openadk
Diffstat (limited to 'target/foxg20/Makefile')
-rw-r--r--target/foxg20/Makefile10
1 files changed, 8 insertions, 2 deletions
diff --git a/target/foxg20/Makefile b/target/foxg20/Makefile
index 0a022baf3..de8724da7 100644
--- a/target/foxg20/Makefile
+++ b/target/foxg20/Makefile
@@ -7,12 +7,18 @@ include $(TOPDIR)/mk/modules.mk
include $(TOPDIR)/mk/kernel-build.mk
include $(TOPDIR)/mk/image.mk
+$(TOOLS_BUILD_DIR):
+ @mkdir -p $(TOOLS_BUILD_DIR)
+
+tools-compile: $(TOOLS_BUILD_DIR)
+ $(MAKE) -C ../tools/uboot-mkimage
+
KERNEL:=$(BUILD_DIR)/${ADK_TARGET}-${FS}-kernel
LOADADDR:= 0x20008000
-kernel-install:
+kernel-install: tools-compile
@gzip -9 < $(LINUX_DIR)/arch/arm/boot/Image > ${BUILD_DIR}/Image.gz
- @mkimage -A arm -O linux -T kernel -C gzip \
+ PATH='${TARGET_PATH}' mkimage -A arm -O linux -T kernel -C gzip \
-a ${LOADADDR} -e ${LOADADDR} -d ${BUILD_DIR}/Image.gz \
-n foxg20 $(TARGET_DIR)/boot/vmlinuz-adk $(MAKE_TRACE)
@cp $(TARGET_DIR)/boot/vmlinuz-adk \