mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-29 18:19:02 +00:00
e91344776b
- minimal built initramfs: 10MB vmlinux ELF -> 6MB vmlinuz - ~5 seconds for kernel decompression, which was equivalent to the additional time to load the uncompressed ELF from SPI NOR. - Removes requirement for lzma-loader, which may have been causing some image builds to fail to boot on Mikrotik mt7621. Suggested-by: Thibaut VARÈNE <hacks@slashdirt.org> Signed-off-by: John Thomson <git@johnthomson.fastmail.com.au>
21 lines
587 B
Makefile
21 lines
587 B
Makefile
define Device/mikrotik
|
|
DEVICE_VENDOR := MikroTik
|
|
KERNEL_NAME := vmlinuz
|
|
KERNEL := kernel-bin | append-dtb-elf
|
|
KERNEL_INITRAMFS := kernel-bin | append-dtb-elf
|
|
endef
|
|
|
|
define Device/mikrotik_nor
|
|
$(Device/mikrotik)
|
|
IMAGE/sysupgrade.bin := append-kernel | kernel2minor -s 1024 -e | \
|
|
pad-to $$$$(BLOCKSIZE) | append-rootfs | pad-rootfs | \
|
|
append-metadata | check-size
|
|
endef
|
|
|
|
define Device/mikrotik_nand
|
|
$(Device/mikrotik)
|
|
IMAGE/sysupgrade.bin = append-kernel | kernel2minor -s 2048 -e -c | \
|
|
sysupgrade-tar kernel=$$$$@ | append-metadata
|
|
DEVICE_PACKAGES := nand-utils
|
|
endef
|