ar71xx: add support for RB mAP L-2nD
[openwrt/staging/wigyori.git] / target / linux / ar71xx / image / mikrotik.mk
1 define Device/mikrotik
2 PROFILES := Default
3 DEVICE_PACKAGES := kmod-usb-core kmod-usb-ohci kmod-usb2 kmod-usb-ledtrig-usbport nand-utils
4 BOARD_NAME := routerboard
5 KERNEL_INITRAMFS :=
6 KERNEL_NAME := loader-generic.elf
7 KERNEL := kernel-bin | kernel2minor -s 2048 -e -c
8 FILESYSTEMS := squashfs
9 IMAGES := sysupgrade.bin
10 IMAGE/sysupgrade.bin := sysupgrade-tar
11 endef
12
13 define Device/nand-64m
14 DEVICE_TITLE := MikroTik RouterBoard with 64 MB NAND flash
15 $(Device/mikrotik)
16 KERNEL := kernel-bin | kernel2minor -s 512 -e -c
17 endef
18
19 define Device/nand-large
20 DEVICE_TITLE := MikroTik RouterBoard with >= 128 MB NAND flash
21 $(Device/mikrotik)
22 KERNEL := kernel-bin | kernel2minor -s 2048 -e -c
23 endef
24
25 TARGET_DEVICES += nand-64m nand-large
26
27 define Device/rb-nor-flash-16M
28 DEVICE_TITLE := MikroTik RouterBoard with 16 MB SPI NOR flash
29 DEVICE_PACKAGES := rbcfg
30 BLOCKSIZE := 64k
31 IMAGE_SIZE := 16000k
32 LOADER_TYPE := elf
33 KERNEL_INSTALL := 1
34 KERNEL := kernel-bin | lzma | loader-kernel | kernel2minor -s 1024 -e
35 KERNEL_INITRAMFS := kernel-bin | lzma | loader-kernel
36 IMAGES := sysupgrade.bin
37 IMAGE/sysupgrade.bin = append-rootfs | pad-rootfs | combined-image | check-size $$$$(IMAGE_SIZE)
38 endef
39
40 define Device/rb-941-2nd
41 $(Device/rb-nor-flash-16M)
42 DEVICE_TITLE := hAP lite
43 BOARDNAME:= rb-941-2nd
44 endef
45
46 TARGET_DEVICES += rb-nor-flash-16M rb-941-2nd