From fa953236e1b9a858255e8e7074a960ebb7fa06ff Mon Sep 17 00:00:00 2001 From: Haaland Chen Date: Tue, 26 Mar 2024 22:18:39 +0800 Subject: [PATCH] scripts: add more options like -@ to build dtbo It fixes the issue that u-boot failed to load dtbo like this: Retrieving file: /dtbs/linux-image-5.10.113-lpi4a/thead/overlays/meles-wifibt-external-antenna.dtbo 715 bytes read in 4 ms (173.8 KiB/s) failed on fdt_overlay_apply(): FDT_ERR_NOTFOUND base fdt does did not have a /__symbols__ node make sure you've compiled with -@ Failed to apply overlay /dtbs/linux-image-5.10.113-lpi4a/thead/overlays/meles-wifibt-external-antenna.dtbo, skipping ERROR: Did not find a cmdline Flattened Device Tree Loading Ramdisk to 1fa22000, end 1ffff820 ... OK Device tree not found or missing FDT support ### ERROR ### Please RESET the board ### Signed-off-by: Haaland Chen --- scripts/Makefile.lib | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib index b96dc3ac4..f607c726d 100644 --- a/scripts/Makefile.lib +++ b/scripts/Makefile.lib @@ -317,6 +317,9 @@ endif DTC ?= $(objtree)/scripts/dtc/dtc DTC_FLAGS += $(call dtc-option,-Wno-interrupt_provider) +# Overlay support +DTC_FLAGS += -@ -Wno-unit_address_format -Wno-simple_bus_reg + # Disable noisy checks by default ifeq ($(findstring 1,$(KBUILD_EXTRA_WARN)),) DTC_FLAGS += $(call dtc-option,-Wno-unit_address_vs_reg) \