Vineet Gupta | 999159a | 2013-01-22 17:00:52 +0530 | [diff] [blame] | 1 | # Built-in dtb |
Vineet Gupta | fd15579 | 2015-02-20 19:12:18 +0530 | [diff] [blame] | 2 | builtindtb-y := nsim_700 |
Vineet Gupta | 999159a | 2013-01-22 17:00:52 +0530 | [diff] [blame] | 3 | |
| 4 | ifneq ($(CONFIG_ARC_BUILTIN_DTB_NAME),"") |
| 5 | builtindtb-y := $(patsubst "%",%,$(CONFIG_ARC_BUILTIN_DTB_NAME)) |
| 6 | endif |
| 7 | |
| 8 | obj-y += $(builtindtb-y).dtb.o |
Rob Herring | 10375cc | 2015-10-08 10:10:53 -0500 | [diff] [blame] | 9 | dtb-y := $(builtindtb-y).dtb |
Vineet Gupta | 999159a | 2013-01-22 17:00:52 +0530 | [diff] [blame] | 10 | |
Vineet Gupta | a89516b | 2013-04-16 08:43:58 +0530 | [diff] [blame] | 11 | .SECONDARY: $(obj)/$(builtindtb-y).dtb.S |
| 12 | |
Rob Herring | b83abc8 | 2015-10-06 17:51:00 -0500 | [diff] [blame] | 13 | dtstree := $(srctree)/$(src) |
| 14 | dtb-$(CONFIG_OF_ALL_DTBS) := $(patsubst $(dtstree)/%.dts,%.dtb, $(wildcard $(dtstree)/*.dts)) |
Vineet Gupta | 999159a | 2013-01-22 17:00:52 +0530 | [diff] [blame] | 15 | |
Rob Herring | 10375cc | 2015-10-08 10:10:53 -0500 | [diff] [blame] | 16 | always := $(dtb-y) |
Vineet Gupta | a89516b | 2013-04-16 08:43:58 +0530 | [diff] [blame] | 17 | clean-files := *.dtb *.dtb.S |