kbuild: move kbuild syntax processing to scripts/Makefile.build
authorMasahiro Yamada <masahiroy@kernel.org>
Wed, 14 May 2025 05:46:33 +0000 (14:46 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Sun, 25 May 2025 09:15:31 +0000 (18:15 +0900)
commit8f81d8529e19c84b014e4239d2012373274d138d
treea4165be8164bd0101a5c443204de1de1f73762a0
parent2adde2eb1638336e17f887070e6dfc52205d464b
kbuild: move kbuild syntax processing to scripts/Makefile.build

scripts/Makefile.lib is included by the following Makefiles:

  scripts/Makefile.build
  scripts/Makefile.modfinal
  scripts/Makefile.package
  scripts/Makefile.vmlinux
  scripts/Makefile.vmlinux_o

However, the last four do not need to process Kbuild syntax such as
obj-*, lib-*, subdir-*, etc.

Move the relevant code to scripts/Makefile.build.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Reviewed-by: Nicolas Schier <nicolas.schier@linux.dev>
scripts/Makefile.build
scripts/Makefile.lib