rust-for-linux.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 1/7] kbuild: refactor host*_flags
@ 2023-01-07  9:18 Masahiro Yamada
  2023-01-07  9:18 ` [PATCH v2 2/7] kbuild: specify output names separately for each emission type from rustc Masahiro Yamada
                   ` (6 more replies)
  0 siblings, 7 replies; 10+ messages in thread
From: Masahiro Yamada @ 2023-01-07  9:18 UTC (permalink / raw)
  To: linux-kbuild
  Cc: linux-kernel, Miguel Ojeda, Alex Gaynor, Wedson Almeida Filho,
	Boqun Feng, Gary Guo, Björn Roy Baron, rust-for-linux,
	Masahiro Yamada, Nathan Chancellor, Nick Desaulniers,
	Nicolas Schier

Remove _host*_flags.

This will change the -Wp,-MMD,$(depfile) order in the command line
but no functional change is intended.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
---

Changes in v2:
  - New patch

 scripts/Makefile.host | 20 ++++++++------------
 1 file changed, 8 insertions(+), 12 deletions(-)

diff --git a/scripts/Makefile.host b/scripts/Makefile.host
index da133780b751..dea494ef55d5 100644
--- a/scripts/Makefile.host
+++ b/scripts/Makefile.host
@@ -80,25 +80,21 @@ host-rust	:= $(addprefix $(obj)/,$(host-rust))
 #####
 # Handle options to gcc. Support building with separate output directory
 
-_hostc_flags   = $(KBUILD_HOSTCFLAGS)   $(HOST_EXTRACFLAGS)   \
-                 $(HOSTCFLAGS_$(target-stem).o)
-_hostcxx_flags = $(KBUILD_HOSTCXXFLAGS) $(HOST_EXTRACXXFLAGS) \
-                 $(HOSTCXXFLAGS_$(target-stem).o)
-_hostrust_flags = $(KBUILD_HOSTRUSTFLAGS) $(HOST_EXTRARUSTFLAGS) \
-                  $(HOSTRUSTFLAGS_$(target-stem))
+hostc_flags    = $(KBUILD_HOSTCFLAGS) $(HOST_EXTRACFLAGS) \
+                 $(HOSTCFLAGS_$(target-stem).o) -Wp,-MMD,$(depfile)
+hostcxx_flags  = $(KBUILD_HOSTCXXFLAGS) $(HOST_EXTRACXXFLAGS) \
+                  $(HOSTCXXFLAGS_$(target-stem).o) -Wp,-MMD,$(depfile)
+hostrust_flags = $(KBUILD_HOSTRUSTFLAGS) $(HOST_EXTRARUSTFLAGS) \
+                 $(HOSTRUSTFLAGS_$(target-stem))
 
 # $(objtree)/$(obj) for including generated headers from checkin source files
 ifeq ($(KBUILD_EXTMOD),)
 ifdef building_out_of_srctree
-_hostc_flags   += -I $(objtree)/$(obj)
-_hostcxx_flags += -I $(objtree)/$(obj)
+hostc_flags   += -I $(objtree)/$(obj)
+hostcxx_flags += -I $(objtree)/$(obj)
 endif
 endif
 
-hostc_flags    = -Wp,-MMD,$(depfile) $(_hostc_flags)
-hostcxx_flags  = -Wp,-MMD,$(depfile) $(_hostcxx_flags)
-hostrust_flags = $(_hostrust_flags)
-
 #####
 # Compile programs on the host
 
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2023-01-08 14:05 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-01-07  9:18 [PATCH v2 1/7] kbuild: refactor host*_flags Masahiro Yamada
2023-01-07  9:18 ` [PATCH v2 2/7] kbuild: specify output names separately for each emission type from rustc Masahiro Yamada
2023-01-07  9:18 ` [PATCH v2 3/7] fixdep: parse Makefile more correctly to handle comments etc Masahiro Yamada
2023-01-07  9:18 ` [PATCH v2 4/7] kbuild: remove sed commands after rustc rules Masahiro Yamada
2023-01-07  9:18 ` [PATCH v2 5/7] fixdep: refactor hash table lookup Masahiro Yamada
2023-01-07  9:18 ` [PATCH v2 6/7] fixdep: avoid parsing the same file over again Masahiro Yamada
2023-01-07  9:18 ` [PATCH v2 7/7] fixdep: do not parse *.rlib, *.rmeta, *.so Masahiro Yamada
2023-01-07 15:12 ` [PATCH v2 1/7] kbuild: refactor host*_flags Miguel Ojeda
2023-01-08 13:06   ` Masahiro Yamada
2023-01-08 14:05     ` Miguel Ojeda

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).