diff options
author | Jonas Gorski <jogo@openwrt.org> | 2015-02-27 17:38:14 +0000 |
---|---|---|
committer | Jonas Gorski <jogo@openwrt.org> | 2015-02-27 17:38:14 +0000 |
commit | 646c36ca8216bab23b5262f9c4d1c2873b7d1785 (patch) | |
tree | 91e32f9689842e9329028ee3b5b6e99347394419 /target/linux/brcm63xx/image | |
parent | c204c43a6564cf909842f1b10405bfdb8370a96f (diff) | |
download | upstream-646c36ca8216bab23b5262f9c4d1c2873b7d1785.tar.gz upstream-646c36ca8216bab23b5262f9c4d1c2873b7d1785.tar.bz2 upstream-646c36ca8216bab23b5262f9c4d1c2873b7d1785.zip |
brcm63xx: do not align squashfs rootfs start
We do not need to align the start of read only rootfs's to erase blocks.
This allows us to write the squashfs rootfs directly behind the kernel,
potentially freeing up one erase block.
We still need to align for jffs2, so add a flag for imagetag to
optionally align the rootfs start.
Signed-off-by: Jonas Gorski <jogo@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44556 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/brcm63xx/image')
-rwxr-xr-x | target/linux/brcm63xx/image/Makefile | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/target/linux/brcm63xx/image/Makefile b/target/linux/brcm63xx/image/Makefile index 636556a47a..d771c09370 100755 --- a/target/linux/brcm63xx/image/Makefile +++ b/target/linux/brcm63xx/image/Makefile @@ -17,14 +17,13 @@ LOADER_MAKEOPTS= \ KERNEL_ENTRY=$(KERNEL_ENTRY) \ RAMSIZE=$(RAMSIZE) -define trxalign/jffs2-128k --a 0x20000 +define rootfspad/jffs2-128k +--align-rootfs endef -define trxalign/jffs2-64k --a 0x10000 +define rootfspad/jffs2-64k +--align-rootfs endef -define trxalign/squashfs --a 1024 +define rootfspad/squashfs endef define Image/LimitName16 @@ -44,6 +43,7 @@ define Image/Build/CFE --boardid $(2) --chipid $(3) --entry $(KERNEL_ENTRY) \ --load-addr $(LOADADDR) --rsa-signature "$(5)" \ --info1 "-$(call Image/LimitName16,$(4))" --info2 $(1) \ + $(call rootfspad/$(1)) \ $(6) $(7) $(8) $(9) endef @@ -53,6 +53,7 @@ define Image/Build/CFEDTB --output $(BIN_DIR)/openwrt-$(5)-$(1)-cfe.bin \ --boardid $(3) --chipid $(4) --entry $(KERNEL_ENTRY) \ --load-addr $(LOADADDR) --info1 "-$(call Image/LimitName16,$(5))" \ + $(call rootfspad/$(1)) \ --info2 $(1) $(6) endef @@ -69,6 +70,7 @@ define Image/Build/SPW303VCFEDTB $(STAGING_DIR_HOST)/bin/imagetag -i $(KDIR)/vmlinux-$(2).lzma.cfe -f $(KDIR)/root.$(1) \ --output $(BIN_DIR)/openwrt-$(5)-$(1).tmp \ --boardid $(3) --chipid $(4) --entry $(KERNEL_ENTRY) \ + $(call rootfspad/$(1)) \ --load-addr $(LOADADDR) $(6) # Fix up header $(STAGING_DIR_HOST)/bin/spw303v -i $(BIN_DIR)/openwrt-$(5)-$(1).tmp \ @@ -84,6 +86,7 @@ define Image/Build/ZYXCFEDTB --output $(BIN_DIR)/openwrt-$(5)-$(1).tmp \ --boardid $(3) --chipid $(4) --entry $(KERNEL_ENTRY) \ --load-addr $(LOADADDR) --info1 "-$(call Image/LimitName16,$(5))" \ + $(call rootfspad/$(1)) \ --info2 $(1) $(6) # Fix up header $(STAGING_DIR_HOST)/bin/zyxbcm -i $(BIN_DIR)/openwrt-$(5)-$(1).tmp \ |