mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-05 18:41:58 +09:00
kbuild: refactor host*_flags
[ Upstream commit 16169a47d5 ]
Remove _host*_flags. No functional change is intended.
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Reviewed-by: Miguel Ojeda <ojeda@kernel.org>
Tested-by: Miguel Ojeda <ojeda@kernel.org>
Stable-dep-of: ded103c7eb23 ("kbuild: rust: force `alloc` extern to allow "empty" Rust files")
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
4c806333ef
commit
d73ba54dad
@@ -80,25 +80,23 @@ host-rust := $(addprefix $(obj)/,$(host-rust))
|
|||||||
#####
|
#####
|
||||||
# Handle options to gcc. Support building with separate output directory
|
# Handle options to gcc. Support building with separate output directory
|
||||||
|
|
||||||
_hostc_flags = $(KBUILD_HOSTCFLAGS) $(HOST_EXTRACFLAGS) \
|
hostc_flags = -Wp,-MMD,$(depfile) \
|
||||||
|
$(KBUILD_HOSTCFLAGS) $(HOST_EXTRACFLAGS) \
|
||||||
$(HOSTCFLAGS_$(target-stem).o)
|
$(HOSTCFLAGS_$(target-stem).o)
|
||||||
_hostcxx_flags = $(KBUILD_HOSTCXXFLAGS) $(HOST_EXTRACXXFLAGS) \
|
hostcxx_flags = -Wp,-MMD,$(depfile) \
|
||||||
|
$(KBUILD_HOSTCXXFLAGS) $(HOST_EXTRACXXFLAGS) \
|
||||||
$(HOSTCXXFLAGS_$(target-stem).o)
|
$(HOSTCXXFLAGS_$(target-stem).o)
|
||||||
_hostrust_flags = $(KBUILD_HOSTRUSTFLAGS) $(HOST_EXTRARUSTFLAGS) \
|
hostrust_flags = $(KBUILD_HOSTRUSTFLAGS) $(HOST_EXTRARUSTFLAGS) \
|
||||||
$(HOSTRUSTFLAGS_$(target-stem))
|
$(HOSTRUSTFLAGS_$(target-stem))
|
||||||
|
|
||||||
# $(objtree)/$(obj) for including generated headers from checkin source files
|
# $(objtree)/$(obj) for including generated headers from checkin source files
|
||||||
ifeq ($(KBUILD_EXTMOD),)
|
ifeq ($(KBUILD_EXTMOD),)
|
||||||
ifdef building_out_of_srctree
|
ifdef building_out_of_srctree
|
||||||
_hostc_flags += -I $(objtree)/$(obj)
|
hostc_flags += -I $(objtree)/$(obj)
|
||||||
_hostcxx_flags += -I $(objtree)/$(obj)
|
hostcxx_flags += -I $(objtree)/$(obj)
|
||||||
endif
|
endif
|
||||||
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
|
# Compile programs on the host
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user