ath79: Add support for TP-Link WR810N
[openwrt/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 $(eval hwver=$(word 2,$(1)))
12 $(STAGING_DIR_HOST)/bin/buffalo-tag \
13 -c 0x80041000 -d 0x801e8000 -w $(hwver) \
14 -a ath -v 1.99 -m 1.01 -f 1 \
15 -b $(product) -p $(product) \
16 -r M_ -l mlang8 \
17 -i $@ -o $@.new
18 mv $@.new $@
19 endef
20
21