ath79: add hwver parameter to buffalo-tag
authorINAGAKI Hiroshi <musashino.open@gmail.com>
Sun, 7 Oct 2018 11:37:42 +0000 (20:37 +0900)
committerMathias Kresin <dev@kresin.me>
Sun, 7 Oct 2018 13:44:19 +0000 (15:44 +0200)
In order to be able to set the value of "hardware version" other than
"3", I added the "hwver" parameter.

Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
target/linux/ath79/image/common-buffalo.mk
target/linux/ath79/image/generic.mk
target/linux/ath79/image/tiny.mk

index a756f8448b423ef4ae718c6f6e2ab100992ee95f..8870af691ef225d4a238378fa556cbdea63db4d8 100644 (file)
@@ -8,8 +8,9 @@ endef
 
 define Build/buffalo-tag
        $(eval product=$(word 1,$(1)))
+       $(eval hwver=$(word 2,$(1)))
        $(STAGING_DIR_HOST)/bin/buffalo-tag \
-               -c 0x80041000 -d 0x801e8000 -w 3 \
+               -c 0x80041000 -d 0x801e8000 -w $(hwver) \
                -a ath -v 1.99 -m 1.01 -f 1 \
                -b $(product) -p $(product) \
                -r M_ -l mlang8 \
index 39f59524d91b3e6a9b50444559896ddd2c649a9d..80ec2311b4d5476a0d646d0c8ac5fdf7cc7d8aab 100644 (file)
@@ -76,7 +76,7 @@ define Device/buffalo_bhr-4grv
   IMAGE_SIZE := 32256k
   IMAGES += factory.bin tftp.bin
   IMAGE/default := append-kernel | pad-to $$$$(BLOCKSIZE) | append-rootfs | pad-rootfs | check-size $$$$(IMAGE_SIZE)
-  IMAGE/factory.bin := $$(IMAGE/default) | buffalo-enc BHR-4GRV 1.99 | buffalo-tag BHR-4GRV
+  IMAGE/factory.bin := $$(IMAGE/default) | buffalo-enc BHR-4GRV 1.99 | buffalo-tag BHR-4GRV 3
   IMAGE/tftp.bin := $$(IMAGE/default) | buffalo-tftp-header
   SUPPORTED_DEVICES += wzr-hp-g450h
 endef
@@ -88,7 +88,7 @@ define Device/buffalo_wzr-hp-ag300h
   IMAGE_SIZE := 32256k
   IMAGES += factory.bin tftp.bin
   IMAGE/default := append-kernel | pad-to $$$$(BLOCKSIZE) | append-rootfs | pad-rootfs | check-size $$$$(IMAGE_SIZE)
-  IMAGE/factory.bin := $$(IMAGE/default) | buffalo-enc WZR-HP-AG300H 1.99 | buffalo-tag WZR-HP-AG300H
+  IMAGE/factory.bin := $$(IMAGE/default) | buffalo-enc WZR-HP-AG300H 1.99 | buffalo-tag WZR-HP-AG300H 3
   IMAGE/tftp.bin := $$(IMAGE/default) | buffalo-tftp-header
   DEVICE_PACKAGES := kmod-usb-core kmod-usb-ohci kmod-usb2 kmod-usb-ledtrig-usbport kmod-leds-reset kmod-owl-loader
   SUPPORTED_DEVICES += wzr-hp-ag300h
@@ -102,7 +102,7 @@ define Device/buffalo_wzr-hp-g450h
   IMAGE_SIZE := 32256k
   IMAGES += factory.bin tftp.bin
   IMAGE/default := append-kernel | pad-to $$$$(BLOCKSIZE) | append-rootfs | pad-rootfs | check-size $$$$(IMAGE_SIZE)
-  IMAGE/factory.bin := $$(IMAGE/default) | buffalo-enc WZR-HP-G450H 1.99 | buffalo-tag WZR-HP-G450H
+  IMAGE/factory.bin := $$(IMAGE/default) | buffalo-enc WZR-HP-G450H 1.99 | buffalo-tag WZR-HP-G450H 3
   IMAGE/tftp.bin := $$(IMAGE/default) | buffalo-tftp-header
   SUPPORTED_DEVICES += wzr-hp-g450h
 endef
index 531a7f30c2eb85c476de095074b66657a9b6f7ee..bc738c2f771dbc93f6a028a54808d6e9a5f887ac 100644 (file)
@@ -25,7 +25,7 @@ define Device/buffalo_whr-g301n
   IMAGE_SIZE := 3712k
   IMAGES += factory.bin tftp.bin
   IMAGE/default := append-kernel | pad-to $$$$(BLOCKSIZE) | append-rootfs | pad-rootfs | check-size $$$$(IMAGE_SIZE)
-  IMAGE/factory.bin := $$(IMAGE/default) | buffalo-enc WHR-G301N 1.99 | buffalo-tag WHR-G301N
+  IMAGE/factory.bin := $$(IMAGE/default) | buffalo-enc WHR-G301N 1.99 | buffalo-tag WHR-G301N 3
   IMAGE/tftp.bin := $$(IMAGE/default) | buffalo-tftp-header
   SUPPORTED_DEVICES += whr-g301n
 endef