]> www.infradead.org Git - users/jedix/linux-maple.git/commit
kbuild: redo fake deps at include/ksym/*.h
authorMasahiro Yamada <masahiroy@kernel.org>
Mon, 30 Aug 2021 08:20:33 +0000 (17:20 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Tue, 31 Aug 2021 01:50:44 +0000 (10:50 +0900)
commit087e856cfb76e9eef9a3a6e000854794f3c36e24
treee4283b65bde1252528250c55babdb05c609fa602
parentd16a693cf932b8c54329b2bb46e649120115875a
kbuild: redo fake deps at include/ksym/*.h

Commit 0e0345b77ac4 ("kbuild: redo fake deps at include/config/*.h")
simplified the Kconfig/fixdep interaction a lot.

For CONFIG_FOO_BAR_BAZ, Kconfig now touches include/config/FOO_BAR_BAZ
instead of the previous include/config/foo/bar/baz.h .

This commit simplifies the TRIM_UNUSED_KSYMS feature in a similar way:

  - delete .h suffix
  - delete tolower()
  - put everything in 1 directory

For EXPORT_SYMBOL(FOO_BAR_BAZ), scripts/adjust_autoksyms.sh now touches
include/ksym/FOO_BAR_BAZ instead of include/ksym/foo/bar/baz.h .

This is more precise, avoiding possibly unnecessary rebuilds.

  EXPORT_SYMBOL(FOO_BAR_BAZ)
  EXPORT_SYMBOL(_FOO_BAR_BAZ)
  EXPORT_SYMBOL(__FOO_BAR_BAZ)

were previously mapped to the same header, include/ksym/foo/bar/baz.h
but now are handled separately.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
scripts/adjust_autoksyms.sh
scripts/gen_ksymdeps.sh