diff options
author | Masahiro Yamada | 2022-09-06 15:13:06 +0900 |
---|---|---|
committer | Masahiro Yamada | 2022-09-29 04:40:15 +0900 |
commit | cc306abd19e8acdd85072b162d09e80408389cd8 (patch) | |
tree | 288aca34d648681e6135b04b89473669f57c81b5 /fs/cachefiles/error_inject.c | |
parent | 033a52d033607dab1c9b93962921dc6a9a9146b3 (diff) |
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 'fs/cachefiles/error_inject.c')
0 files changed, 0 insertions, 0 deletions