mirror of
https://github.com/torvalds/linux
synced 2024-07-23 03:29:48 +00:00
kbuild: fix single directory build
Commitf110e5a250
("kbuild: refactor single builds of *.ko") was wrong. KBUILD_MODULES _is_ needed for single builds. Otherwise, "make foo/bar/baz/" does not build module objects at all. Fixes:f110e5a250
("kbuild: refactor single builds of *.ko") Reported-by: David Sterba <dsterba@suse.cz> Signed-off-by: Masahiro Yamada <masahiroy@kernel.org> Tested-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
c67a85bee7
commit
3753af778d
2
Makefile
2
Makefile
|
@ -1978,6 +1978,8 @@ endif
|
||||||
|
|
||||||
single-goals := $(addprefix $(build-dir)/, $(single-no-ko))
|
single-goals := $(addprefix $(build-dir)/, $(single-no-ko))
|
||||||
|
|
||||||
|
KBUILD_MODULES := 1
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# Preset locale variables to speed up the build process. Limit locale
|
# Preset locale variables to speed up the build process. Limit locale
|
||||||
|
|
Loading…
Reference in a new issue