Makefile 436 B

123456789101112131415161718
  1. # Built-in dtb
  2. builtindtb-y := nsim_700
  3. ifneq ($(CONFIG_ARC_BUILTIN_DTB_NAME),"")
  4. builtindtb-y := $(patsubst "%",%,$(CONFIG_ARC_BUILTIN_DTB_NAME))
  5. endif
  6. obj-y += $(builtindtb-y).dtb.o
  7. dtb-y := $(builtindtb-y).dtb
  8. .SECONDARY: $(obj)/$(builtindtb-y).dtb.S
  9. dtstree := $(srctree)/$(src)
  10. dtb-$(CONFIG_OF_ALL_DTBS) := $(patsubst $(dtstree)/%.dts,%.dtb, $(wildcard $(dtstree)/*.dts))
  11. always := $(dtb-y)
  12. clean-files := *.dtb *.dtb.S