[2/2] kbuild: change DTC_FLAGS_<basetarget>.o to take the path relative to $(obj)

Message ID 20240217055504.2059803-2-masahiroy@kernel.org
State New
Headers
Series [1/2] kbuild: change tool coverage variables to take the path relative to $(obj) |

Commit Message

Masahiro Yamada Feb. 17, 2024, 5:55 a.m. UTC
  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>
---

 scripts/Makefile.lib | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Comments

Nicolas Schier Feb. 21, 2024, 3:12 p.m. UTC | #1
On Sat 17 Feb 2024 14:55:04 GMT, Masahiro Yamada wrote:
> 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>
> ---
> 
>  scripts/Makefile.lib | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> 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)), -@)
> -- 
> 2.40.1
> 
> 

Reviewed-by: Nicolas Schier <nicolas@fjasle.eu>
  

Patch

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)), -@)