kbuild: add $(objtree)/ prefix to some in-kernel build artifacts
authorMasahiro Yamada <masahiroy@kernel.org>
Sun, 10 Nov 2024 01:34:30 +0000 (10:34 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Wed, 27 Nov 2024 00:38:27 +0000 (09:38 +0900)
commit214c0eea43b2ea66bcd6467ea57e47ce8874191b
tree070c0ea66ac32d63a25e4e861b6db2465371179a
parent0afd73c5f5c606b0f8f8ff036e4f5d6c4b788d02
kbuild: add $(objtree)/ prefix to some in-kernel build artifacts

$(objtree) refers to the top of the output directory of kernel builds.

This commit adds the explicit $(objtree)/ prefix to build artifacts
needed for building external modules.

This change has no immediate impact, as the top-level Makefile
currently defines:

  objtree         := .

This commit prepares for supporting the building of external modules
in a different directory.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Reviewed-by: Nicolas Schier <nicolas@fjasle.eu>
Makefile
arch/arm/Makefile
arch/arm64/Makefile
arch/powerpc/Makefile
arch/riscv/Makefile
scripts/Kbuild.include
scripts/Makefile.build
scripts/Makefile.modfinal
scripts/Makefile.modinst
scripts/Makefile.modpost
scripts/depmod.sh