1
0

tiny.mk 1.2 KB

12345678910111213141516171819202122232425262728293031
  1. define Build/mkbuffaloimg
  2. $(STAGING_DIR_HOST)/bin/mkbuffaloimg -B $(BOARDNAME) \
  3. -R $$(($(subst k, * 1024,$(ROOTFS_SIZE)))) \
  4. -K $$(($(subst k, * 1024,$(KERNEL_SIZE)))) \
  5. -i $@ -o $@.new
  6. mv $@.new $@
  7. endef
  8. define Device/bhr-4grv2
  9. DEVICE_TITLE := Buffalo BHR-4GRV2
  10. BOARDNAME := BHR-4GRV2
  11. ROOTFS_SIZE := 14528k
  12. KERNEL_SIZE := 1472k
  13. IMAGE_SIZE := 16000k
  14. MTDPARTS := spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,14528k(rootfs),1472k(kernel),64k(art)ro,16000k@0x50000(firmware)
  15. IMAGES := sysupgrade.bin factory.bin
  16. IMAGE/sysupgrade.bin := append-rootfs | pad-rootfs | pad-to $$$$(ROOTFS_SIZE) | append-kernel | check-size $$$$(IMAGE_SIZE)
  17. IMAGE/factory.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-rootfs | pad-rootfs | mkbuffaloimg
  18. endef
  19. define Device/zbt-we1526
  20. DEVICE_TITLE := Zbtlink ZBT-WE1526
  21. DEVICE_PACKAGES := kmod-usb-core kmod-usb2
  22. BOARDNAME := ZBT-WE1526
  23. IMAGE_SIZE := 16000k
  24. KERNEL_SIZE := 1472k
  25. ROOTFS_SIZE := 14528k
  26. MTDPARTS := spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,14528k(rootfs),1472k(kernel),64k(art)ro,16000k@0x50000(firmware)
  27. IMAGE/sysupgrade.bin := append-rootfs | pad-rootfs | pad-to $$$$(ROOTFS_SIZE) | append-kernel | check-size $$$$(IMAGE_SIZE)
  28. endef