diff options
| author | Masahiro Yamada <[email protected]> | 2022-08-20 09:15:30 +0000 |
|---|---|---|
| committer | Masahiro Yamada <[email protected]> | 2022-09-28 19:40:14 +0000 |
| commit | d724b578a1f746db6fc1fd5e4cbba554a855dc8d (patch) | |
| tree | 1a5dcc8f9971cc822ac1e3c8e94d98924c5a9a7f /scripts/clang-tools/gen_compile_commands.py | |
| parent | kbuild: check sha1sum just once for each atomic header (diff) | |
| download | kernel-d724b578a1f746db6fc1fd5e4cbba554a855dc8d.tar.gz kernel-d724b578a1f746db6fc1fd5e4cbba554a855dc8d.zip | |
kbuild: do not deduplicate modules.order
The AWK code was added to deduplicate modules.order in case $(obj-m)
contains the same module multiple times, but it is actually unneeded
since commit b2c885549122 ("kbuild: update modules.order only when
contained modules are updated").
The list is already deduplicated before being processed by AWK because
$^ is the deduplicated list of prerequisites.
(Please note the real-prereqs macro uses $^)
Yet, modules.order will contain duplication if two different Makefiles
build the same module:
foo/Makefile:
obj-m += bar/baz.o
foo/bar/Makefile:
obj-m += baz.o
However, the parallel builds cannot properly handle this case in the
first place. So, it is better to let it fail (as already done by
scripts/modules-check.sh).
Signed-off-by: Masahiro Yamada <[email protected]>
Diffstat (limited to 'scripts/clang-tools/gen_compile_commands.py')
0 files changed, 0 insertions, 0 deletions
