Skip to content

Commit 017f5fb

Browse files
Andrew Delgadillowilldeacon
authored andcommitted
arm64: clean vdso & vdso32 files
commit a5b8ca9 ("arm64: do not descend to vdso directories twice") changes the cleaning behavior of arm64's vdso files, in that vdso.lds, vdso.so, and vdso.so.dbg are not removed upon a 'make clean/mrproper': $ make defconfig ARCH=arm64 $ make ARCH=arm64 $ make mrproper ARCH=arm64 $ git clean -nxdf Would remove arch/arm64/kernel/vdso/vdso.lds Would remove arch/arm64/kernel/vdso/vdso.so Would remove arch/arm64/kernel/vdso/vdso.so.dbg To remedy this, manually descend into arch/arm64/kernel/vdso upon cleaning. After this commit: $ make defconfig ARCH=arm64 $ make ARCH=arm64 $ make mrproper ARCH=arm64 $ git clean -nxdf <empty> Similar results are obtained for the vdso32 equivalent. Signed-off-by: Andrew Delgadillo <[email protected]> Cc: [email protected] Fixes: a5b8ca9 ("arm64: do not descend to vdso directories twice") Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Will Deacon <[email protected]>
1 parent 0c32706 commit 017f5fb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

arch/arm64/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,8 @@ endif
183183
# We use MRPROPER_FILES and CLEAN_FILES now
184184
archclean:
185185
$(Q)$(MAKE) $(clean)=$(boot)
186+
$(Q)$(MAKE) $(clean)=arch/arm64/kernel/vdso
187+
$(Q)$(MAKE) $(clean)=arch/arm64/kernel/vdso32
186188

187189
ifeq ($(KBUILD_EXTMOD),)
188190
# We need to generate vdso-offsets.h before compiling certain files in kernel/.

0 commit comments

Comments
 (0)