]> www.infradead.org Git - users/willy/pagecache.git/commit
kbuild: support -fmacro-prefix-map for external modules
authorMasahiro Yamada <masahiroy@kernel.org>
Sun, 10 Nov 2024 01:34:36 +0000 (10:34 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Wed, 27 Nov 2024 23:11:55 +0000 (08:11 +0900)
commit1d3730f0012fa04ec392b52cc21f945704ac2e16
tree668f12f6d829b90c39d6e43d577a2e4b95cc36a5
parent11b3d5175e6bc3779159228e6077be202d2b0069
kbuild: support -fmacro-prefix-map for external modules

This commit makes -fmacro-prefix-map work for external modules built in
a separate output directory. It improves the reproducibility of external
modules and provides the benefits described in commit a73619a845d5
("kbuild: use -fmacro-prefix-map to make __FILE__ a relative path").

When building_out_of_srctree is not defined (e.g., when the kernel or
external module is built in the source directory), this option is
unnecessary.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Reviewed-by: Nicolas Schier <nicolas@fjasle.eu>
Makefile