Skip to content

Commit

Permalink
kbuild: fix single directory build
Browse files Browse the repository at this point in the history
Commit f110e5a ("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: f110e5a ("kbuild: refactor single builds of *.ko")
Reported-by: David Sterba <[email protected]>
Signed-off-by: Masahiro Yamada <[email protected]>
Tested-by: David Sterba <[email protected]>
  • Loading branch information
masahir0y committed Oct 16, 2022
1 parent c67a85b commit 3753af7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -1978,6 +1978,8 @@ endif

single-goals := $(addprefix $(build-dir)/, $(single-no-ko))

KBUILD_MODULES := 1

endif

# Preset locale variables to speed up the build process. Limit locale
Expand Down

0 comments on commit 3753af7

Please sign in to comment.