Skip to contentSkip to conversation

arm64: clean up vdso and vdso32 files

PATCH In review Magnus Damm 3 participants 3 messages Jun 20, 2021 – Jun 21, 2021

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm64: clean up vdso and vdso32 files

From: Magnus Damm <[email protected]>

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

---

 arch/arm64/Makefile |    3 +++
 1 file changed, 3 insertions(+)
arch/arm64/Makefile +3 -0
@@ -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
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

#1 lore raw

CC Yamada-san and kbuild

Quoted 18 lines · Magnus Damm

From: Magnus Damm <[email protected]>

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

---

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

arch/arm64/Makefile 2021-06-19 18:45:17.718559303 +0900 archprepare: · line 189

Quoted 9 lines
arch/arm64/Makefile 2021-06-19 18:45:17.718559303 +0900 renamed from arch/arm64/Makefile +3 -0
@@ -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

Signature · 5 lines
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

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
maintainer
#2 lore raw
In reply to Magnus Damm
Quoted 18 lines · Magnus Damm

From: Magnus Damm <[email protected]>

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

---

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

arch/arm64/Makefile archprepare: · line 184

Quoted 4 lines
arch/arm64/Makefile +1 -0
@@ -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...

arch/arm64/Makefile archprepare: · line 186

Quoted 2 lines
arch/arm64/Makefile +2 -0
+	$(if $(CONFIG_COMPAT_VDSO), \
+		$(Q)$(MAKE) $(clean)=arch/arm64/kernel/vdso32)

Can we make this unconditional?

Will

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel