diff mbox series

[3/4] x86/boot: Switch to -ffile-prefix-map

Message ID 20250313-kbuild-prefix-map-v1-3-38cea8448c5f@weissschuh.net (mailing list archive)
State New
Headers show
Series kbuild: make all file references relative to source root | expand

Commit Message

Thomas Weißschuh March 13, 2025, 3:59 p.m. UTC
-ffile-prefix-map is a more general variant of the currently used
-fmacro-prefix-map. It is also what the top-level Makefile is using now.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
---
 arch/x86/boot/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Masahiro Yamada March 15, 2025, 8:15 a.m. UTC | #1
Hi X86 maintainers,

Is it OK to pick up this to kbuild tree?
Ack is appreciated.



On Fri, Mar 14, 2025 at 12:59 AM Thomas Weißschuh <linux@weissschuh.net> wrote:
>
> -ffile-prefix-map is a more general variant of the currently used
> -fmacro-prefix-map. It is also what the top-level Makefile is using now.
>
> Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
> ---
>  arch/x86/boot/Makefile | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/arch/x86/boot/Makefile b/arch/x86/boot/Makefile
> index 9cc0ff6e9067d574488a35573eff4d0f8449e398..f500f82864aae80deb74faa3df9a8b6333d6c4ca 100644
> --- a/arch/x86/boot/Makefile
> +++ b/arch/x86/boot/Makefile
> @@ -54,7 +54,7 @@ targets += cpustr.h
>
>  KBUILD_CFLAGS  := $(REALMODE_CFLAGS) -D_SETUP
>  KBUILD_AFLAGS  := $(KBUILD_CFLAGS) -D__ASSEMBLY__
> -KBUILD_CFLAGS  += $(call cc-option,-fmacro-prefix-map=$(srctree)/=)
> +KBUILD_CFLAGS  += $(call cc-option,-ffile-prefix-map=$(srctree)/=)
>  KBUILD_CFLAGS  += -fno-asynchronous-unwind-tables
>  KBUILD_CFLAGS  += $(CONFIG_CC_IMPLICIT_FALLTHROUGH)
>
>
> --
> 2.48.1
>


--
Best Regards
Masahiro Yamada
Borislav Petkov March 15, 2025, 11:31 a.m. UTC | #2
On Sat, Mar 15, 2025 at 05:15:33PM +0900, Masahiro Yamada wrote:
> Hi X86 maintainers,
> 
> Is it OK to pick up this to kbuild tree?
> Ack is appreciated.

For both:

Acked-by: Borislav Petkov (AMD) <bp@alien8.de>

Thx.
diff mbox series

Patch

diff --git a/arch/x86/boot/Makefile b/arch/x86/boot/Makefile
index 9cc0ff6e9067d574488a35573eff4d0f8449e398..f500f82864aae80deb74faa3df9a8b6333d6c4ca 100644
--- a/arch/x86/boot/Makefile
+++ b/arch/x86/boot/Makefile
@@ -54,7 +54,7 @@  targets += cpustr.h
 
 KBUILD_CFLAGS	:= $(REALMODE_CFLAGS) -D_SETUP
 KBUILD_AFLAGS	:= $(KBUILD_CFLAGS) -D__ASSEMBLY__
-KBUILD_CFLAGS	+= $(call cc-option,-fmacro-prefix-map=$(srctree)/=)
+KBUILD_CFLAGS	+= $(call cc-option,-ffile-prefix-map=$(srctree)/=)
 KBUILD_CFLAGS	+= -fno-asynchronous-unwind-tables
 KBUILD_CFLAGS	+= $(CONFIG_CC_IMPLICIT_FALLTHROUGH)