1 DEVICE_VARS += ROOTFS_SIZE
3 define Build/buffalo-tftp-header
5 echo -n -e "# Airstation Public Fmt1" | dd bs=32 count=1 conv=sync; \
11 define Build/buffalo-tag
12 $(eval product=$(word 1,$(1)))
13 $(STAGING_DIR_HOST)/bin/buffalo-tag \
14 -c 0x80041000 -d 0x801e8000 -w 3 \
15 -a ath -v 1.99 -m 1.01 -f 1 \
16 -b $(product) -p $(product) \
22 define Device/buffalo_bhr-4grv2
24 DEVICE_TITLE := Buffalo BHR-4GRV2
25 BOARDNAME := BHR-4GRV2
30 IMAGE/sysupgrade.bin := \
31 append-rootfs | pad-rootfs | pad-to $$$$(ROOTFS_SIZE) | \
32 append-kernel | append-metadata | check-size $$$$(IMAGE_SIZE)
33 IMAGE/factory.bin := append-kernel | \
34 pad-to $$$$(KERNEL_SIZE) | append-rootfs | pad-rootfs | mkbuffaloimg
35 SUPPORTED_DEVICES += bhr-4grv2
37 TARGET_DEVICES += buffalo_bhr-4grv2
39 define Device/buffalo_whr-g301n
41 DEVICE_TITLE := Buffalo WHR-G301N
43 IMAGES += factory.bin tftp.bin
44 IMAGE/default := append-kernel | pad-to $$$$(BLOCKSIZE) | append-rootfs | pad-rootfs | check-size $$$$(IMAGE_SIZE)
45 IMAGE/factory.bin := $$(IMAGE/default) | buffalo-enc WHR-G301N 1.99 | buffalo-tag WHR-G301N
46 IMAGE/tftp.bin := $$(IMAGE/default) | buffalo-tftp-header
47 SUPPORTED_DEVICES += whr-g301n
49 TARGET_DEVICES += buffalo_whr-g301n