Skip to content

Commit

Permalink
kbuild: move scripts/mod/ build to modules_prepare
Browse files Browse the repository at this point in the history
Do $(build)=scripts/mod after $(build)=. so that
scripts/mod/devicetable-offsets.c can use headers generated by ./Kbuild.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
  • Loading branch information
masahir0y authored and intel-lab-lkp committed May 14, 2022
1 parent 2a66c31 commit e538a96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Expand Up @@ -1191,7 +1191,6 @@ archprepare: outputmakefile archheaders archscripts scripts include/config/kerne
include/generated/autoconf.h remove-stale-files

prepare0: archprepare
$(Q)$(MAKE) $(build)=scripts/mod
$(Q)$(MAKE) $(build)=.

# All the preparing..
Expand Down Expand Up @@ -1438,6 +1437,7 @@ targets += modules.order
PHONY += modules_prepare
modules_prepare: prepare
$(Q)$(MAKE) $(build)=scripts scripts/module.lds
$(Q)$(MAKE) $(build)=scripts/mod

export modules_sign_only :=

Expand Down

0 comments on commit e538a96

Please sign in to comment.