generic: ar8216: improve ar8xxx_is_possible check
[openwrt/openwrt.git] / target / linux / ar71xx / image / nand.mk
1 define Build/MerakiNAND
2 -$(STAGING_DIR_HOST)/bin/mkmerakifw \
3 -B $(BOARDNAME) -s \
4 -i $@ \
5 -o $@.new
6 @mv $@.new $@
7 endef
8
9 define Device/mr18
10 DEVICE_TITLE := Meraki MR18
11 DEVICE_PACKAGES := kmod-spi-gpio kmod-ath9k
12 BOARDNAME = MR18
13 BLOCKSIZE := 64k
14 CONSOLE = ttyS0,115200
15 MTDPARTS = ar934x-nfc:512k(nandloader)ro,8M(kernel),8M(recovery),113664k(ubi),128k@130944k(odm-caldata)ro
16 IMAGES := sysupgrade.tar
17 KERNEL := kernel-bin | patch-cmdline | MerakiNAND
18 KERNEL_INITRAMFS := kernel-bin | patch-cmdline | MerakiNAND
19 IMAGE/sysupgrade.tar := sysupgrade-tar
20 endef
21 TARGET_DEVICES += mr18
22
23 define Build/MerakiNAND-old
24 -$(STAGING_DIR_HOST)/bin/mkmerakifw-old \
25 -B $(BOARDNAME) -s \
26 -i $@ \
27 -o $@.new
28 @mv $@.new $@
29 endef
30
31 define Device/z1
32 DEVICE_TITLE := Meraki Z1
33 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-ledtrig-usbdev kmod-spi-gpio kmod-ath9k kmod-owl-loader
34 BOARDNAME = Z1
35 BLOCKSIZE := 64k
36 CONSOLE = ttyS0,115200
37 MTDPARTS = ar934x-nfc:128K(loader1)ro,8064K(kernel),128K(loader2)ro,8064K(recovery),114560K(ubi),128K(origcaldata)ro
38 IMAGES := sysupgrade.tar
39 KERNEL := kernel-bin | patch-cmdline | MerakiNAND-old
40 KERNEL_INITRAMFS := kernel-bin | patch-cmdline | MerakiNAND-old
41 IMAGE/sysupgrade.tar := sysupgrade-tar
42 endef
43
44 TARGET_DEVICES += z1
45
46 define LegacyDevice/R6100
47 DEVICE_TITLE := NETGEAR R6100
48 DEVICE_PACKAGES := kmod-usb-core kmod-usb-ohci kmod-usb2 kmod-ledtrig-usbdev
49 endef
50 LEGACY_DEVICES += R6100
51
52 define LegacyDevice/WNDR3700V4
53 DEVICE_TITLE := NETGEAR WNDR3700v4
54 DEVICE_PACKAGES := kmod-usb-core kmod-usb-ohci kmod-usb2 kmod-ledtrig-usbdev
55 endef
56 LEGACY_DEVICES += WNDR3700V4
57
58 define LegacyDevice/WNDR4300V1
59 DEVICE_TITLE := NETGEAR WNDR4300v1
60 DEVICE_PACKAGES := kmod-usb-core kmod-usb-ohci kmod-usb2 kmod-ledtrig-usbdev
61 endef
62 LEGACY_DEVICES += WNDR4300V1
63
64 define LegacyDevice/NBG6716
65 DEVICE_TITLE := Zyxel NBG 6716
66 DEVICE_PACKAGES := kmod-rtc-pcf8563 kmod-ath10k ath10k-firmware-qca988x
67 endef
68 LEGACY_DEVICES += NBG6716