Message ID | 162414828517.22205.15691327042917921585.sendpatchset@octo (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | arm64: clean up vdso and vdso32 files | expand |
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
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
--- 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/.