]> www.infradead.org Git - users/jedix/linux-maple.git/commit
x86: drop unnecessary prefix map configuration
authorThomas Weißschuh <linux@weissschuh.net>
Sat, 22 Mar 2025 09:03:16 +0000 (10:03 +0100)
committerMasahiro Yamada <masahiroy@kernel.org>
Sat, 22 Mar 2025 14:50:58 +0000 (23:50 +0900)
commit97282e6d380db8a07120fe1b794ac969ee4a3b5c
treed729f9e11e4536e85e2dbf820557ac32161c2f53
parenta7a05b1b2739b94870b499818986b82974839fe0
x86: drop unnecessary prefix map configuration

The toplevel Makefile already provides -fmacro-prefix-map as part of
KBUILD_CPPFLAGS. In contrast to the KBUILD_CFLAGS and KBUILD_AFLAGS
variables, KBUILD_CPPFLAGS is not redefined in the architecture specific
Makefiles. Therefore the toplevel KBUILD_CPPFLAGS do apply just fine, to
both C and ASM sources.

The custom configuration was necessary when it was added in
commit 9e2276fa6eb3 ("arch/x86/boot: Use prefix map to avoid embedded
paths") but has since become unnecessary in commit a716bd743210
("kbuild: use -fmacro-prefix-map for .S sources").

Drop the now unnecessary custom prefix map configuration.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
arch/x86/boot/Makefile
arch/x86/boot/compressed/Makefile