diff options
author | Masahiro Yamada <masahiroy@kernel.org> | 2022-09-24 21:19:10 +0300 |
---|---|---|
committer | Masahiro Yamada <masahiroy@kernel.org> | 2022-09-28 22:41:31 +0300 |
commit | 5750121ae7382ebac8d47ce6d68012d6cd1d7926 (patch) | |
tree | 2eeaac7e2a04be6ba3cc9051b75259a19ba081b5 /scripts/file-size.sh | |
parent | 88b61e3bff93f99712718db785b4aa0c1165f35c (diff) | |
download | linux-5750121ae7382ebac8d47ce6d68012d6cd1d7926.tar.xz |
kbuild: list sub-directories in ./Kbuild
Use the ordinary obj-y syntax to list subdirectories.
Note1:
Previously, the link order of lib-y depended on CONFIG_MODULES; lib-y
was linked before drivers-y when CONFIG_MODULES=y, otherwise after
drivers-y. This was a bug of commit 7273ad2b08f8 ("kbuild: link lib-y
objects to vmlinux forcibly when CONFIG_MODULES=y"), but it was not a
big deal after all. Now, all objects listed in lib-y are linked last,
irrespective of CONFIG_MODULES.
Note2:
Finally, the single target build in arch/*/lib/ works correctly. There was
a bug report about this. [1]
$ make ARCH=arm arch/arm/lib/findbit.o
CALL scripts/checksyscalls.sh
AS arch/arm/lib/findbit.o
[1]: https://lore.kernel.org/linux-kbuild/YvUQOwL6lD4%2F5%2FU6@shell.armlinux.org.uk/
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Tested-by: Nick Desaulniers <ndesaulniers@google.com>
Reviewed-by: Nicolas Schier <nicolas@fjasle.eu>
Diffstat (limited to 'scripts/file-size.sh')
0 files changed, 0 insertions, 0 deletions