提交 a4a4d07f 编写于 作者: Z Zheng Zengkai

kbuild: keep the original function for non-RPi

raspberrypi inclusion
category: feature
bugzilla: 50432

------------------------------

This patch adjusts following kbuild related patches for
raspberry pi on non-Raspberry Pi platforms, using specific
config CONFIG_OPENEULER_RASPBERRYPI to distinguish them:

d2864887 Kbuild: Allow .dtbo overlays to be built, adjust.
0131a56e kbuild: Disable gcc plugins
4894352e kbuild: Silence unavoidable dtc overlay warnings
Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
Reviewed-by: NXie XiuQi <xiexiuqi@huawei.com>
上级 c5383ad9
...@@ -1333,8 +1333,10 @@ ifneq ($(dtstree),) ...@@ -1333,8 +1333,10 @@ ifneq ($(dtstree),)
%.dtb: include/config/kernel.release scripts_dtc %.dtb: include/config/kernel.release scripts_dtc
$(Q)$(MAKE) $(build)=$(dtstree) $(dtstree)/$@ $(Q)$(MAKE) $(build)=$(dtstree) $(dtstree)/$@
ifdef CONFIG_OPENEULER_RASPBERRYPI
%.dtbo: include/config/kernel.release scripts_dtc %.dtbo: include/config/kernel.release scripts_dtc
$(Q)$(MAKE) $(build)=$(dtstree) $(dtstree)/$@ $(Q)$(MAKE) $(build)=$(dtstree) $(dtstree)/$@
endif
PHONY += dtbs dtbs_install dtbs_check PHONY += dtbs dtbs_install dtbs_check
dtbs: include/config/kernel.release scripts_dtc dtbs: include/config/kernel.release scripts_dtc
......
...@@ -348,12 +348,14 @@ cmd_dtco = mkdir -p $(dir ${dtc-tmp}) ; \ ...@@ -348,12 +348,14 @@ cmd_dtco = mkdir -p $(dir ${dtc-tmp}) ; \
$(DTC) -@ -H epapr -O dtb -o $@ -b 0 \ $(DTC) -@ -H epapr -O dtb -o $@ -b 0 \
-i $(dir $<) $(DTC_FLAGS) \ -i $(dir $<) $(DTC_FLAGS) \
-Wno-interrupts_property \ -Wno-interrupts_property \
ifeq ($(CONFIG_OPENEULER_RASPBERRYPI),y) \
-Wno-label_is_string \ -Wno-label_is_string \
-Wno-reg_format \ -Wno-reg_format \
-Wno-pci_device_bus_num \ -Wno-pci_device_bus_num \
-Wno-i2c_bus_reg \ -Wno-i2c_bus_reg \
-Wno-spi_bus_reg \ -Wno-spi_bus_reg \
-Wno-avoid_default_addr_size \ -Wno-avoid_default_addr_size \
endif \
-d $(depfile).dtc.tmp $(dtc-tmp) ; \ -d $(depfile).dtc.tmp $(dtc-tmp) ; \
cat $(depfile).pre.tmp $(depfile).dtc.tmp > $(depfile) cat $(depfile).pre.tmp $(depfile).dtc.tmp > $(depfile)
......
#!/bin/sh #!/bin/sh
# SPDX-License-Identifier: GPL-2.0 # SPDX-License-Identifier: GPL-2.0
if [ -n "${CONFIG_OPENEULER_RASPBERRYPI}" ]; then
exit 1 # Disable plugins exit 1 # Disable plugins
fi
set -e set -e
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册