ath79: add support for Buffalo WZR-HP-AG300H
[openwrt/.git] / target / linux / ath79 / image / common-buffalo.mk
1 define Build/buffalo-tftp-header
2         ( \
3                 echo -n -e "# Airstation Public Fmt1" | dd bs=32 count=1 conv=sync; \
4                 dd if=$@; \
5         ) > $@.new
6   mv $@.new $@
7 endef
8
9 define Build/buffalo-tag
10         $(eval product=$(word 1,$(1)))
11         $(STAGING_DIR_HOST)/bin/buffalo-tag \
12                 -c 0x80041000 -d 0x801e8000 -w 3 \
13                 -a ath -v 1.99 -m 1.01 -f 1 \
14                 -b $(product) -p $(product) \
15                 -r M_ -l mlang8 \
16                 -i $@ -o $@.new
17         mv $@.new $@
18 endef
19
20