X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=target%2Flinux%2Fath79%2Fimage%2Ftiny.mk;h=0047554620eefa6317d08d85c1c90a6829c5b4ba;hb=9e6f22e30994a38b0af709956d66b8b05221afb2;hp=0a14fcdd5bc61e2601b918dd291e4f5678e21ee5;hpb=c9e9a787343fb9190b5491188025bcfdebc94beb;p=openwrt%2Fstaging%2Fblogic.git diff --git a/target/linux/ath79/image/tiny.mk b/target/linux/ath79/image/tiny.mk index 0a14fcdd5bc6..0047554620ee 100644 --- a/target/linux/ath79/image/tiny.mk +++ b/target/linux/ath79/image/tiny.mk @@ -1,5 +1,24 @@ DEVICE_VARS += ROOTFS_SIZE +define Build/buffalo-tftp-header + ( \ + echo -n -e "# Airstation Public Fmt1" | dd bs=32 count=1 conv=sync; \ + dd if=$@; \ + ) > $@.new + mv $@.new $@ +endef + +define Build/buffalo-tag + $(eval product=$(word 1,$(1))) + $(STAGING_DIR_HOST)/bin/buffalo-tag \ + -c 0x80041000 -d 0x801e8000 -w 3 \ + -a ath -v 1.99 -m 1.01 -f 1 \ + -b $(product) -p $(product) \ + -r M_ -l mlang8 \ + -i $@ -o $@.new + mv $@.new $@ +endef + define Device/buffalo_bhr-4grv2 ATH_SOC := qca9558 DEVICE_TITLE := Buffalo BHR-4GRV2 @@ -16,3 +35,15 @@ define Device/buffalo_bhr-4grv2 SUPPORTED_DEVICES += bhr-4grv2 endef TARGET_DEVICES += buffalo_bhr-4grv2 + +define Device/buffalo_whr-g301n + ATH_SOC := ar7240 + DEVICE_TITLE := 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/tftp.bin := $$(IMAGE/default) | buffalo-tftp-header + SUPPORTED_DEVICES += whr-g301n +endef +TARGET_DEVICES += buffalo_whr-g301n