summaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
Diffstat (limited to 'target')
-rw-r--r--target/Makefile13
-rw-r--r--target/image/ar7/Makefile (renamed from target/linux/image/ar7/Makefile)0
-rw-r--r--target/image/ar7/sercomm/adam2.bin (renamed from target/linux/image/ar7/sercomm/adam2.bin)bin131072 -> 131072 bytes
-rw-r--r--target/image/ar7/sercomm/dg834 (renamed from target/linux/image/ar7/sercomm/dg834)bin80 -> 80 bytes
-rw-r--r--target/image/ar7/sercomm/jdr454wb (renamed from target/linux/image/ar7/sercomm/jdr454wb)bin80 -> 80 bytes
-rw-r--r--target/image/ar7/src/LzmaDecode.c (renamed from target/linux/image/ar7/src/LzmaDecode.c)0
-rw-r--r--target/image/ar7/src/LzmaDecode.h (renamed from target/linux/image/ar7/src/LzmaDecode.h)0
-rw-r--r--target/image/ar7/src/gzip.h (renamed from target/linux/image/ar7/src/gzip.h)0
-rw-r--r--target/image/ar7/src/ld.script.in (renamed from target/linux/image/ar7/src/ld.script.in)0
-rw-r--r--target/image/ar7/src/loader.c (renamed from target/linux/image/ar7/src/loader.c)0
-rw-r--r--target/image/ar7/src/srec2bin.c (renamed from target/linux/image/ar7/src/srec2bin.c)0
-rw-r--r--target/image/ar7/src/zimage.script.in (renamed from target/linux/image/ar7/src/zimage.script.in)0
-rw-r--r--target/image/aruba/Makefile (renamed from target/linux/image/aruba/Makefile)0
-rwxr-xr-xtarget/image/aruba/addVersion (renamed from target/linux/image/aruba/addVersion)bin34464 -> 34464 bytes
-rw-r--r--target/image/aruba/version (renamed from target/linux/image/aruba/version)0
-rw-r--r--target/image/au1000/Makefile (renamed from target/linux/image/au1000/Makefile)0
-rw-r--r--target/image/brcm/Makefile (renamed from target/linux/image/brcm/Makefile)0
-rw-r--r--target/image/brcm/lzma-loader/Makefile (renamed from target/linux/image/brcm/lzma-loader/Makefile)0
-rw-r--r--target/image/brcm/lzma-loader/src/LzmaDecode.c (renamed from target/linux/image/brcm/lzma-loader/src/LzmaDecode.c)0
-rw-r--r--target/image/brcm/lzma-loader/src/LzmaDecode.h (renamed from target/linux/image/brcm/lzma-loader/src/LzmaDecode.h)0
-rw-r--r--target/image/brcm/lzma-loader/src/Makefile (renamed from target/linux/image/brcm/lzma-loader/src/Makefile)0
-rw-r--r--target/image/brcm/lzma-loader/src/README (renamed from target/linux/image/brcm/lzma-loader/src/README)0
-rw-r--r--target/image/brcm/lzma-loader/src/decompress.c (renamed from target/linux/image/brcm/lzma-loader/src/decompress.c)0
-rw-r--r--target/image/brcm/lzma-loader/src/decompress.lds.in (renamed from target/linux/image/brcm/lzma-loader/src/decompress.lds.in)0
-rw-r--r--target/image/brcm/lzma-loader/src/head.S (renamed from target/linux/image/brcm/lzma-loader/src/head.S)0
-rw-r--r--target/image/brcm/lzma-loader/src/loader.lds.in (renamed from target/linux/image/brcm/lzma-loader/src/loader.lds.in)0
-rw-r--r--target/image/generic/Makefile (renamed from target/linux/image/generic/Makefile)0
-rw-r--r--target/image/generic/lzma-loader/Makefile (renamed from target/linux/image/generic/lzma-loader/Makefile)0
-rw-r--r--target/image/generic/lzma-loader/src/LzmaDecode.c (renamed from target/linux/image/generic/lzma-loader/src/LzmaDecode.c)0
-rw-r--r--target/image/generic/lzma-loader/src/LzmaDecode.h (renamed from target/linux/image/generic/lzma-loader/src/LzmaDecode.h)0
-rw-r--r--target/image/generic/lzma-loader/src/Makefile (renamed from target/linux/image/generic/lzma-loader/src/Makefile)0
-rw-r--r--target/image/generic/lzma-loader/src/decompress.c (renamed from target/linux/image/generic/lzma-loader/src/decompress.c)0
-rw-r--r--target/image/generic/lzma-loader/src/lzma-copy.lds.in (renamed from target/linux/image/generic/lzma-loader/src/lzma-copy.lds.in)0
-rw-r--r--target/image/generic/lzma-loader/src/lzma.lds.in (renamed from target/linux/image/generic/lzma-loader/src/lzma.lds.in)0
-rw-r--r--target/image/generic/lzma-loader/src/print.c (renamed from target/linux/image/generic/lzma-loader/src/print.c)0
-rw-r--r--target/image/generic/lzma-loader/src/print.h (renamed from target/linux/image/generic/lzma-loader/src/print.h)0
-rw-r--r--target/image/generic/lzma-loader/src/printf.c (renamed from target/linux/image/generic/lzma-loader/src/printf.c)0
-rw-r--r--target/image/generic/lzma-loader/src/printf.h (renamed from target/linux/image/generic/lzma-loader/src/printf.h)0
-rw-r--r--target/image/generic/lzma-loader/src/start.S (renamed from target/linux/image/generic/lzma-loader/src/start.S)0
-rw-r--r--target/image/generic/lzma-loader/src/uart16550.c (renamed from target/linux/image/generic/lzma-loader/src/uart16550.c)0
-rw-r--r--target/image/generic/lzma-loader/src/uart16550.h (renamed from target/linux/image/generic/lzma-loader/src/uart16550.h)0
-rw-r--r--target/image/rb532/Makefile (renamed from target/linux/image/rb532/Makefile)0
-rw-r--r--target/image/x86/Makefile (renamed from target/linux/image/x86/Makefile)0
-rw-r--r--target/image/xscale/Makefile (renamed from target/linux/image/xscale/Makefile)0
-rw-r--r--target/linux/Makefile31
45 files changed, 12 insertions, 32 deletions
diff --git a/target/Makefile b/target/Makefile
index 0a1434472..836469d17 100644
--- a/target/Makefile
+++ b/target/Makefile
@@ -1,4 +1,5 @@
include $(TOPDIR)/rules.mk
+include $(INCLUDE_DIR)/target.mk
all: install
@@ -11,15 +12,23 @@ TARGETS-$(CONFIG_SDK) += sdk
linux-compile: utils-install
linux-install: $(BIN_DIR)
sdk-compile: linux-install
+image_install: linux-install
download: $(patsubst %,%-source,$(TARGETS-y))
prepare: linux-prepare
-compile: linux-compile
-install: image_clean $(patsubst %,%-install,$(TARGETS-y))
+compile: linux-compile image_compile
+install: image_clean $(patsubst %,%-install,$(TARGETS-y)) image_install
clean: $(patsubst %,%-clean,$(TARGETS-y)) image_clean
image_clean: FORCE
+ $(MAKE) -C image/$(BOARD) clean
rm -f $(BIN_DIR)/openwrt-*
+
+image_compile: FORCE
+ $(MAKE) -C image/$(BOARD) compile
+
+image_install: image_compile
+ $(MAKE) -C image/$(BOARD) install
%-clean: FORCE
$(MAKE) -C $(patsubst %-clean,%,$@) clean
diff --git a/target/linux/image/ar7/Makefile b/target/image/ar7/Makefile
index 5ee6b0dc1..5ee6b0dc1 100644
--- a/target/linux/image/ar7/Makefile
+++ b/target/image/ar7/Makefile
diff --git a/target/linux/image/ar7/sercomm/adam2.bin b/target/image/ar7/sercomm/adam2.bin
index d4aa0cd2d..d4aa0cd2d 100644
--- a/target/linux/image/ar7/sercomm/adam2.bin
+++ b/target/image/ar7/sercomm/adam2.bin
Binary files differ
diff --git a/target/linux/image/ar7/sercomm/dg834 b/target/image/ar7/sercomm/dg834
index 61fe336e8..61fe336e8 100644
--- a/target/linux/image/ar7/sercomm/dg834
+++ b/target/image/ar7/sercomm/dg834
Binary files differ
diff --git a/target/linux/image/ar7/sercomm/jdr454wb b/target/image/ar7/sercomm/jdr454wb
index 821ff1c1a..821ff1c1a 100644
--- a/target/linux/image/ar7/sercomm/jdr454wb
+++ b/target/image/ar7/sercomm/jdr454wb
Binary files differ
diff --git a/target/linux/image/ar7/src/LzmaDecode.c b/target/image/ar7/src/LzmaDecode.c
index 951700bdd..951700bdd 100644
--- a/target/linux/image/ar7/src/LzmaDecode.c
+++ b/target/image/ar7/src/LzmaDecode.c
diff --git a/target/linux/image/ar7/src/LzmaDecode.h b/target/image/ar7/src/LzmaDecode.h
index f58944e3c..f58944e3c 100644
--- a/target/linux/image/ar7/src/LzmaDecode.h
+++ b/target/image/ar7/src/LzmaDecode.h
diff --git a/target/linux/image/ar7/src/gzip.h b/target/image/ar7/src/gzip.h
index 917e66655..917e66655 100644
--- a/target/linux/image/ar7/src/gzip.h
+++ b/target/image/ar7/src/gzip.h
diff --git a/target/linux/image/ar7/src/ld.script.in b/target/image/ar7/src/ld.script.in
index 40389e644..40389e644 100644
--- a/target/linux/image/ar7/src/ld.script.in
+++ b/target/image/ar7/src/ld.script.in
diff --git a/target/linux/image/ar7/src/loader.c b/target/image/ar7/src/loader.c
index 22b909d7e..22b909d7e 100644
--- a/target/linux/image/ar7/src/loader.c
+++ b/target/image/ar7/src/loader.c
diff --git a/target/linux/image/ar7/src/srec2bin.c b/target/image/ar7/src/srec2bin.c
index 0eb8b2023..0eb8b2023 100644
--- a/target/linux/image/ar7/src/srec2bin.c
+++ b/target/image/ar7/src/srec2bin.c
diff --git a/target/linux/image/ar7/src/zimage.script.in b/target/image/ar7/src/zimage.script.in
index 1a0865b08..1a0865b08 100644
--- a/target/linux/image/ar7/src/zimage.script.in
+++ b/target/image/ar7/src/zimage.script.in
diff --git a/target/linux/image/aruba/Makefile b/target/image/aruba/Makefile
index ad13ffd54..ad13ffd54 100644
--- a/target/linux/image/aruba/Makefile
+++ b/target/image/aruba/Makefile
diff --git a/target/linux/image/aruba/addVersion b/target/image/aruba/addVersion
index 796f73ad1..796f73ad1 100755
--- a/target/linux/image/aruba/addVersion
+++ b/target/image/aruba/addVersion
Binary files differ
diff --git a/target/linux/image/aruba/version b/target/image/aruba/version
index fff5589e1..fff5589e1 100644
--- a/target/linux/image/aruba/version
+++ b/target/image/aruba/version
diff --git a/target/linux/image/au1000/Makefile b/target/image/au1000/Makefile
index 3aaf665ca..3aaf665ca 100644
--- a/target/linux/image/au1000/Makefile
+++ b/target/image/au1000/Makefile
diff --git a/target/linux/image/brcm/Makefile b/target/image/brcm/Makefile
index 30bad50f2..30bad50f2 100644
--- a/target/linux/image/brcm/Makefile
+++ b/target/image/brcm/Makefile
diff --git a/target/linux/image/brcm/lzma-loader/Makefile b/target/image/brcm/lzma-loader/Makefile
index 3fa00fa4d..3fa00fa4d 100644
--- a/target/linux/image/brcm/lzma-loader/Makefile
+++ b/target/image/brcm/lzma-loader/Makefile
diff --git a/target/linux/image/brcm/lzma-loader/src/LzmaDecode.c b/target/image/brcm/lzma-loader/src/LzmaDecode.c
index 951700bdd..951700bdd 100644
--- a/target/linux/image/brcm/lzma-loader/src/LzmaDecode.c
+++ b/target/image/brcm/lzma-loader/src/LzmaDecode.c
diff --git a/target/linux/image/brcm/lzma-loader/src/LzmaDecode.h b/target/image/brcm/lzma-loader/src/LzmaDecode.h
index f58944e3c..f58944e3c 100644
--- a/target/linux/image/brcm/lzma-loader/src/LzmaDecode.h
+++ b/target/image/brcm/lzma-loader/src/LzmaDecode.h
diff --git a/target/linux/image/brcm/lzma-loader/src/Makefile b/target/image/brcm/lzma-loader/src/Makefile
index 85a864674..85a864674 100644
--- a/target/linux/image/brcm/lzma-loader/src/Makefile
+++ b/target/image/brcm/lzma-loader/src/Makefile
diff --git a/target/linux/image/brcm/lzma-loader/src/README b/target/image/brcm/lzma-loader/src/README
index 16649e950..16649e950 100644
--- a/target/linux/image/brcm/lzma-loader/src/README
+++ b/target/image/brcm/lzma-loader/src/README
diff --git a/target/linux/image/brcm/lzma-loader/src/decompress.c b/target/image/brcm/lzma-loader/src/decompress.c
index ec510e21e..ec510e21e 100644
--- a/target/linux/image/brcm/lzma-loader/src/decompress.c
+++ b/target/image/brcm/lzma-loader/src/decompress.c
diff --git a/target/linux/image/brcm/lzma-loader/src/decompress.lds.in b/target/image/brcm/lzma-loader/src/decompress.lds.in
index 33f56f8a0..33f56f8a0 100644
--- a/target/linux/image/brcm/lzma-loader/src/decompress.lds.in
+++ b/target/image/brcm/lzma-loader/src/decompress.lds.in
diff --git a/target/linux/image/brcm/lzma-loader/src/head.S b/target/image/brcm/lzma-loader/src/head.S
index 9bfbd53d5..9bfbd53d5 100644
--- a/target/linux/image/brcm/lzma-loader/src/head.S
+++ b/target/image/brcm/lzma-loader/src/head.S
diff --git a/target/linux/image/brcm/lzma-loader/src/loader.lds.in b/target/image/brcm/lzma-loader/src/loader.lds.in
index 20f2ea98e..20f2ea98e 100644
--- a/target/linux/image/brcm/lzma-loader/src/loader.lds.in
+++ b/target/image/brcm/lzma-loader/src/loader.lds.in
diff --git a/target/linux/image/generic/Makefile b/target/image/generic/Makefile
index 3cb3b2e0b..3cb3b2e0b 100644
--- a/target/linux/image/generic/Makefile
+++ b/target/image/generic/Makefile
diff --git a/target/linux/image/generic/lzma-loader/Makefile b/target/image/generic/lzma-loader/Makefile
index 3de04a81a..3de04a81a 100644
--- a/target/linux/image/generic/lzma-loader/Makefile
+++ b/target/image/generic/lzma-loader/Makefile
diff --git a/target/linux/image/generic/lzma-loader/src/LzmaDecode.c b/target/image/generic/lzma-loader/src/LzmaDecode.c
index c90a0d3ef..c90a0d3ef 100644
--- a/target/linux/image/generic/lzma-loader/src/LzmaDecode.c
+++ b/target/image/generic/lzma-loader/src/LzmaDecode.c
diff --git a/target/linux/image/generic/lzma-loader/src/LzmaDecode.h b/target/image/generic/lzma-loader/src/LzmaDecode.h
index 213062af1..213062af1 100644
--- a/target/linux/image/generic/lzma-loader/src/LzmaDecode.h
+++ b/target/image/generic/lzma-loader/src/LzmaDecode.h
diff --git a/target/linux/image/generic/lzma-loader/src/Makefile b/target/image/generic/lzma-loader/src/Makefile
index 54356889f..54356889f 100644
--- a/target/linux/image/generic/lzma-loader/src/Makefile
+++ b/target/image/generic/lzma-loader/src/Makefile
diff --git a/target/linux/image/generic/lzma-loader/src/decompress.c b/target/image/generic/lzma-loader/src/decompress.c
index 4ed432d1a..4ed432d1a 100644
--- a/target/linux/image/generic/lzma-loader/src/decompress.c
+++ b/target/image/generic/lzma-loader/src/decompress.c
diff --git a/target/linux/image/generic/lzma-loader/src/lzma-copy.lds.in b/target/image/generic/lzma-loader/src/lzma-copy.lds.in
index fbc87ab8e..fbc87ab8e 100644
--- a/target/linux/image/generic/lzma-loader/src/lzma-copy.lds.in
+++ b/target/image/generic/lzma-loader/src/lzma-copy.lds.in
diff --git a/target/linux/image/generic/lzma-loader/src/lzma.lds.in b/target/image/generic/lzma-loader/src/lzma.lds.in
index 6021cec01..6021cec01 100644
--- a/target/linux/image/generic/lzma-loader/src/lzma.lds.in
+++ b/target/image/generic/lzma-loader/src/lzma.lds.in
diff --git a/target/linux/image/generic/lzma-loader/src/print.c b/target/image/generic/lzma-loader/src/print.c
index 950687bef..950687bef 100644
--- a/target/linux/image/generic/lzma-loader/src/print.c
+++ b/target/image/generic/lzma-loader/src/print.c
diff --git a/target/linux/image/generic/lzma-loader/src/print.h b/target/image/generic/lzma-loader/src/print.h
index b05146390..b05146390 100644
--- a/target/linux/image/generic/lzma-loader/src/print.h
+++ b/target/image/generic/lzma-loader/src/print.h
diff --git a/target/linux/image/generic/lzma-loader/src/printf.c b/target/image/generic/lzma-loader/src/printf.c
index 49bd50d7c..49bd50d7c 100644
--- a/target/linux/image/generic/lzma-loader/src/printf.c
+++ b/target/image/generic/lzma-loader/src/printf.c
diff --git a/target/linux/image/generic/lzma-loader/src/printf.h b/target/image/generic/lzma-loader/src/printf.h
index 9b1c1df23..9b1c1df23 100644
--- a/target/linux/image/generic/lzma-loader/src/printf.h
+++ b/target/image/generic/lzma-loader/src/printf.h
diff --git a/target/linux/image/generic/lzma-loader/src/start.S b/target/image/generic/lzma-loader/src/start.S
index 9a85c4c35..9a85c4c35 100644
--- a/target/linux/image/generic/lzma-loader/src/start.S
+++ b/target/image/generic/lzma-loader/src/start.S
diff --git a/target/linux/image/generic/lzma-loader/src/uart16550.c b/target/image/generic/lzma-loader/src/uart16550.c
index 7df572760..7df572760 100644
--- a/target/linux/image/generic/lzma-loader/src/uart16550.c
+++ b/target/image/generic/lzma-loader/src/uart16550.c
diff --git a/target/linux/image/generic/lzma-loader/src/uart16550.h b/target/image/generic/lzma-loader/src/uart16550.h
index b3fd6fdd7..b3fd6fdd7 100644
--- a/target/linux/image/generic/lzma-loader/src/uart16550.h
+++ b/target/image/generic/lzma-loader/src/uart16550.h
diff --git a/target/linux/image/rb532/Makefile b/target/image/rb532/Makefile
index bba89522a..bba89522a 100644
--- a/target/linux/image/rb532/Makefile
+++ b/target/image/rb532/Makefile
diff --git a/target/linux/image/x86/Makefile b/target/image/x86/Makefile
index e4b3a9e44..e4b3a9e44 100644
--- a/target/linux/image/x86/Makefile
+++ b/target/image/x86/Makefile
diff --git a/target/linux/image/xscale/Makefile b/target/image/xscale/Makefile
index 683c6028f..683c6028f 100644
--- a/target/linux/image/xscale/Makefile
+++ b/target/image/xscale/Makefile
diff --git a/target/linux/Makefile b/target/linux/Makefile
index e1a314d1d..bab26845a 100644
--- a/target/linux/Makefile
+++ b/target/linux/Makefile
@@ -1,33 +1,8 @@
include $(TOPDIR)/rules.mk
-
-PKG_OS:=$(shell uname -s)
-PKG_CPU:=$(shell uname -m)
-
-define kernel_template
-ifeq ($(CONFIG_LINUX_$(3)),y)
-KERNEL:=$(1)
-BOARD:=$(2)
-endif
-endef
-
-$(eval $(call kernel_template,2.4,brcm,2_4_BRCM))
-$(eval $(call kernel_template,2.4,ar7,2_4_AR7))
-$(eval $(call kernel_template,2.4,x86,2_4_X86))
-$(eval $(call kernel_template,2.6,brcm,2_6_BRCM))
-$(eval $(call kernel_template,2.6,rb532,2_6_RB532))
-$(eval $(call kernel_template,2.6,x86,2_6_X86))
-$(eval $(call kernel_template,2.4,ar531x,2_4_AR531X))
-$(eval $(call kernel_template,2.6,aruba,2_6_ARUBA))
-$(eval $(call kernel_template,2.6,au1000,2_6_AU1000))
-$(eval $(call kernel_template,2.6,xscale,2_6_XSCALE))
-$(eval $(call kernel_template,2.6,sibyte,2_6_SIBYTE))
-
-export BOARD
-export KERNEL
+include $(INCLUDE_DIR)/target.mk
source:
$(MAKE) -C $(BOARD)-$(KERNEL) source
- $(MAKE) -C image/$(BOARD) source
prepare:
rm -f $(TOPDIR)/.kernel.mk
@@ -38,10 +13,6 @@ compile:
install:
$(MAKE) -C $(BOARD)-$(KERNEL) install
- $(MAKE) -C image/$(BOARD) install
clean:
$(MAKE) -C $(BOARD)-$(KERNEL) clean
-
-image/%:
- $(MAKE) -C image $(patsubst image/%,%,$@)