1 From 452e2d1248f7782e769cdbdd01a0f479715d7bfb Mon Sep 17 00:00:00 2001
2 From: Phil Elwell <phil@raspberrypi.com>
3 Date: Fri, 29 Jan 2021 10:34:11 +0000
4 Subject: [PATCH] kbuild: Silence unavoidable dtc overlay warnings
6 Much effort has been put into finding ways to avoid warnings from dtc
7 about overlays, usually to do with the presence of #address-cells and
8 size-cells, but not exclusively so. Since the issues being warned about
9 are harmless, suppress the warnings to declutter the build output and
10 to avoid alarming users.
12 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
14 scripts/Makefile.lib | 6 ++++++
15 1 file changed, 6 insertions(+)
17 --- a/scripts/Makefile.lib
18 +++ b/scripts/Makefile.lib
19 @@ -348,6 +348,12 @@ cmd_dtco = mkdir -p $(dir ${dtc-tmp}) ;
20 $(DTC) -@ -H epapr -O dtb -o $@ -b 0 \
21 -i $(dir $<) $(DTC_FLAGS) \
22 -Wno-interrupts_property \
23 + -Wno-label_is_string \
25 + -Wno-pci_device_bus_num \
28 + -Wno-avoid_default_addr_size \
29 -d $(depfile).dtc.tmp $(dtc-tmp) ; \
30 cat $(depfile).pre.tmp $(depfile).dtc.tmp > $(depfile)