Makefile 998 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. define Build/patch-dtb
  10. $(call Image/BuildDTB,../dts/$(DEVICE_DTS).dts,[email protected])
  11. $(STAGING_DIR_HOST)/bin/patch-dtb $@ [email protected]
  12. endef
  13. # Shared device definition: applies to every defined device
  14. define Device/Default
  15. PROFILES = Default $$(DEVICE_PROFILE)
  16. KERNEL_DEPENDS = $$(wildcard ../dts/$$(DEVICE_DTS).dts)
  17. KERNEL_SUFFIX := .elf
  18. KERNEL_INITRAMFS := kernel-bin | patch-dtb
  19. KERNEL_INITRAMFS_NAME = $$(KERNEL_NAME)-initramfs.elf
  20. DEVICE_PROFILE :=
  21. DEVICE_DTS :=
  22. endef
  23. DEVICE_VARS += DEVICE_PROFILE DEVICE_DTS
  24. define add_arc770
  25. define Device/$(1)
  26. DEVICE_PROFILE := $(1)
  27. DEVICE_DTS := $(1)
  28. endef
  29. TARGET_DEVICES += $(1)
  30. endef
  31. # DesignWare AXS101
  32. $(eval $(call add_arc770,axs101))
  33. # nSIM with ARC770
  34. $(eval $(call add_arc770,nsim_700))
  35. $(eval $(call BuildImage))