Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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 b1992c3772e6 ("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: b1992c3772e6 ("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>

authored by

Nicolas Schier and committed by
Masahiro Yamada
7ed9d131 8d1001f7

+1 -1
+1 -1
scripts/Makefile.host
··· 146 146 # Create .o file from a single .cc (C++) file 147 147 quiet_cmd_host-cxxobjs = HOSTCXX $@ 148 148 cmd_host-cxxobjs = $(HOSTCXX) $(hostcxx_flags) -c -o $@ $< 149 - $(host-cxxobjs): $(obj)/%.o: $(src)/%.cc FORCE 149 + $(host-cxxobjs): $(obj)/%.o: $(obj)/%.cc FORCE 150 150 $(call if_changed_dep,host-cxxobjs) 151 151 152 152 # Create executable from a single Rust crate (which may consist of