blob: df697976740ad82fe1b32d852fb4df1e3405fe82 [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001# SPDX-License-Identifier: GPL-2.0
Rob Herringc0075832017-11-16 11:54:17 -06002DTC_FLAGS_testcases := -Wno-interrupts_property
Frank Rowandf0570d92015-03-13 12:21:46 -07003obj-y += testcases.dtb.o
4
Masahiro Yamadabd6dc702018-01-05 20:55:30 +09005obj-$(CONFIG_OF_OVERLAY) += overlay.dtb.o \
6 overlay_bad_phandle.dtb.o \
7 overlay_bad_symbol.dtb.o \
8 overlay_base.dtb.o
Frank Rowand60a00042017-07-19 09:25:20 -07009
Masahiro Yamadabd6dc702018-01-05 20:55:30 +090010targets += $(foreach suffix, dtb dtb.S, $(patsubst %.dtb.o,%.$(suffix),$(obj-y)))
Frank Rowandf0570d92015-03-13 12:21:46 -070011
Frank Rowand81d0848f2017-04-25 17:09:54 -070012# enable creation of __symbols__ node
13DTC_FLAGS_overlay := -@
14DTC_FLAGS_overlay_bad_phandle := -@
Frank Rowand60a00042017-07-19 09:25:20 -070015DTC_FLAGS_overlay_bad_symbol := -@
Frank Rowand81d0848f2017-04-25 17:09:54 -070016DTC_FLAGS_overlay_base := -@
Frank Rowand60a00042017-07-19 09:25:20 -070017
Frank Rowand60a00042017-07-19 09:25:20 -070018.PRECIOUS: \
19 $(obj)/%.dtb.S \
20 $(obj)/%.dtb