kbuild: change DTC_FLAGS_<basetarget>.o to take the path relative to $(obj)
authorMasahiro Yamada <masahiroy@kernel.org>
Sat, 17 Feb 2024 05:55:04 +0000 (14:55 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Fri, 23 Feb 2024 12:07:22 +0000 (21:07 +0900)
For the same rationale as commit 54b8ae66ae1a ("kbuild: change
*FLAGS_<basetarget>.o to take the path relative to $(obj)").

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Reviewed-by: Nicolas Schier <nicolas@fjasle.eu>
scripts/Makefile.lib

index 328c0d77ed4808e59e444a6043377aca7dc7ebcf..56f7fe2b476d5697a545a7022018de927b872edc 100644 (file)
@@ -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)), -@)