1
0

tiny-senao.mk 989 B

12345678910111213141516171819202122232425262728
  1. define Build/senao-factory-image
  2. mkdir -p $@.senao
  3. touch $@.senao/FWINFO-libreCMC-$(REVISION)-$(1)
  4. $(CP) $(IMAGE_KERNEL) $@.senao/librecmc-senao-$(1)-uImage-lzma.bin
  5. $(CP) $@ $@.senao/librecmc-senao-$(1)-root.squashfs
  6. $(TAR) -c \
  7. --numeric-owner --owner=0 --group=0 --sort=name \
  8. $(if $(SOURCE_DATE_EPOCH),--mtime="@$(SOURCE_DATE_EPOCH)") \
  9. -C $@.senao . | gzip -9nc > $@
  10. rm -rf $@.senao
  11. endef
  12. define Device/ens202ext
  13. DEVICE_TITLE := EnGenius ENS202EXT
  14. BOARDNAME := ENS202EXT
  15. DEVICE_PACKAGES := rssileds
  16. KERNEL_SIZE := 1536k
  17. IMAGE_SIZE := 13632k
  18. IMAGES += factory.bin
  19. 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)
  20. IMAGE/factory.bin := append-rootfs | pad-rootfs | senao-factory-image ens202ext
  21. IMAGE/sysupgrade.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-rootfs | pad-rootfs | check-size $$$$(IMAGE_SIZE)
  22. endef
  23. TARGET_DEVICES += ens202ext