aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2013-09-22 09:11:24 +0000
committerGabor Juhos <juhosg@openwrt.org>2013-09-22 09:11:24 +0000
commit4f5f42fcf96aca1fb2b6a358c037b52b28c6d9e1 (patch)
treed1b03483266780ac542920c41ee4ea4a8041f00d /target/linux/ar71xx
parent8609d082e4e78ac42559862d57d8520a5ed691b9 (diff)
downloadupstream-4f5f42fcf96aca1fb2b6a358c037b52b28c6d9e1.tar.gz
upstream-4f5f42fcf96aca1fb2b6a358c037b52b28c6d9e1.tar.bz2
upstream-4f5f42fcf96aca1fb2b6a358c037b52b28c6d9e1.zip
ar71xx: image: improve the rootfs_align macro
Improve the macro to return correct value for all squashfs variant. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38116 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ar71xx')
-rw-r--r--target/linux/ar71xx/image/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/ar71xx/image/Makefile b/target/linux/ar71xx/image/Makefile
index 9871f6ec47..60990b284d 100644
--- a/target/linux/ar71xx/image/Makefile
+++ b/target/linux/ar71xx/image/Makefile
@@ -14,7 +14,7 @@ $(BIN_DIR)/$(IMG_PREFIX)-$(2)-$(patsubst jffs2-%,jffs2,$(patsubst squashfs-%,squ
endef
define rootfs_align
-$(patsubst %-256k,0x40000,$(patsubst %-128k,0x20000,$(patsubst %-64k,0x10000,$(patsubst squashfs-%,0x4,$(1)))))
+$(patsubst %-256k,0x40000,$(patsubst %-128k,0x20000,$(patsubst %-64k,0x10000,$(patsubst squashfs%,0x4,$(patsubst root.%,%,$(1))))))
endef
define sysupname