Skip to content

Commit 80dc8c4

Browse files
author
Herton R. Krzesinski
committed
kbuild: Use $(obj)/%.cc to fix host C++ module builds
JIRA: https://issues.redhat.com/browse/RHEL-107194 commit 7ed9d13 Author: Nicolas Schier <n.schier@avm.de> Date: Mon Jun 24 13:12:14 2024 +0200 kbuild: Use $(obj)/%.cc to fix host C++ module builds Use $(obj)/ instead of $(src)/ prefix when building C++ modules for host, as explained in commit b1992c3 ("kbuild: use $(src) instead of $(srctree)/$(src) for source directory"). This fixes build failures of 'xconfig': $ make O=build/ xconfig make[1]: Entering directory '/data/linux/kbuild-review/build' GEN Makefile make[3]: *** No rule to make target '../scripts/kconfig/qconf-moc.cc', needed by 'scripts/kconfig/qconf-moc.o'. Stop. Fixes: b1992c3 ("kbuild: use $(src) instead of $(srctree)/$(src) for source directory") Reported-by: Rolf Eike Beer <eb@emlix.com> Signed-off-by: Nicolas Schier <n.schier@avm.de> Tested-by: Rolf Eike Beer <eb@emlix.com> Signed-off-by: Masahiro Yamada <masahiroy@kernel.org> Signed-off-by: Herton R. Krzesinski <herton@redhat.com>
1 parent 4fda0c7 commit 80dc8c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/Makefile.host

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ $(call multi_depend, $(host-cxxmulti), , -objs -cxxobjs)
125125
# Create .o file from a single .cc (C++) file
126126
quiet_cmd_host-cxxobjs = HOSTCXX $@
127127
cmd_host-cxxobjs = $(HOSTCXX) $(hostcxx_flags) -c -o $@ $<
128-
$(host-cxxobjs): $(obj)/%.o: $(src)/%.cc FORCE
128+
$(host-cxxobjs): $(obj)/%.o: $(obj)/%.cc FORCE
129129
$(call if_changed_dep,host-cxxobjs)
130130

131131
targets += $(host-csingle) $(host-cmulti) $(host-cobjs) \

0 commit comments

Comments
 (0)