2017-04-14 17:08:17 +00:00
|
|
|
define Build/senao-factory-image
|
|
|
|
mkdir -p $@.senao
|
|
|
|
|
2018-01-15 12:30:19 +00:00
|
|
|
touch $@.senao/FWINFO-OpenWrt-$(REVISION)-$(1)
|
|
|
|
$(CP) $(IMAGE_KERNEL) $@.senao/openwrt-senao-$(1)-uImage-lzma.bin
|
|
|
|
$(CP) $@ $@.senao/openwrt-senao-$(1)-root.squashfs
|
2017-04-14 17:08:17 +00:00
|
|
|
|
2017-06-18 19:30:30 +00:00
|
|
|
$(TAR) -c \
|
2017-06-24 16:33:52 +00:00
|
|
|
--numeric-owner --owner=0 --group=0 --sort=name \
|
2017-06-18 19:30:30 +00:00
|
|
|
$(if $(SOURCE_DATE_EPOCH),--mtime="@$(SOURCE_DATE_EPOCH)") \
|
|
|
|
-C $@.senao . | gzip -9nc > $@
|
|
|
|
|
2017-04-14 17:08:17 +00:00
|
|
|
rm -rf $@.senao
|
|
|
|
endef
|
|
|
|
|
2017-05-31 09:16:22 +00:00
|
|
|
|
2017-04-14 17:08:17 +00:00
|
|
|
define Device/ens202ext
|
|
|
|
DEVICE_TITLE := EnGenius ENS202EXT
|
|
|
|
BOARDNAME := ENS202EXT
|
2017-06-14 13:23:35 +00:00
|
|
|
DEVICE_PACKAGES := rssileds
|
2017-04-14 17:08:17 +00:00
|
|
|
KERNEL_SIZE := 1536k
|
2017-06-14 13:23:35 +00:00
|
|
|
IMAGE_SIZE := 13632k
|
2017-04-14 17:08:17 +00:00
|
|
|
IMAGES += factory.bin
|
2017-06-14 13:23:35 +00:00
|
|
|
MTDPARTS := spi0.0:256k(u-boot)ro,64k(u-boot-env),320k(custom)ro,1536k(kernel),12096k(rootfs),2048k(failsafe)ro,64k(art)ro,13632k@0xa0000(firmware)
|
2018-01-15 12:30:19 +00:00
|
|
|
IMAGE/factory.bin := append-rootfs | pad-rootfs | senao-factory-image ens202ext
|
2017-06-14 13:23:35 +00:00
|
|
|
IMAGE/sysupgrade.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-rootfs | pad-rootfs | check-size $$$$(IMAGE_SIZE)
|
2017-04-14 17:08:17 +00:00
|
|
|
endef
|
|
|
|
TARGET_DEVICES += ens202ext
|