All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] arm64: clean up vdso and vdso32 files
@ 2021-06-20  0:18 Magnus Damm
  2021-06-21  7:43   ` Geert Uytterhoeven
  2021-06-21 10:55 ` Will Deacon
  0 siblings, 2 replies; 4+ messages in thread
From: Magnus Damm @ 2021-06-20  0:18 UTC (permalink / raw)
  To: linux-arm-kernel; +Cc: catalin.marinas, Magnus Damm, will, geert+renesas

From: Magnus Damm <damm+renesas@opensource.se>

Adjust the Makefile to remove vdso and vdso32 files during distclean.

The following vdso files get generated by the defconfig as of v5.13-rc5:
 arch/arm64/kernel/vdso/vdso.lds
 arch/arm64/kernel/vdso/vdso.so
 arch/arm64/kernel/vdso/vdso.so.dbg

Signed-off-by: Magnus Damm <damm+renesas@opensource.se>
---

 arch/arm64/Makefile |    3 +++
 1 file changed, 3 insertions(+)

--- 0001/arch/arm64/Makefile
+++ work/arch/arm64/Makefile	2021-06-19 18:45:17.718559303 +0900
@@ -181,6 +181,9 @@ archprepare:
 # We use MRPROPER_FILES and CLEAN_FILES now
 archclean:
 	$(Q)$(MAKE) $(clean)=$(boot)
+	$(Q)$(MAKE) $(clean)=arch/arm64/kernel/vdso
+	$(if $(CONFIG_COMPAT_VDSO), \
+		$(Q)$(MAKE) $(clean)=arch/arm64/kernel/vdso32)
 
 ifeq ($(KBUILD_EXTMOD),)
 # We need to generate vdso-offsets.h before compiling certain files in kernel/.

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] arm64: clean up vdso and vdso32 files
  2021-06-20  0:18 [PATCH] arm64: clean up vdso and vdso32 files Magnus Damm
@ 2021-06-21  7:43   ` Geert Uytterhoeven
  2021-06-21 10:55 ` Will Deacon
  1 sibling, 0 replies; 4+ messages in thread
From: Geert Uytterhoeven @ 2021-06-21  7:43 UTC (permalink / raw)
  To: Magnus Damm
  Cc: Linux ARM, Catalin Marinas, Will Deacon, Masahiro Yamada, linux-kbuild

CC Yamada-san and kbuild

On Sun, Jun 20, 2021 at 2:57 AM Magnus Damm <damm@opensource.se> wrote:
> From: Magnus Damm <damm+renesas@opensource.se>
>
> Adjust the Makefile to remove vdso and vdso32 files during distclean.
>
> The following vdso files get generated by the defconfig as of v5.13-rc5:
>  arch/arm64/kernel/vdso/vdso.lds
>  arch/arm64/kernel/vdso/vdso.so
>  arch/arm64/kernel/vdso/vdso.so.dbg
>
> Signed-off-by: Magnus Damm <damm+renesas@opensource.se>
> ---
>
>  arch/arm64/Makefile |    3 +++
>  1 file changed, 3 insertions(+)
>
> --- 0001/arch/arm64/Makefile
> +++ work/arch/arm64/Makefile    2021-06-19 18:45:17.718559303 +0900
> @@ -181,6 +181,9 @@ archprepare:
>  # We use MRPROPER_FILES and CLEAN_FILES now
>  archclean:
>         $(Q)$(MAKE) $(clean)=$(boot)
> +       $(Q)$(MAKE) $(clean)=arch/arm64/kernel/vdso
> +       $(if $(CONFIG_COMPAT_VDSO), \
> +               $(Q)$(MAKE) $(clean)=arch/arm64/kernel/vdso32)
>
>  ifeq ($(KBUILD_EXTMOD),)
>  # We need to generate vdso-offsets.h before compiling certain files in kernel/.

Gr{oetje,eeting}s,

                        Geert

-- 
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] arm64: clean up vdso and vdso32 files
@ 2021-06-21  7:43   ` Geert Uytterhoeven
  0 siblings, 0 replies; 4+ messages in thread
From: Geert Uytterhoeven @ 2021-06-21  7:43 UTC (permalink / raw)
  To: Magnus Damm
  Cc: Linux ARM, Catalin Marinas, Will Deacon, Masahiro Yamada, linux-kbuild

CC Yamada-san and kbuild

On Sun, Jun 20, 2021 at 2:57 AM Magnus Damm <damm@opensource.se> wrote:
> From: Magnus Damm <damm+renesas@opensource.se>
>
> Adjust the Makefile to remove vdso and vdso32 files during distclean.
>
> The following vdso files get generated by the defconfig as of v5.13-rc5:
>  arch/arm64/kernel/vdso/vdso.lds
>  arch/arm64/kernel/vdso/vdso.so
>  arch/arm64/kernel/vdso/vdso.so.dbg
>
> Signed-off-by: Magnus Damm <damm+renesas@opensource.se>
> ---
>
>  arch/arm64/Makefile |    3 +++
>  1 file changed, 3 insertions(+)
>
> --- 0001/arch/arm64/Makefile
> +++ work/arch/arm64/Makefile    2021-06-19 18:45:17.718559303 +0900
> @@ -181,6 +181,9 @@ archprepare:
>  # We use MRPROPER_FILES and CLEAN_FILES now
>  archclean:
>         $(Q)$(MAKE) $(clean)=$(boot)
> +       $(Q)$(MAKE) $(clean)=arch/arm64/kernel/vdso
> +       $(if $(CONFIG_COMPAT_VDSO), \
> +               $(Q)$(MAKE) $(clean)=arch/arm64/kernel/vdso32)
>
>  ifeq ($(KBUILD_EXTMOD),)
>  # We need to generate vdso-offsets.h before compiling certain files in kernel/.

Gr{oetje,eeting}s,

                        Geert

-- 
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] arm64: clean up vdso and vdso32 files
  2021-06-20  0:18 [PATCH] arm64: clean up vdso and vdso32 files Magnus Damm
  2021-06-21  7:43   ` Geert Uytterhoeven
@ 2021-06-21 10:55 ` Will Deacon
  1 sibling, 0 replies; 4+ messages in thread
From: Will Deacon @ 2021-06-21 10:55 UTC (permalink / raw)
  To: Magnus Damm; +Cc: linux-arm-kernel, catalin.marinas, geert+renesas

On Sun, Jun 20, 2021 at 09:18:05AM +0900, Magnus Damm wrote:
> From: Magnus Damm <damm+renesas@opensource.se>
> 
> Adjust the Makefile to remove vdso and vdso32 files during distclean.
> 
> The following vdso files get generated by the defconfig as of v5.13-rc5:
>  arch/arm64/kernel/vdso/vdso.lds
>  arch/arm64/kernel/vdso/vdso.so
>  arch/arm64/kernel/vdso/vdso.so.dbg
> 
> Signed-off-by: Magnus Damm <damm+renesas@opensource.se>
> ---
> 
>  arch/arm64/Makefile |    3 +++
>  1 file changed, 3 insertions(+)
> 
> --- 0001/arch/arm64/Makefile
> +++ work/arch/arm64/Makefile	2021-06-19 18:45:17.718559303 +0900
> @@ -181,6 +181,9 @@ archprepare:
>  # We use MRPROPER_FILES and CLEAN_FILES now
>  archclean:
>  	$(Q)$(MAKE) $(clean)=$(boot)
> +	$(Q)$(MAKE) $(clean)=arch/arm64/kernel/vdso

Does this work for out-of-tree builds? Feels like we might need an
$(objtree) or something...

> +	$(if $(CONFIG_COMPAT_VDSO), \
> +		$(Q)$(MAKE) $(clean)=arch/arm64/kernel/vdso32)

Can we make this unconditional?

Will

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-06-21 10:57 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-20  0:18 [PATCH] arm64: clean up vdso and vdso32 files Magnus Damm
2021-06-21  7:43 ` Geert Uytterhoeven
2021-06-21  7:43   ` Geert Uytterhoeven
2021-06-21 10:55 ` Will Deacon

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.