summaryrefslogtreecommitdiff
path: root/drivers/of/unittest-data/Makefile
blob: 8fd0ea4b92b08558bb302d01b59a9f8cf118d0ff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# SPDX-License-Identifier: GPL-2.0
obj-y += testcases.dtb.o

obj-$(CONFIG_OF_OVERLAY) += overlay.dtb.o \
			    overlay_0.dtb.o \
			    overlay_1.dtb.o \
			    overlay_2.dtb.o \
			    overlay_3.dtb.o \
			    overlay_4.dtb.o \
			    overlay_5.dtb.o \
			    overlay_6.dtb.o \
			    overlay_7.dtb.o \
			    overlay_8.dtb.o \
			    overlay_9.dtb.o \
			    overlay_10.dtb.o \
			    overlay_11.dtb.o \
			    overlay_12.dtb.o \
			    overlay_13.dtb.o \
			    overlay_15.dtb.o \
			    overlay_bad_phandle.dtb.o \
			    overlay_bad_symbol.dtb.o \
			    overlay_base.dtb.o

targets += $(foreach suffix, dtb dtb.S, $(patsubst %.dtb.o,%.$(suffix),$(obj-y)))

# enable creation of __symbols__ node
DTC_FLAGS_overlay += -@
DTC_FLAGS_overlay_bad_phandle += -@
DTC_FLAGS_overlay_bad_symbol += -@
DTC_FLAGS_overlay_base += -@
DTC_FLAGS_testcases += -@

# suppress warnings about intentional errors
DTC_FLAGS_testcases += -Wno-interrupts_property

.PRECIOUS: \
	$(obj)/%.dtb.S \
	$(obj)/%.dtb