summaryrefslogtreecommitdiff
path: root/target/linux/ramips/image/Makefile
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2013-08-23 17:07:26 +0000
committerGabor Juhos <juhosg@openwrt.org>2013-08-23 17:07:26 +0000
commit0ebe286761ece7e0a09d5d9e5e0c246c3e298cbe (patch)
treed42dba10344750b8d6852b26c92fbb0f1b3bf7d9 /target/linux/ramips/image/Makefile
parent3afc3824caf872fe20c8aa496ca3af65f2ec7791 (diff)
downloadmtk-20170518-0ebe286761ece7e0a09d5d9e5e0c246c3e298cbe.zip
mtk-20170518-0ebe286761ece7e0a09d5d9e5e0c246c3e298cbe.tar.gz
mtk-20170518-0ebe286761ece7e0a09d5d9e5e0c246c3e298cbe.tar.bz2
ramips: use correct parameters in the Seama template
Fixes DIR-645 image generation errors: bash: line 0: [: wrgn39_dlob.hans_dir645: integer expression expected ... bash: wrgn39_dlob.hans_dir645 - 64: syntax error: invalid arithmetic operator (error token is ".hans_dir645 - 64") make[4]: *** [install] Error 1 Signed-off-by: Michael Lee <igvtee@gmail.com> Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 37828
Diffstat (limited to 'target/linux/ramips/image/Makefile')
-rw-r--r--target/linux/ramips/image/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/target/linux/ramips/image/Makefile b/target/linux/ramips/image/Makefile
index 18f0fe5..ba7f660 100644
--- a/target/linux/ramips/image/Makefile
+++ b/target/linux/ramips/image/Makefile
@@ -156,9 +156,9 @@ BuildFirmware/Edimax/initramfs=$(call BuildFirmware/OF/initramfs,$(1),$(2),$(3))
# build Seama header images
define BuildFirmware/Seama/squashfs
- $(call BuildFirmware/OF,$(1),$(2),$(3),$(4))
+ $(call BuildFirmware/OF,$(1),$(2),$(3),$(5))
cat $(KDIR)/vmlinux-$(2).bin.lzma $(KDIR)/root.$(1) > $(KDIR)/img_$(2).$(1).tmp
- if [ `stat -c%s "$(KDIR)/img_$(2).$(1).tmp"` -gt $$$$(($(4) - 64)) ]; then \
+ if [ `stat -c%s "$(KDIR)/img_$(2).$(1).tmp"` -gt $$$$(($(5) - 64)) ]; then \
echo "Warning: $(KDIR)/img_$(2).$(1).tmp is too big" >&2; \
else \
dd if=$(KDIR)/vmlinux-$(2).bin.lzma of=$(KDIR)/vmlinux-$(2).bin.lzma.padded bs=64k conv=sync; \