Makefile 678 B

1234567891011121314151617181920212223242526
  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 $@ $(IMAGE_ROOTFS) $(VERSION_DIST)-$(REVISION) > [email protected]
  9. mv [email protected] $@
  10. endef
  11. # tclinux bootloader requires LZMA, BUT only provides 7.5MB of space
  12. # to decompress into. So we use vmlinuz and decompress twice.
  13. define Device/Default
  14. DEVICE_DTS_DIR := ../dts
  15. KERNEL_SIZE := 7480k
  16. KERNEL_NAME := vmlinuz.bin
  17. KERNEL_LOADADDR := 0x80020000
  18. KERNEL := kernel-bin | append-dtb
  19. endef
  20. include $(SUBTARGET).mk
  21. $(eval $(call BuildImage))