From b0cf6af7c2c5bcb6d0d42f2493c529ca100b1744 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Wed, 21 Jun 2006 14:02:29 +0000 Subject: [PATCH] move target/linux/image to target/image SVN-Revision: 4040 --- openwrt/include/target.mk | 23 +++++++++++++ openwrt/target/Makefile | 13 ++++++-- openwrt/target/{linux => }/image/ar7/Makefile | 0 .../{linux => }/image/ar7/sercomm/adam2.bin | Bin .../{linux => }/image/ar7/sercomm/dg834 | Bin .../{linux => }/image/ar7/sercomm/jdr454wb | Bin .../{linux => }/image/ar7/src/LzmaDecode.c | 0 .../{linux => }/image/ar7/src/LzmaDecode.h | 0 .../target/{linux => }/image/ar7/src/gzip.h | 0 .../{linux => }/image/ar7/src/ld.script.in | 0 .../target/{linux => }/image/ar7/src/loader.c | 0 .../{linux => }/image/ar7/src/srec2bin.c | 0 .../image/ar7/src/zimage.script.in | 0 .../target/{linux => }/image/aruba/Makefile | 0 .../target/{linux => }/image/aruba/addVersion | Bin .../target/{linux => }/image/aruba/version | 0 .../target/{linux => }/image/au1000/Makefile | 0 .../target/{linux => }/image/brcm/Makefile | 0 .../image/brcm/lzma-loader/Makefile | 0 .../image/brcm/lzma-loader/src/LzmaDecode.c | 0 .../image/brcm/lzma-loader/src/LzmaDecode.h | 0 .../image/brcm/lzma-loader/src/Makefile | 0 .../image/brcm/lzma-loader/src/README | 0 .../image/brcm/lzma-loader/src/decompress.c | 0 .../brcm/lzma-loader/src/decompress.lds.in | 0 .../image/brcm/lzma-loader/src/head.S | 0 .../image/brcm/lzma-loader/src/loader.lds.in | 0 .../target/{linux => }/image/generic/Makefile | 0 .../image/generic/lzma-loader/Makefile | 0 .../generic/lzma-loader/src/LzmaDecode.c | 0 .../generic/lzma-loader/src/LzmaDecode.h | 0 .../image/generic/lzma-loader/src/Makefile | 0 .../generic/lzma-loader/src/decompress.c | 0 .../generic/lzma-loader/src/lzma-copy.lds.in | 0 .../image/generic/lzma-loader/src/lzma.lds.in | 0 .../image/generic/lzma-loader/src/print.c | 0 .../image/generic/lzma-loader/src/print.h | 0 .../image/generic/lzma-loader/src/printf.c | 0 .../image/generic/lzma-loader/src/printf.h | 0 .../image/generic/lzma-loader/src/start.S | 0 .../image/generic/lzma-loader/src/uart16550.c | 0 .../image/generic/lzma-loader/src/uart16550.h | 0 .../target/{linux => }/image/rb532/Makefile | 0 openwrt/target/{linux => }/image/x86/Makefile | 0 .../target/{linux => }/image/xscale/Makefile | 0 openwrt/target/linux/Makefile | 31 +----------------- 46 files changed, 35 insertions(+), 32 deletions(-) create mode 100644 openwrt/include/target.mk rename openwrt/target/{linux => }/image/ar7/Makefile (100%) rename openwrt/target/{linux => }/image/ar7/sercomm/adam2.bin (100%) rename openwrt/target/{linux => }/image/ar7/sercomm/dg834 (100%) rename openwrt/target/{linux => }/image/ar7/sercomm/jdr454wb (100%) rename openwrt/target/{linux => }/image/ar7/src/LzmaDecode.c (100%) rename openwrt/target/{linux => }/image/ar7/src/LzmaDecode.h (100%) rename openwrt/target/{linux => }/image/ar7/src/gzip.h (100%) rename openwrt/target/{linux => }/image/ar7/src/ld.script.in (100%) rename openwrt/target/{linux => }/image/ar7/src/loader.c (100%) rename openwrt/target/{linux => }/image/ar7/src/srec2bin.c (100%) rename openwrt/target/{linux => }/image/ar7/src/zimage.script.in (100%) rename openwrt/target/{linux => }/image/aruba/Makefile (100%) rename openwrt/target/{linux => }/image/aruba/addVersion (100%) rename openwrt/target/{linux => }/image/aruba/version (100%) rename openwrt/target/{linux => }/image/au1000/Makefile (100%) rename openwrt/target/{linux => }/image/brcm/Makefile (100%) rename openwrt/target/{linux => }/image/brcm/lzma-loader/Makefile (100%) rename openwrt/target/{linux => }/image/brcm/lzma-loader/src/LzmaDecode.c (100%) rename openwrt/target/{linux => }/image/brcm/lzma-loader/src/LzmaDecode.h (100%) rename openwrt/target/{linux => }/image/brcm/lzma-loader/src/Makefile (100%) rename openwrt/target/{linux => }/image/brcm/lzma-loader/src/README (100%) rename openwrt/target/{linux => }/image/brcm/lzma-loader/src/decompress.c (100%) rename openwrt/target/{linux => }/image/brcm/lzma-loader/src/decompress.lds.in (100%) rename openwrt/target/{linux => }/image/brcm/lzma-loader/src/head.S (100%) rename openwrt/target/{linux => }/image/brcm/lzma-loader/src/loader.lds.in (100%) rename openwrt/target/{linux => }/image/generic/Makefile (100%) rename openwrt/target/{linux => }/image/generic/lzma-loader/Makefile (100%) rename openwrt/target/{linux => }/image/generic/lzma-loader/src/LzmaDecode.c (100%) rename openwrt/target/{linux => }/image/generic/lzma-loader/src/LzmaDecode.h (100%) rename openwrt/target/{linux => }/image/generic/lzma-loader/src/Makefile (100%) rename openwrt/target/{linux => }/image/generic/lzma-loader/src/decompress.c (100%) rename openwrt/target/{linux => }/image/generic/lzma-loader/src/lzma-copy.lds.in (100%) rename openwrt/target/{linux => }/image/generic/lzma-loader/src/lzma.lds.in (100%) rename openwrt/target/{linux => }/image/generic/lzma-loader/src/print.c (100%) rename openwrt/target/{linux => }/image/generic/lzma-loader/src/print.h (100%) rename openwrt/target/{linux => }/image/generic/lzma-loader/src/printf.c (100%) rename openwrt/target/{linux => }/image/generic/lzma-loader/src/printf.h (100%) rename openwrt/target/{linux => }/image/generic/lzma-loader/src/start.S (100%) rename openwrt/target/{linux => }/image/generic/lzma-loader/src/uart16550.c (100%) rename openwrt/target/{linux => }/image/generic/lzma-loader/src/uart16550.h (100%) rename openwrt/target/{linux => }/image/rb532/Makefile (100%) rename openwrt/target/{linux => }/image/x86/Makefile (100%) rename openwrt/target/{linux => }/image/xscale/Makefile (100%) diff --git a/openwrt/include/target.mk b/openwrt/include/target.mk new file mode 100644 index 0000000000..afdf5d8ae6 --- /dev/null +++ b/openwrt/include/target.mk @@ -0,0 +1,23 @@ +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 + + diff --git a/openwrt/target/Makefile b/openwrt/target/Makefile index 0a1434472a..836469d171 100644 --- a/openwrt/target/Makefile +++ b/openwrt/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/openwrt/target/linux/image/ar7/Makefile b/openwrt/target/image/ar7/Makefile similarity index 100% rename from openwrt/target/linux/image/ar7/Makefile rename to openwrt/target/image/ar7/Makefile diff --git a/openwrt/target/linux/image/ar7/sercomm/adam2.bin b/openwrt/target/image/ar7/sercomm/adam2.bin similarity index 100% rename from openwrt/target/linux/image/ar7/sercomm/adam2.bin rename to openwrt/target/image/ar7/sercomm/adam2.bin diff --git a/openwrt/target/linux/image/ar7/sercomm/dg834 b/openwrt/target/image/ar7/sercomm/dg834 similarity index 100% rename from openwrt/target/linux/image/ar7/sercomm/dg834 rename to openwrt/target/image/ar7/sercomm/dg834 diff --git a/openwrt/target/linux/image/ar7/sercomm/jdr454wb b/openwrt/target/image/ar7/sercomm/jdr454wb similarity index 100% rename from openwrt/target/linux/image/ar7/sercomm/jdr454wb rename to openwrt/target/image/ar7/sercomm/jdr454wb diff --git a/openwrt/target/linux/image/ar7/src/LzmaDecode.c b/openwrt/target/image/ar7/src/LzmaDecode.c similarity index 100% rename from openwrt/target/linux/image/ar7/src/LzmaDecode.c rename to openwrt/target/image/ar7/src/LzmaDecode.c diff --git a/openwrt/target/linux/image/ar7/src/LzmaDecode.h b/openwrt/target/image/ar7/src/LzmaDecode.h similarity index 100% rename from openwrt/target/linux/image/ar7/src/LzmaDecode.h rename to openwrt/target/image/ar7/src/LzmaDecode.h diff --git a/openwrt/target/linux/image/ar7/src/gzip.h b/openwrt/target/image/ar7/src/gzip.h similarity index 100% rename from openwrt/target/linux/image/ar7/src/gzip.h rename to openwrt/target/image/ar7/src/gzip.h diff --git a/openwrt/target/linux/image/ar7/src/ld.script.in b/openwrt/target/image/ar7/src/ld.script.in similarity index 100% rename from openwrt/target/linux/image/ar7/src/ld.script.in rename to openwrt/target/image/ar7/src/ld.script.in diff --git a/openwrt/target/linux/image/ar7/src/loader.c b/openwrt/target/image/ar7/src/loader.c similarity index 100% rename from openwrt/target/linux/image/ar7/src/loader.c rename to openwrt/target/image/ar7/src/loader.c diff --git a/openwrt/target/linux/image/ar7/src/srec2bin.c b/openwrt/target/image/ar7/src/srec2bin.c similarity index 100% rename from openwrt/target/linux/image/ar7/src/srec2bin.c rename to openwrt/target/image/ar7/src/srec2bin.c diff --git a/openwrt/target/linux/image/ar7/src/zimage.script.in b/openwrt/target/image/ar7/src/zimage.script.in similarity index 100% rename from openwrt/target/linux/image/ar7/src/zimage.script.in rename to openwrt/target/image/ar7/src/zimage.script.in diff --git a/openwrt/target/linux/image/aruba/Makefile b/openwrt/target/image/aruba/Makefile similarity index 100% rename from openwrt/target/linux/image/aruba/Makefile rename to openwrt/target/image/aruba/Makefile diff --git a/openwrt/target/linux/image/aruba/addVersion b/openwrt/target/image/aruba/addVersion similarity index 100% rename from openwrt/target/linux/image/aruba/addVersion rename to openwrt/target/image/aruba/addVersion diff --git a/openwrt/target/linux/image/aruba/version b/openwrt/target/image/aruba/version similarity index 100% rename from openwrt/target/linux/image/aruba/version rename to openwrt/target/image/aruba/version diff --git a/openwrt/target/linux/image/au1000/Makefile b/openwrt/target/image/au1000/Makefile similarity index 100% rename from openwrt/target/linux/image/au1000/Makefile rename to openwrt/target/image/au1000/Makefile diff --git a/openwrt/target/linux/image/brcm/Makefile b/openwrt/target/image/brcm/Makefile similarity index 100% rename from openwrt/target/linux/image/brcm/Makefile rename to openwrt/target/image/brcm/Makefile diff --git a/openwrt/target/linux/image/brcm/lzma-loader/Makefile b/openwrt/target/image/brcm/lzma-loader/Makefile similarity index 100% rename from openwrt/target/linux/image/brcm/lzma-loader/Makefile rename to openwrt/target/image/brcm/lzma-loader/Makefile diff --git a/openwrt/target/linux/image/brcm/lzma-loader/src/LzmaDecode.c b/openwrt/target/image/brcm/lzma-loader/src/LzmaDecode.c similarity index 100% rename from openwrt/target/linux/image/brcm/lzma-loader/src/LzmaDecode.c rename to openwrt/target/image/brcm/lzma-loader/src/LzmaDecode.c diff --git a/openwrt/target/linux/image/brcm/lzma-loader/src/LzmaDecode.h b/openwrt/target/image/brcm/lzma-loader/src/LzmaDecode.h similarity index 100% rename from openwrt/target/linux/image/brcm/lzma-loader/src/LzmaDecode.h rename to openwrt/target/image/brcm/lzma-loader/src/LzmaDecode.h diff --git a/openwrt/target/linux/image/brcm/lzma-loader/src/Makefile b/openwrt/target/image/brcm/lzma-loader/src/Makefile similarity index 100% rename from openwrt/target/linux/image/brcm/lzma-loader/src/Makefile rename to openwrt/target/image/brcm/lzma-loader/src/Makefile diff --git a/openwrt/target/linux/image/brcm/lzma-loader/src/README b/openwrt/target/image/brcm/lzma-loader/src/README similarity index 100% rename from openwrt/target/linux/image/brcm/lzma-loader/src/README rename to openwrt/target/image/brcm/lzma-loader/src/README diff --git a/openwrt/target/linux/image/brcm/lzma-loader/src/decompress.c b/openwrt/target/image/brcm/lzma-loader/src/decompress.c similarity index 100% rename from openwrt/target/linux/image/brcm/lzma-loader/src/decompress.c rename to openwrt/target/image/brcm/lzma-loader/src/decompress.c diff --git a/openwrt/target/linux/image/brcm/lzma-loader/src/decompress.lds.in b/openwrt/target/image/brcm/lzma-loader/src/decompress.lds.in similarity index 100% rename from openwrt/target/linux/image/brcm/lzma-loader/src/decompress.lds.in rename to openwrt/target/image/brcm/lzma-loader/src/decompress.lds.in diff --git a/openwrt/target/linux/image/brcm/lzma-loader/src/head.S b/openwrt/target/image/brcm/lzma-loader/src/head.S similarity index 100% rename from openwrt/target/linux/image/brcm/lzma-loader/src/head.S rename to openwrt/target/image/brcm/lzma-loader/src/head.S diff --git a/openwrt/target/linux/image/brcm/lzma-loader/src/loader.lds.in b/openwrt/target/image/brcm/lzma-loader/src/loader.lds.in similarity index 100% rename from openwrt/target/linux/image/brcm/lzma-loader/src/loader.lds.in rename to openwrt/target/image/brcm/lzma-loader/src/loader.lds.in diff --git a/openwrt/target/linux/image/generic/Makefile b/openwrt/target/image/generic/Makefile similarity index 100% rename from openwrt/target/linux/image/generic/Makefile rename to openwrt/target/image/generic/Makefile diff --git a/openwrt/target/linux/image/generic/lzma-loader/Makefile b/openwrt/target/image/generic/lzma-loader/Makefile similarity index 100% rename from openwrt/target/linux/image/generic/lzma-loader/Makefile rename to openwrt/target/image/generic/lzma-loader/Makefile diff --git a/openwrt/target/linux/image/generic/lzma-loader/src/LzmaDecode.c b/openwrt/target/image/generic/lzma-loader/src/LzmaDecode.c similarity index 100% rename from openwrt/target/linux/image/generic/lzma-loader/src/LzmaDecode.c rename to openwrt/target/image/generic/lzma-loader/src/LzmaDecode.c diff --git a/openwrt/target/linux/image/generic/lzma-loader/src/LzmaDecode.h b/openwrt/target/image/generic/lzma-loader/src/LzmaDecode.h similarity index 100% rename from openwrt/target/linux/image/generic/lzma-loader/src/LzmaDecode.h rename to openwrt/target/image/generic/lzma-loader/src/LzmaDecode.h diff --git a/openwrt/target/linux/image/generic/lzma-loader/src/Makefile b/openwrt/target/image/generic/lzma-loader/src/Makefile similarity index 100% rename from openwrt/target/linux/image/generic/lzma-loader/src/Makefile rename to openwrt/target/image/generic/lzma-loader/src/Makefile diff --git a/openwrt/target/linux/image/generic/lzma-loader/src/decompress.c b/openwrt/target/image/generic/lzma-loader/src/decompress.c similarity index 100% rename from openwrt/target/linux/image/generic/lzma-loader/src/decompress.c rename to openwrt/target/image/generic/lzma-loader/src/decompress.c diff --git a/openwrt/target/linux/image/generic/lzma-loader/src/lzma-copy.lds.in b/openwrt/target/image/generic/lzma-loader/src/lzma-copy.lds.in similarity index 100% rename from openwrt/target/linux/image/generic/lzma-loader/src/lzma-copy.lds.in rename to openwrt/target/image/generic/lzma-loader/src/lzma-copy.lds.in diff --git a/openwrt/target/linux/image/generic/lzma-loader/src/lzma.lds.in b/openwrt/target/image/generic/lzma-loader/src/lzma.lds.in similarity index 100% rename from openwrt/target/linux/image/generic/lzma-loader/src/lzma.lds.in rename to openwrt/target/image/generic/lzma-loader/src/lzma.lds.in diff --git a/openwrt/target/linux/image/generic/lzma-loader/src/print.c b/openwrt/target/image/generic/lzma-loader/src/print.c similarity index 100% rename from openwrt/target/linux/image/generic/lzma-loader/src/print.c rename to openwrt/target/image/generic/lzma-loader/src/print.c diff --git a/openwrt/target/linux/image/generic/lzma-loader/src/print.h b/openwrt/target/image/generic/lzma-loader/src/print.h similarity index 100% rename from openwrt/target/linux/image/generic/lzma-loader/src/print.h rename to openwrt/target/image/generic/lzma-loader/src/print.h diff --git a/openwrt/target/linux/image/generic/lzma-loader/src/printf.c b/openwrt/target/image/generic/lzma-loader/src/printf.c similarity index 100% rename from openwrt/target/linux/image/generic/lzma-loader/src/printf.c rename to openwrt/target/image/generic/lzma-loader/src/printf.c diff --git a/openwrt/target/linux/image/generic/lzma-loader/src/printf.h b/openwrt/target/image/generic/lzma-loader/src/printf.h similarity index 100% rename from openwrt/target/linux/image/generic/lzma-loader/src/printf.h rename to openwrt/target/image/generic/lzma-loader/src/printf.h diff --git a/openwrt/target/linux/image/generic/lzma-loader/src/start.S b/openwrt/target/image/generic/lzma-loader/src/start.S similarity index 100% rename from openwrt/target/linux/image/generic/lzma-loader/src/start.S rename to openwrt/target/image/generic/lzma-loader/src/start.S diff --git a/openwrt/target/linux/image/generic/lzma-loader/src/uart16550.c b/openwrt/target/image/generic/lzma-loader/src/uart16550.c similarity index 100% rename from openwrt/target/linux/image/generic/lzma-loader/src/uart16550.c rename to openwrt/target/image/generic/lzma-loader/src/uart16550.c diff --git a/openwrt/target/linux/image/generic/lzma-loader/src/uart16550.h b/openwrt/target/image/generic/lzma-loader/src/uart16550.h similarity index 100% rename from openwrt/target/linux/image/generic/lzma-loader/src/uart16550.h rename to openwrt/target/image/generic/lzma-loader/src/uart16550.h diff --git a/openwrt/target/linux/image/rb532/Makefile b/openwrt/target/image/rb532/Makefile similarity index 100% rename from openwrt/target/linux/image/rb532/Makefile rename to openwrt/target/image/rb532/Makefile diff --git a/openwrt/target/linux/image/x86/Makefile b/openwrt/target/image/x86/Makefile similarity index 100% rename from openwrt/target/linux/image/x86/Makefile rename to openwrt/target/image/x86/Makefile diff --git a/openwrt/target/linux/image/xscale/Makefile b/openwrt/target/image/xscale/Makefile similarity index 100% rename from openwrt/target/linux/image/xscale/Makefile rename to openwrt/target/image/xscale/Makefile diff --git a/openwrt/target/linux/Makefile b/openwrt/target/linux/Makefile index e1a314d1d8..bab26845a1 100644 --- a/openwrt/target/linux/Makefile +++ b/openwrt/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/%,%,$@) -- 2.30.2