X-Git-Url: https://git.archive.openwrt.org/?a=blobdiff_plain;f=target%2Flinux%2Far71xx%2Fimage%2FMakefile;h=78e2d705cec5582c21001083c2a715fde397975f;hb=64f5a8f1999ee21b11ef9e44c95d0e31d791729c;hp=c307abef853626f1d53b5d4936708190e58f4cb3;hpb=96d2eba315cab9d3fc7088e2278bcb560eaf8a19;p=15.05%2Fopenwrt.git diff --git a/target/linux/ar71xx/image/Makefile b/target/linux/ar71xx/image/Makefile index c307abef85..78e2d705ce 100644 --- a/target/linux/ar71xx/image/Makefile +++ b/target/linux/ar71xx/image/Makefile @@ -673,13 +673,15 @@ define Image/Build/Seama -rm -f $(KDIR_TMP)/image-$(2).tmp $(call CatFiles,$(KDIR_TMP)/loader-$(2).bin.lzma,$$$$(($(6) - 64)),$(KDIR)/root.$(1),$(7),$(KDIR_TMP)/image-$(2).tmp) [ -e "$(KDIR_TMP)/image-$(2).tmp" ] && { \ + head -c -4 "$(KDIR_TMP)/image-$(2).tmp" > "$(KDIR_TMP)/image-$(2).no-jffs2mark.tmp"; \ $(STAGING_DIR_HOST)/bin/seama \ - -i $(KDIR_TMP)/image-$(2).tmp \ + -i $(KDIR_TMP)/image-$(2).no-jffs2mark.tmp \ -m "dev=/dev/mtdblock/1" -m "type=firmware"; \ $(STAGING_DIR_HOST)/bin/seama \ -s $(call imgname,$(1),$(2))-factory.bin \ -m "signature=$(5)" \ - -i $(KDIR_TMP)/image-$(2).tmp.seama; \ + -i $(KDIR_TMP)/image-$(2).no-jffs2mark.tmp.seama; \ + tail -c 4 "$(KDIR_TMP)/image-$(2).tmp" >> $(call imgname,$(1),$(2))-factory.bin; \ } cat $(KDIR_TMP)/loader-$(2).bin.lzma > $(KDIR_TMP)/image-$(2)-sysupgrade.tmp $(STAGING_DIR_HOST)/bin/seama \