mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 1/3] sparc: vdso: clean up build artifacts in arch/sparc/vdso/
@ 2023-12-03 10:14 Masahiro Yamada
  2023-12-03 10:14 ` [PATCH 2/3] sparc: vdso: simplify obj-y addition Masahiro Yamada
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Masahiro Yamada @ 2023-12-03 10:14 UTC (permalink / raw)
  To: linux-kbuild; +Cc: Masahiro Yamada, David S. Miller, linux-kernel, sparclinux

Currently, vdso-image-*.c, vdso*.so, vdso*.so.dbg are not cleaned
because 'make clean' does not include include/config/auto.conf,
resulting in $(vdso_img-y) being empty.

Add the build artifacts to 'targets' unconditionally.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
---

 arch/sparc/vdso/Makefile | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/arch/sparc/vdso/Makefile b/arch/sparc/vdso/Makefile
index d08c3a0443f3..eb52d0666ffc 100644
--- a/arch/sparc/vdso/Makefile
+++ b/arch/sparc/vdso/Makefile
@@ -24,11 +24,8 @@ targets += vdso.lds $(vobjs-y)
 
 # Build the vDSO image C files and link them in.
 vdso_img_objs := $(vdso_img-y:%=vdso-image-%.o)
-vdso_img_cfiles := $(vdso_img-y:%=vdso-image-%.c)
-vdso_img_sodbg := $(vdso_img-y:%=vdso%.so.dbg)
 obj-y += $(vdso_img_objs)
-targets += $(vdso_img_cfiles)
-targets += $(vdso_img_sodbg) $(vdso_img-y:%=vdso%.so)
+targets += $(foreach x, 32 64, vdso-image-$(x).c vdso$(x).so vdso$(x).so.dbg)
 
 CPPFLAGS_vdso.lds += -P -C
 
-- 
2.40.1


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

end of thread, other threads:[~2023-12-10  6:36 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-03 10:14 [PATCH 1/3] sparc: vdso: clean up build artifacts in arch/sparc/vdso/ Masahiro Yamada
2023-12-03 10:14 ` [PATCH 2/3] sparc: vdso: simplify obj-y addition Masahiro Yamada
2023-12-03 10:14 ` [PATCH 3/3] sparc: vdso: use $(addprefix ) instead of $(foreach ) Masahiro Yamada
2023-12-03 19:19 ` [PATCH 1/3] sparc: vdso: clean up build artifacts in arch/sparc/vdso/ Sam Ravnborg
2023-12-10  6:35   ` Masahiro Yamada

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®