2019-11-28 11:53:01 +00:00
|
|
|
define Device/mikrotik
|
|
|
|
DEVICE_VENDOR := MikroTik
|
2022-05-18 23:18:20 +00:00
|
|
|
LOADER_TYPE := elf
|
2020-10-15 09:27:55 +00:00
|
|
|
KERNEL_NAME := vmlinuz
|
|
|
|
KERNEL := kernel-bin | append-dtb-elf
|
2022-05-18 23:18:20 +00:00
|
|
|
KERNEL_INITRAMFS_NAME := vmlinux-initramfs
|
|
|
|
KERNEL_INITRAMFS := kernel-bin | append-dtb | lzma | loader-kernel
|
2019-11-28 11:53:01 +00:00
|
|
|
endef
|
2020-08-01 15:39:33 +00:00
|
|
|
|
|
|
|
define Device/mikrotik_nor
|
|
|
|
$(Device/mikrotik)
|
2023-04-01 18:54:14 +00:00
|
|
|
DEVICE_PACKAGES := -yafut
|
2020-08-01 15:39:33 +00:00
|
|
|
IMAGE/sysupgrade.bin := append-kernel | kernel2minor -s 1024 -e | \
|
|
|
|
pad-to $$$$(BLOCKSIZE) | append-rootfs | pad-rootfs | \
|
2021-06-20 16:54:36 +00:00
|
|
|
check-size | append-metadata
|
2020-08-01 15:39:33 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Device/mikrotik_nand
|
|
|
|
$(Device/mikrotik)
|
2023-04-01 18:54:14 +00:00
|
|
|
IMAGE/sysupgrade.bin = append-kernel | sysupgrade-tar | append-metadata
|
2023-05-05 12:54:03 +00:00
|
|
|
DEVICE_COMPAT_MESSAGE := \
|
|
|
|
NAND images switched to yafut. If running older image, reinstall from initramfs.
|
|
|
|
DEVICE_COMPAT_VERSION := 1.1
|
|
|
|
|
2020-08-01 15:39:33 +00:00
|
|
|
endef
|