8f7d7cce988964d8bea7a632f9cc4f27f6d02f81
[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
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/mikrotik)
15 DEVICE_TITLE := MikroTik RouterBoard (64 MB NAND)
16 KERNEL := kernel-bin | kernel2minor -s 512 -e -c
17 endef
18
19 define Device/nand-large
20 $(Device/mikrotik)
21 DEVICE_TITLE := MikroTik RouterBoard (>= 128 MB NAND)
22 KERNEL := kernel-bin | kernel2minor -s 2048 -e -c
23 endef
24 TARGET_DEVICES += nand-64m nand-large
25
26 define Device/rb-nor-flash-16M
27 DEVICE_TITLE := MikroTik RouterBoard (16 MB SPI NOR)
28 DEVICE_PACKAGES := rbcfg rssileds -nand-utils
29 IMAGE_SIZE := 16000k
30 LOADER_TYPE := elf
31 KERNEL_INSTALL := 1
32 KERNEL := kernel-bin | lzma | loader-kernel
33 SUPPORTED_DEVICES := rb-750-r2 rb-750up-r2 rb-750p-pbr2 rb-941-2nd rb-951ui-2nd rb-952ui-5ac2nd rb-962uigs-5hact2hnt rb-lhg-5nd rb-mapl-2nd
34 IMAGE/sysupgrade.bin := append-kernel | kernel2minor -s 1024 -e | pad-to $$$$(BLOCKSIZE) | \
35 append-rootfs | pad-rootfs | append-metadata | check-size $$$$(IMAGE_SIZE)
36 endef
37
38 define Device/rb-nor-flash-16M-ac
39 $(Device/rb-nor-flash-16M)
40 DEVICE_TITLE := MikroTik RouterBoard (16 MB SPI NOR, 802.11ac)
41 DEVICE_PACKAGES += kmod-ath10k ath10k-firmware-qca988x ath10k-firmware-qca9887
42 endef
43 TARGET_DEVICES += rb-nor-flash-16M rb-nor-flash-16M-ac