From: Masahiro Yamada Date: Sat, 17 Feb 2024 05:55:04 +0000 (+0900) Subject: kbuild: change DTC_FLAGS_.o to take the path relative to $(obj) X-Git-Tag: v6.9-rc1~32^2~19 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=223390b1c4d266c3b684b99d0a1980c49ebccf0d;p=linux-block.git kbuild: change DTC_FLAGS_.o to take the path relative to $(obj) For the same rationale as commit 54b8ae66ae1a ("kbuild: change *FLAGS_.o to take the path relative to $(obj)"). Signed-off-by: Masahiro Yamada Reviewed-by: Nicolas Schier --- diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib index 328c0d77ed48..56f7fe2b476d 100644 --- a/scripts/Makefile.lib +++ b/scripts/Makefile.lib @@ -368,7 +368,7 @@ DTC_FLAGS += -Wnode_name_chars_strict \ -Wunique_unit_address endif -DTC_FLAGS += $(DTC_FLAGS_$(basetarget)) +DTC_FLAGS += $(DTC_FLAGS_$(target-stem)) # Set -@ if the target is a base DTB that overlay is applied onto DTC_FLAGS += $(if $(filter $(patsubst $(obj)/%,%,$@), $(base-dtb-y)), -@)