mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-25 16:31:13 +00:00
cce8d16bf1
sysupgrade metadata is not flashed to the device, so check-size should be called _before_ adding metadata to the image. While at it, do some obvious wrapping improvements. Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de> Acked-by: Paul Spooren <mail@aparcar.org>
29 lines
816 B
Makefile
29 lines
816 B
Makefile
define Device/mikrotik_nor
|
|
DEVICE_VENDOR := MikroTik
|
|
BLOCKSIZE := 64k
|
|
IMAGE_SIZE := 16128k
|
|
KERNEL_NAME := vmlinux
|
|
KERNEL := kernel-bin | append-dtb-elf
|
|
IMAGES = sysupgrade.bin
|
|
IMAGE/sysupgrade.bin := append-kernel | kernel2minor -s 1024 | \
|
|
pad-to $$$$(BLOCKSIZE) | append-rootfs | pad-rootfs | \
|
|
check-size | append-metadata
|
|
endef
|
|
|
|
define Device/mikrotik_hap-ac2
|
|
$(call Device/mikrotik_nor)
|
|
DEVICE_MODEL := hAP ac2
|
|
SOC := qcom-ipq4018
|
|
DEVICE_PACKAGES := ipq-wifi-mikrotik_hap-ac2 -kmod-ath10k-ct \
|
|
kmod-ath10k-ct-smallbuffers
|
|
endef
|
|
TARGET_DEVICES += mikrotik_hap-ac2
|
|
|
|
define Device/mikrotik_sxtsq-5-ac
|
|
$(call Device/mikrotik_nor)
|
|
DEVICE_MODEL := SXTsq 5 ac (RBSXTsqG-5acD)
|
|
SOC := qcom-ipq4018
|
|
DEVICE_PACKAGES := ipq-wifi-mikrotik_sxtsq-5-ac rssileds
|
|
endef
|
|
TARGET_DEVICES += mikrotik_sxtsq-5-ac
|