summaryrefslogtreecommitdiff
path: root/scripts/Makefile.host
diff options
context:
space:
mode:
authorTom Rini <[email protected]>2025-07-07 14:10:59 -0600
committerTom Rini <[email protected]>2025-07-07 14:10:59 -0600
commit6d0b8874fde96c88e866c1e5ae0018354b7cd7d6 (patch)
treefc498e7eaa23b8d27c701648bd3d0f92160bde39 /scripts/Makefile.host
parente37de002fac3895e8d0b60ae2015e17bb33e2b5b (diff)
parent7598b469c16d97128d9c22839b06d94c5c331a7e (diff)
Merge branch 'next'
Diffstat (limited to 'scripts/Makefile.host')
-rw-r--r--scripts/Makefile.host6
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/Makefile.host b/scripts/Makefile.host
index 7624304e3e9..bd5ed4c63b7 100644
--- a/scripts/Makefile.host
+++ b/scripts/Makefile.host
@@ -72,13 +72,15 @@ _hostc_flags = $(KBUILD_HOSTCFLAGS) $(HOST_EXTRACFLAGS) \
_hostcxx_flags = $(KBUILD_HOSTCXXFLAGS) $(HOST_EXTRACXXFLAGS) \
$(HOSTCXXFLAGS_$(basetarget).o)
-ifeq ($(KBUILD_SRC),)
__hostc_flags = $(_hostc_flags)
__hostcxx_flags = $(_hostcxx_flags)
-else
+
+ifeq ($(KBUILD_EXTMOD),)
+ifneq ($(KBUILD_SRC),)
__hostc_flags = -I$(obj) $(call flags,_hostc_flags)
__hostcxx_flags = -I$(obj) $(call flags,_hostcxx_flags)
endif
+endif
hostc_flags = -Wp,-MD,$(depfile) $(__hostc_flags)
hostcxx_flags = -Wp,-MD,$(depfile) $(__hostcxx_flags)