ath79: don't use the pcs,cr5000 wps led as usb led
[openwrt/openwrt.git] / target / linux / ath79 / image / tiny.mk
1 DEVICE_VARS += ROOTFS_SIZE
2
3 define Build/buffalo-tftp-header
4 ( \
5 echo -n -e "# Airstation Public Fmt1" | dd bs=32 count=1 conv=sync; \
6 dd if=$@; \
7 ) > $@.new
8 mv $@.new $@
9 endef
10
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) \
17 -r M_ -l mlang8 \
18 -i $@ -o $@.new
19 mv $@.new $@
20 endef
21
22 define Device/buffalo_bhr-4grv2
23 ATH_SOC := qca9558
24 DEVICE_TITLE := Buffalo BHR-4GRV2
25 BOARDNAME := BHR-4GRV2
26 ROOTFS_SIZE := 14528k
27 KERNEL_SIZE := 1472k
28 IMAGE_SIZE := 16000k
29 IMAGES += factory.bin
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
36 endef
37 TARGET_DEVICES += buffalo_bhr-4grv2
38
39 define Device/buffalo_whr-g301n
40 ATH_SOC := ar7240
41 DEVICE_TITLE := Buffalo WHR-G301N
42 IMAGE_SIZE := 3712k
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
48 endef
49 TARGET_DEVICES += buffalo_whr-g301n