Makefile 940 B

12345678910111213141516171819202122232425262728293031323334353637383940
  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_SUFFIX := .elf
  17. KERNEL_INITRAMFS := kernel-bin | patch-dtb
  18. KERNEL_INITRAMFS_NAME = $$(KERNEL_NAME)-initramfs.elf
  19. DEVICE_PROFILE :=
  20. DEVICE_DTS :=
  21. endef
  22. DEVICE_VARS += DEVICE_PROFILE DEVICE_DTS
  23. define add_arc770
  24. define Device/$(1)
  25. DEVICE_PROFILE := $(1)
  26. DEVICE_DTS := $(1)
  27. endef
  28. TARGET_DEVICES += $(1)
  29. endef
  30. # DesignWare AXS101
  31. $(eval $(call add_arc770,axs101))
  32. # nSIM with ARC770
  33. $(eval $(call add_arc770,nsim_700))
  34. $(eval $(call BuildImage))