ath79: add support for ON Networks N150R
[openwrt/openwrt.git] / target / linux / ath79 / image / tiny-netgear.mk
1 include ./common-netgear.mk
2
3
4 define Device/netgear_wnr612-v2
5 ATH_SOC := ar7240
6 DEVICE_TITLE := Netgear WNR612v2
7 DEVICE_DTS := ar7240_netgear_wnr612-v2
8 NETGEAR_KERNEL_MAGIC := 0x32303631
9 KERNEL := kernel-bin | append-dtb | lzma -d20 | netgear-uImage lzma
10 KERNEL_INITRAMFS := kernel-bin | append-dtb | lzma -d20 | netgear-uImage lzma
11 NETGEAR_BOARD_ID := REALWNR612V2
12 IMAGE_SIZE := 3904k
13 IMAGES := sysupgrade.bin factory.img
14 IMAGE/default := append-kernel | pad-to $$$$(BLOCKSIZE) | netgear-squashfs | append-rootfs | pad-rootfs
15 IMAGE/sysupgrade.bin := $$(IMAGE/default) | append-metadata | check-size $$$$(IMAGE_SIZE)
16 IMAGE/factory.img := $$(IMAGE/default) | netgear-dni | check-size $$$$(IMAGE_SIZE)
17 SUPPORTED_DEVICES := netgear,wnr612-v2 wnr612-v2
18 endef
19 TARGET_DEVICES += netgear_wnr612-v2
20
21 define Device/n150r
22 ATH_SOC := ar7240
23 DEVICE_TITLE := ON Network N150R
24 DEVICE_DTS := ar7240_on_n150r
25 NETGEAR_KERNEL_MAGIC := 0x32303631
26 KERNEL := kernel-bin | append-dtb | lzma -d20 | netgear-uImage lzma
27 KERNEL_INITRAMFS := kernel-bin | append-dtb | lzma -d20 | netgear-uImage lzma
28 NETGEAR_BOARD_ID := N150R
29 IMAGE_SIZE := 3904k
30 IMAGES := sysupgrade.bin factory.img
31 IMAGE/default := append-kernel | pad-to $$$$(BLOCKSIZE) | netgear-squashfs | append-rootfs | pad-rootfs
32 IMAGE/sysupgrade.bin := $$(IMAGE/default) | append-metadata | check-size $$$$(IMAGE_SIZE)
33 IMAGE/factory.img := $$(IMAGE/default) | netgear-dni | check-size $$$$(IMAGE_SIZE)
34 SUPPORTED_DEVICES := on,n150r n150r
35 endef
36 TARGET_DEVICES += n150r