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

Thomas Weißschuh posted 4 patches 11 months ago
There is a newer version of this series
[PATCH 4/4] x86/boot/compressed: Switch to -ffile-prefix-map
Posted by Thomas Weißschuh 11 months ago
-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/compressed/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/x86/boot/compressed/Makefile b/arch/x86/boot/compressed/Makefile
index 606c74f274593ebaf6200b7d307a453e2c6e872e..73a67366cb706658f9680cd50864a68546d3dc98 100644
--- a/arch/x86/boot/compressed/Makefile
+++ b/arch/x86/boot/compressed/Makefile
@@ -38,7 +38,7 @@ KBUILD_CFLAGS += -fno-stack-protector
 KBUILD_CFLAGS += $(call cc-disable-warning, address-of-packed-member)
 KBUILD_CFLAGS += $(call cc-disable-warning, gnu)
 KBUILD_CFLAGS += -Wno-pointer-sign
-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 += -D__DISABLE_EXPORTS
 # Disable relocation relaxation in case the link is not PIE.

-- 
2.48.1

Re: [PATCH 4/4] x86/boot/compressed: Switch to -ffile-prefix-map
Posted by Masahiro Yamada 11 months ago
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/compressed/Makefile | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/arch/x86/boot/compressed/Makefile b/arch/x86/boot/compressed/Makefile
> index 606c74f274593ebaf6200b7d307a453e2c6e872e..73a67366cb706658f9680cd50864a68546d3dc98 100644
> --- a/arch/x86/boot/compressed/Makefile
> +++ b/arch/x86/boot/compressed/Makefile
> @@ -38,7 +38,7 @@ KBUILD_CFLAGS += -fno-stack-protector
>  KBUILD_CFLAGS += $(call cc-disable-warning, address-of-packed-member)
>  KBUILD_CFLAGS += $(call cc-disable-warning, gnu)
>  KBUILD_CFLAGS += -Wno-pointer-sign
> -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 += -D__DISABLE_EXPORTS
>  # Disable relocation relaxation in case the link is not PIE.
>
> --
> 2.48.1
>


-- 
Best Regards
Masahiro Yamada
Re: [PATCH 4/4] x86/boot/compressed: Switch to -ffile-prefix-map
Posted by Ingo Molnar 11 months ago
* Masahiro Yamada <masahiroy@kernel.org> wrote:

> Hi X86 maintainers,
> 
> Is it OK to pick up this to kbuild tree?
> Ack is appreciated.

Acked-by: Ingo Molnar <mingo@kernel.org>

Thank you for picking up these!

	Ingo
Re: [PATCH 4/4] x86/boot/compressed: Switch to -ffile-prefix-map
Posted by Masahiro Yamada 11 months ago
On Sun, Mar 16, 2025 at 6:25 AM Ingo Molnar <mingo@kernel.org> wrote:
>
>
> * Masahiro Yamada <masahiroy@kernel.org> wrote:
>
> > Hi X86 maintainers,
> >
> > Is it OK to pick up this to kbuild tree?
> > Ack is appreciated.
>
> Acked-by: Ingo Molnar <mingo@kernel.org>
>
> Thank you for picking up these!
>
>         Ingo

Thanks, I will add your Ack to v2 and apply it.

-- 
Best Regards
Masahiro Yamada