summaryrefslogtreecommitdiff
path: root/target/ag241/Makefile
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2010-12-30 22:45:29 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2010-12-30 22:45:29 +0100
commit220a96f9926788ed531717f78e44fdf1e7ab3b34 (patch)
tree406f65eea71fabd8cf66c2bd1108ec63f8c349ee /target/ag241/Makefile
parent38af8185ea05a1c5d1abb32a68a025e3b4afa4d6 (diff)
rework architecture / embedded systems concept
Make configuration of new targets cheap. Just add a new file in target/arch/sys-enabled/foo. See other files for syntax. While doing runtime tests with the new infrastructure I've updated a lot of other stuff: - gcc 4.5.2 - uClibc 0.9.32-rc1 (NPTL) - strongswan, php, miredo, parted, util-linux-ng, e2fsprogs I promise, this is the last big fat commit this year ;)
Diffstat (limited to 'target/ag241/Makefile')
-rw-r--r--target/ag241/Makefile50
1 files changed, 0 insertions, 50 deletions
diff --git a/target/ag241/Makefile b/target/ag241/Makefile
deleted file mode 100644
index ac95593fb..000000000
--- a/target/ag241/Makefile
+++ /dev/null
@@ -1,50 +0,0 @@
-# This file is part of the OpenADK project. OpenADK is copyrighted
-# material, please see the LICENCE file in the top-level directory.
-
-include $(TOPDIR)/rules.mk
-include $(TOPDIR)/mk/kernel.mk
-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/addpattern
- $(MAKE) -C tools/srec2bin
- $(MAKE) -C ../tools/squashfs prepare compile install
-
-kernel-install: tools-compile
- ${TARGET_CROSS}objcopy -S -O srec $(LINUX_DIR)/vmlinuz \
- $(LINUX_DIR)/vmlinux.srec
- PATH='${TARGET_PATH}' \
- srec2bin $(LINUX_DIR)/vmlinux.srec $(LINUX_DIR)/vmlinux.bin
- (dd if=/dev/zero bs=16 count=1; cat $(LINUX_DIR)/vmlinux.bin) > \
- $(LINUX_DIR)/vmlinux.tmp
- PATH='${TARGET_PATH}' \
- addpattern -p AG3B -b -r 2.0 -i $(LINUX_DIR)/vmlinux.tmp \
- -o $(BIN_DIR)/${ADK_TARGET}-${FS}-kernel 2>/dev/null
-
-ifeq ($(FS),squashfs)
-imageinstall: kernel-install $(BIN_DIR)/$(ROOTFSSQUASHFS)
- @if [ $$(stat --format=%s ${BUILD_DIR}/${ROOTFSSQUASHFS}) -gt 3801088 ];then \
- echo 'Image is too big!'; \
- else \
- ${CP} ${BUILD_DIR}/${ROOTFSSQUASHFS} ${BIN_DIR}/${ROOTFSSQUASHFS}; \
- echo The image file is $(ROOTFSSQUASHFS); \
- echo 'You can flash the image via tftp:'; \
- echo 'tftp 192.168.1.1'; \
- echo 'tftp> binary'; \
- echo "tftp> put $(ROOTFSSQUASHFS) upgrade_code.bin"; \
- fi
-endif
-ifeq ($(FS),nfsroot)
-imageinstall: kernel-install $(BIN_DIR)/$(ROOTFSUSERTARBALL)
- @echo 'The kernel file is: ${BIN_DIR}/${ADK_TARGET}-${FS}-kernel'
- @echo 'The nfs root tarball is: ${BIN_DIR}/${ROOTFSUSERTARBALL}'
- @echo 'You can flash the kernel via tftp:'
- @echo 'tftp 192.168.1.1'
- @echo 'tftp> binary'
- @echo 'tftp> put ${ADK_TARGET}-${FS}-kernel upgrade_code.bin'
-endif