Makefile 781 B

12345678910111213141516171819202122232425262728
  1. include $(TOPDIR)/rules.mk
  2. include $(INCLUDE_DIR)/image.mk
  3. define Target/Description
  4. Build firmware images for EcoNet MIPS based boards.
  5. endef
  6. # tclinux-trx is the default format used in the SDK
  7. define Build/tclinux-trx
  8. ./tclinux-trx.sh --kernel $@ --rootfs $(IMAGE_ROOTFS) \
  9. --version $(VERSION_DIST)-$(REVISION) --endian $(TRX_ENDIAN) \
  10. $(if $(TRX_MODEL),--model $(TRX_MODEL)) > [email protected]
  11. mv [email protected] $@
  12. endef
  13. # tclinux bootloader requires LZMA, BUT only provides 7.5MB of space
  14. # to decompress into. So we use vmlinuz and decompress twice.
  15. define Device/Default
  16. DEVICE_DTS_DIR := ../dts
  17. KERNEL_SIZE := 7480k
  18. KERNEL_NAME := vmlinuz.bin
  19. KERNEL_LOADADDR := 0x80020000
  20. KERNEL := kernel-bin | append-dtb
  21. endef
  22. include $(SUBTARGET).mk
  23. $(eval $(call BuildImage))