diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2013-09-24 09:36:25 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2013-09-24 09:36:25 +0000 |
commit | ea55acf64dcf084c98d3da343777cbc94e4a55b6 (patch) | |
tree | 0c66647a84322e03f121c2b13d5aaf440640d336 /target/linux/ar71xx/image/Makefile | |
parent | 8922a20ab9086c9fcdb07cc50529f6a5e389f64f (diff) | |
download | master-187ad058-ea55acf64dcf084c98d3da343777cbc94e4a55b6.tar.gz master-187ad058-ea55acf64dcf084c98d3da343777cbc94e4a55b6.tar.bz2 master-187ad058-ea55acf64dcf084c98d3da343777cbc94e4a55b6.zip |
ar71xx: image: use a common macro for Buffalo WZRHP devices
The Image/Build/WZRHP64K and the Image/Build/WZRHP128K macros
are similar. Move the common stuff into the Image/Build/WZRHP
macro and update the orignal macros to use that.
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38152 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ar71xx/image/Makefile')
-rw-r--r-- | target/linux/ar71xx/image/Makefile | 33 |
1 files changed, 8 insertions, 25 deletions
diff --git a/target/linux/ar71xx/image/Makefile b/target/linux/ar71xx/image/Makefile index c3ec7d776f..ef0ac3beca 100644 --- a/target/linux/ar71xx/image/Makefile +++ b/target/linux/ar71xx/image/Makefile @@ -267,47 +267,30 @@ define Image/Build/CameoAP94 fi endef - -Image/Build/WZRHP64K/buildkernel=$(call MkuImageLzma,$(2),$(3)) -Image/Build/WZRHP64K/initramfs=$(call MkuImageLzma/initramfs,$(2),$(3) $(4)) - -define Image/Build/WZRHP64K - $(call Sysupgrade/KRuImage,$(1),$(2),65536,31850496) +define Image/Build/WZRHP + $(call Sysupgrade/KRuImage,$(1),$(2),$(3),$(4)) if [ -e "$(call sysupname,$(1),$(2))" ]; then \ ( \ echo -n -e "# Airstation Public Fmt1\x00\x00\x00\x00\x00\x00\x00\x00"; \ dd if=$(call sysupname,$(1),$(2)); \ ) > $(call imgname,$(1),$(2))-tftp.bin; \ - buffalo-enc -p $(4) -v 1.99 \ + buffalo-enc -p $(5) -v 1.99 \ -i $(call sysupname,$(1),$(2)) \ -o $(KDIR_TMP)/$(2).enc; \ - buffalo-tag -b $(4) -p $(4) -a ath -v 1.99 -m 1.01 -l mlang8 \ + buffalo-tag -b $(5) -p $(5) -a ath -v 1.99 -m 1.01 -l mlang8 \ -w 3 -c 0x80041000 -d 0x801e8000 -f 1 -r M_ \ -i $(KDIR_TMP)/$(2).enc \ -o $(call factoryname,$(1),$(2)); \ fi endef +Image/Build/WZRHP64K/buildkernel=$(call MkuImageLzma,$(2),$(3)) +Image/Build/WZRHP64K/initramfs=$(call MkuImageLzma/initramfs,$(2),$(3) $(4)) +Image/Build/WZRHP64K=$(call Image/Build/WZRHP,$(1),$(2),65536,31850496,$(4)) Image/Build/WZRHP128K/buildkernel=$(call MkuImageLzma,$(2),$(3)) Image/Build/WZRHP128K/initramfs=$(call MkuImageLzma/initramfs,$(2),$(3) $(4)) - -define Image/Build/WZRHP128K - $(call Sysupgrade/KRuImage,$(1),$(2),131072,31850496) - if [ -e "$(call sysupname,$(1),$(2))" ]; then \ - ( \ - echo -n -e "# Airstation Public Fmt1\x00\x00\x00\x00\x00\x00\x00\x00"; \ - dd if=$(call sysupname,$(1),$(2)); \ - ) > $(call imgname,$(1),$(2))-tftp.bin; \ - buffalo-enc -p $(4) -v 1.99 \ - -i $(call sysupname,$(1),$(2)) \ - -o $(KDIR_TMP)/$(2).enc; \ - buffalo-tag -b $(4) -p $(4) -a ath -v 1.99 -m 1.01 -l mlang8 \ - -w 3 -c 0x80041000 -d 0x801e8000 -f 1 -r M_ \ - -i $(KDIR_TMP)/$(2).enc \ - -o $(call factoryname,$(1),$(2)); \ - fi -endef +Image/Build/WZRHP128K=$(call Image/Build/WZRHP,$(1),$(2),131072,31850496,$(4)) Image/Build/WHRHPG300N/buildkernel=$(call MkuImageLzma,$(2),$(3) $(4)) |