2 # Copyright (C) 2015 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
7 include $(TOPDIR)/rules.mk
8 include $(INCLUDE_DIR)/image.mk
10 define Build/patch-dtb
11 $(call Image/BuildDTB,../dts/$(DEVICE_DTS).dts,$@.dtb)
12 $(STAGING_DIR_HOST)/bin/patch-dtb $@ $@.dtb
15 # Shared device definition: applies to every defined device
17 PROFILES = Default $$(DEVICE_PROFILE)
19 KERNEL_INITRAMFS := kernel-bin | patch-dtb
20 KERNEL_INITRAMFS_NAME = $$(KERNEL_NAME)-initramfs.elf
24 DEVICE_VARS += DEVICE_PROFILE DEVICE_DTS
28 DEVICE_PROFILE := $(1)
31 TARGET_DEVICES += $(1)
35 $(eval $(call add_arc770,axs101))
38 $(eval $(call add_arc770,nsim_700))
40 $(eval $(call BuildImage))