1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-24 04:56:14 +02:00

move target/image/platform to target/linux/platform/image

platform directories are now self contained


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@5669 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
mbm 2006-11-28 20:14:41 +00:00
parent 23ac60b66c
commit 9e0a57b449
55 changed files with 18 additions and 13 deletions

View File

@ -93,7 +93,7 @@ menu "Target Images"
comment "Image Options" comment "Image Options"
source "target/image/*/Config.in" source "target/linux/*/image/Config.in"
config TARGET_ROOTFS_FSPART config TARGET_ROOTFS_FSPART
int "Filesystem part size (in MB)" int "Filesystem part size (in MB)"

View File

@ -19,6 +19,9 @@ linux-compile: utils-install
linux-install: $(BIN_DIR) linux-install: $(BIN_DIR)
image_install: linux-install image_install: linux-install
IMAGE_DIR:=linux/$(BOARD)-$(KERNEL)/image
download: $(patsubst %,%-download,$(TARGETS-y)) download: $(patsubst %,%-download,$(TARGETS-y))
prepare: linux-prepare prepare: linux-prepare
compile: linux-compile image_compile compile: linux-compile image_compile
@ -27,17 +30,17 @@ clean: $(patsubst %,%-clean,$(TARGETS-y)) image_clean
prereq: FORCE prereq: FORCE
$(MAKE) -C linux/$(BOARD)-$(KERNEL) prereq $(MAKE) -C linux/$(BOARD)-$(KERNEL) prereq
$(MAKE) -C image/$(BOARD) prereq $(MAKE) -C $(IMAGE_DIR) prereq
image_clean: FORCE image_clean: FORCE
$(MAKE) -C image/$(BOARD) clean $(MAKE) -C $(IMAGE_DIR) clean
rm -f $(BIN_DIR)/openwrt-* rm -f $(BIN_DIR)/openwrt-*
image_compile: FORCE image_compile: FORCE
$(MAKE) -C image/$(BOARD) compile $(MAKE) -C $(IMAGE_DIR) compile
image_install: image_compile image_install: image_compile
$(MAKE) -C image/$(BOARD) install $(MAKE) -C $(IMAGE_DIR) install
%-clean: FORCE %-clean: FORCE
$(MAKE) -C $(patsubst %-clean,%,$@) clean $(MAKE) -C $(patsubst %-clean,%,$@) clean

View File

@ -18,12 +18,12 @@ LOADER_MAKEOPTS= \
RAMSIZE=$(RAMSIZE) RAMSIZE=$(RAMSIZE)
define Build/Clean define Build/Clean
$(MAKE) -C ../generic/lzma-loader $(LOADER_MAKEOPTS) clean $(MAKE) -C ../../generic-2.6/image/lzma-loader $(LOADER_MAKEOPTS) clean
endef endef
define Image/Prepare define Image/Prepare
cat $(KDIR)/vmlinux | $(STAGING_DIR)/bin/lzma e -si -so -eos -lc1 -lp2 -pb2 > $(KDIR)/vmlinux.lzma cat $(KDIR)/vmlinux | $(STAGING_DIR)/bin/lzma e -si -so -eos -lc1 -lp2 -pb2 > $(KDIR)/vmlinux.lzma
$(MAKE) -C ../generic/lzma-loader $(LOADER_MAKEOPTS) clean compile $(MAKE) -C ../../generic-2.6/image/lzma-loader $(LOADER_MAKEOPTS) clean compile
endef endef
define Image/BuildKernel define Image/BuildKernel

View File

@ -21,7 +21,7 @@ LOADER_MAKEOPTS= \
RAMSIZE=$(RAMSIZE) RAMSIZE=$(RAMSIZE)
define Build/Clean define Build/Clean
$(MAKE) -C ../generic/lzma-loader $(LOADER_MAKEOPTS) clean $(MAKE) -C ../../generic-2.6/image/lzma-loader $(LOADER_MAKEOPTS) clean
endef endef
DROP_SECTIONS := .reginfo .mdebug .comment .note .pdr .options .MIPS.options DROP_SECTIONS := .reginfo .mdebug .comment .note .pdr .options .MIPS.options
@ -31,13 +31,13 @@ define Image/Prepare
cat $(KDIR)/vmlinux | $(STAGING_DIR)/bin/lzma e -si -so -eos -lc1 -lp2 -pb2 > $(KDIR)/vmlinux.lzma cat $(KDIR)/vmlinux | $(STAGING_DIR)/bin/lzma e -si -so -eos -lc1 -lp2 -pb2 > $(KDIR)/vmlinux.lzma
# Build RAM image # Build RAM image
$(MAKE) -C ../generic/lzma-loader \ $(MAKE) -C ../../generic-2.6/image/lzma-loader \
$(LOADER_MAKEOPTS) \ $(LOADER_MAKEOPTS) \
clean compile clean compile
$(OBJCOPY_KERNEL) $(KDIR)/loader.elf $(KDIR)/kernel.ram.srec $(OBJCOPY_KERNEL) $(KDIR)/loader.elf $(KDIR)/kernel.ram.srec
# Build Flash image # Build Flash image
$(MAKE) -C ../generic/lzma-loader \ $(MAKE) -C ../../generic-2.6/image/lzma-loader \
$(LOADER_MAKEOPTS) \ $(LOADER_MAKEOPTS) \
IMAGE_COPY=1 \ IMAGE_COPY=1 \
LOADER_ENTRY=$(FLASH_KERNEL) \ LOADER_ENTRY=$(FLASH_KERNEL) \

1
target/linux/brcm-2.4/image Symbolic link
View File

@ -0,0 +1 @@
../brcm-2.6/image/

View File

@ -18,12 +18,12 @@ LOADER_MAKEOPTS= \
RAMSIZE=$(RAMSIZE) RAMSIZE=$(RAMSIZE)
define Build/Clean define Build/Clean
$(MAKE) -C ../generic/lzma-loader $(LOADER_MAKEOPTS) clean $(MAKE) -C ../../generic-2.6/image/lzma-loader $(LOADER_MAKEOPTS) clean
endef endef
define Image/Prepare define Image/Prepare
cat $(KDIR)/vmlinux | $(STAGING_DIR)/bin/lzma e -si -so -eos -lc1 -lp2 -pb2 > $(KDIR)/vmlinux.lzma cat $(KDIR)/vmlinux | $(STAGING_DIR)/bin/lzma e -si -so -eos -lc1 -lp2 -pb2 > $(KDIR)/vmlinux.lzma
$(MAKE) -C ../generic/lzma-loader $(LOADER_MAKEOPTS) compile $(MAKE) -C ../../generic-2.6/image/lzma-loader $(LOADER_MAKEOPTS) compile
endef endef
define Image/Build define Image/Build

View File

@ -0,0 +1 @@
../generic-2.6/image/

View File

@ -21,7 +21,7 @@ LOADER_MAKEOPTS= \
IMAGE_COPY=$(IMAGE_COPY) IMAGE_COPY=$(IMAGE_COPY)
define Build/Clean define Build/Clean
$(MAKE) -C ../generic/lzma-loader $(LOADER_MAKEOPTS) clean $(MAKE) -C ../../generic-2.6/image/lzma-loader $(LOADER_MAKEOPTS) clean
endef endef
CMDLINE_SIZE=512 CMDLINE_SIZE=512