diff options
author | Masahiro Yamada <masahiroy@kernel.org> | 2022-09-06 09:13:06 +0300 |
---|---|---|
committer | Masahiro Yamada <masahiroy@kernel.org> | 2022-09-28 22:40:15 +0300 |
commit | cc306abd19e8acdd85072b162d09e80408389cd8 (patch) | |
tree | 288aca34d648681e6135b04b89473669f57c81b5 /arch/sh | |
parent | 033a52d033607dab1c9b93962921dc6a9a9146b3 (diff) | |
download | linux-cc306abd19e8acdd85072b162d09e80408389cd8.tar.xz |
kbuild: fix and refactor single target build
The single target build has a subtle bug for the combination for
an individual file and a subdirectory.
[1] 'make kernel/fork.i' builds only kernel/fork.i
$ make kernel/fork.i
CALL scripts/checksyscalls.sh
DESCEND objtool
CPP kernel/fork.i
[2] 'make kernel/' builds only under the kernel/ directory.
$ make kernel/
CALL scripts/checksyscalls.sh
DESCEND objtool
CC kernel/fork.o
CC kernel/exec_domain.o
[snip]
CC kernel/rseq.o
AR kernel/built-in.a
But, if you try to do [1] and [2] in a single command, you will get
only [1] with a weird log:
$ make kernel/fork.i kernel/
CALL scripts/checksyscalls.sh
DESCEND objtool
CPP kernel/fork.i
make[2]: Nothing to be done for 'kernel/'.
With 'make kernel/fork.i kernel/', you should get both [1] and [2].
Rewrite the single target build.
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Diffstat (limited to 'arch/sh')
0 files changed, 0 insertions, 0 deletions