move target/image/platform to target/linux/platform/image platform directories are now self contained
SVN-Revision: 5669
This commit is contained in:
parent
16edf83d62
commit
c3c4dfb57b
55 changed files with 18 additions and 13 deletions
|
@ -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)"
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
|
@ -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
1
target/linux/brcm-2.4/image
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
../brcm-2.6/image/
|
|
@ -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
|
1
target/linux/generic-2.4/image
Symbolic link
1
target/linux/generic-2.4/image
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
../generic-2.6/image/
|
|
@ -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
|
Loading…
Reference in a new issue