Makefile 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. #
  2. # Copyright (C) 2015 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. include $(INCLUDE_DIR)/image.mk
  9. #################################################
  10. # Default and templates
  11. #################################################
  12. define Device/Default
  13. PROFILES := Default
  14. KERNEL_DEPENDS = $$(wildcard $(DTS_DIR)/$$(DEVICE_DTS).dts)
  15. KERNEL_INITRAMFS_PREFIX := $$(IMG_PREFIX)-$(1)-initramfs
  16. KERNEL_PREFIX := $$(IMAGE_PREFIX)
  17. KERNEL_LOADADDR := 0x8000
  18. endef
  19. define Device/FitImageGzip
  20. KERNEL_SUFFIX := -fit-uImage.itb
  21. KERNEL = kernel-bin | gzip | fit gzip $$(DTS_DIR)/$$(DEVICE_DTS).dtb
  22. KERNEL_NAME := Image
  23. endef
  24. #################################################
  25. # Devices
  26. #################################################
  27. define Device/digilent_zynq-zybo
  28. $(call Device/FitImageGzip)
  29. DEVICE_TITLE := ZYBO Development Board
  30. DEVICE_DTS := zynq-zybo
  31. endef
  32. TARGET_DEVICES += digilent_zynq-zybo
  33. define Device/xlnx_zynq-zc702
  34. $(call Device/FitImageGzip)
  35. DEVICE_TITLE := ZC702 Development Board
  36. DEVICE_DTS := zynq-zc702
  37. endef
  38. TARGET_DEVICES += xlnx_zynq-zc702
  39. define Device/xlnx_zynq-zed
  40. $(call Device/FitImageGzip)
  41. DEVICE_TITLE := Zed Development Board
  42. DEVICE_DTS := zynq-zed
  43. endef
  44. TARGET_DEVICES += xlnx_zynq-zed
  45. $(eval $(call BuildImage))