diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2010-03-27 17:38:36 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2010-03-27 17:38:36 +0000 |
commit | 905f2d62f9deeade28e33979a691e45930bc3628 (patch) | |
tree | eeb9390b107101879b6ac362a0f0eca02b401154 /target/linux/ar71xx/image/Makefile | |
parent | 37712c70c5e70bffdcf0afd364ed3340f4a7e8fe (diff) | |
download | mtk-20170518-905f2d62f9deeade28e33979a691e45930bc3628.zip mtk-20170518-905f2d62f9deeade28e33979a691e45930bc3628.tar.gz mtk-20170518-905f2d62f9deeade28e33979a691e45930bc3628.tar.bz2 |
ar71xx: update image generation and trx header parsing for the WRT160NL
* patch by Bernhard Loos
* note: trailing whitespaces has been removed
SVN-Revision: 20525
Diffstat (limited to 'target/linux/ar71xx/image/Makefile')
-rw-r--r-- | target/linux/ar71xx/image/Makefile | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/target/linux/ar71xx/image/Makefile b/target/linux/ar71xx/image/Makefile index e57808e..00580fd 100644 --- a/target/linux/ar71xx/image/Makefile +++ b/target/linux/ar71xx/image/Makefile @@ -318,16 +318,12 @@ endef define Image/Build/CyberTAN $(call PatchKernelGzip,$(2),$(3)) $(call MkImageGzip,$(KDIR)/vmlinux-$(2).bin.gz,$(KDIR)/vmlinux-$(2).uImage) - ( \ - dd if=$(KDIR)/vmlinux-$(2).uImage bs=64k conv=sync; \ - dd if=/dev/zero bs=1 count=65476; \ - dd if=$(KDIR)/root.$(1) bs=64k; \ - ) > $(KDIR)/vmlinux-$(2).image - $(STAGING_DIR_HOST)/bin/trx -o $(KDIR)/vmlinux-$(2).trx \ - -f $(KDIR)/vmlinux-$(2).image - -$(STAGING_DIR_HOST)/bin/addpattern -B $(2) -v v$(4) -g \ - -i $(KDIR)/vmlinux-$(2).trx \ + $(STAGING_DIR_HOST)/bin/trx -o $(KDIR)/image.tmp -f $(KDIR)/vmlinux-$(2).uImage \ + -x 32 -a 0x10000 -x -32 -f $(KDIR)/root.$(1) + -$(STAGING_DIR_HOST)/bin/addpattern -B $(2) -v v$(4) \ + -i $(KDIR)/image.tmp \ -o $(call imgname,$(1),$(2)).bin + rm $(KDIR)/image.tmp endef wndr3700_mtdlayout=mtdparts=spi0.0:320k(u-boot)ro,128k(u-boot-env)ro,1024k(kernel),6656k(rootfs),64k(art)ro,7680k@0x70000(firmware) |