Skip to content

Commit

Permalink
kbuild: fix single *.ko build
Browse files Browse the repository at this point in the history
The single *.ko build is broken since commit f65a486 ("kbuild:
change module.order to list *.o instead of *.ko").

Fixes: f65a486 ("kbuild: change module.order to list *.o instead of *.ko")
Reported-by: Marc Kleine-Budde <[email protected]>
Signed-off-by: Masahiro Yamada <[email protected]>
Tested-by: Marc Kleine-Budde <[email protected]>
  • Loading branch information
masahir0y committed Jan 5, 2023
1 parent 88603b6 commit a53da43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -1986,7 +1986,7 @@ $(single-no-ko): $(build-dir)
# Remove MODORDER when done because it is not the real one.
PHONY += single_modules
single_modules: $(single-no-ko) modules_prepare
$(Q){ $(foreach m, $(single-ko), echo $(extmod_prefix)$m;) } > $(MODORDER)
$(Q){ $(foreach m, $(single-ko), echo $(extmod_prefix)$(m:%.ko=%.o);) } > $(MODORDER)
$(Q)$(MAKE) -f $(srctree)/scripts/Makefile.modpost
ifneq ($(KBUILD_MODPOST_NOFINAL),1)
$(Q)$(MAKE) -f $(srctree)/scripts/Makefile.modfinal
Expand Down

0 comments on commit a53da43

Please sign in to comment.