ar71xx: Enable mtdsplit support for RB SPI NOR devices
[openwrt/openwrt.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 IMAGE_SIZE := 16000k
31 LOADER_TYPE := elf
32 KERNEL_INSTALL := 1
33 KERNEL := kernel-bin | lzma | loader-kernel
34 SUPPORTED_DEVICES := rb-750-r2 rb-750up-r2 rb-941-2nd rb-951ui-2nd rb-mapl-2nd
35 IMAGE/sysupgrade.bin = append-kernel | kernel2minor -s 1024 -e | pad-to $$$$(BLOCKSIZE) | \
36 append-rootfs | pad-rootfs | append-metadata | check-size $$$$(IMAGE_SIZE)
37 endef
38
39 TARGET_DEVICES += rb-nor-flash-16M