Skip to content

Commit 31a4ebe

Browse files
masahir0ybp3tk0v
authored andcommitted
x86/vdso: Consolidate targets and clean-files
'targets' and 'clean-files' do not need to list the same files because the files listed in 'targets' are cleaned up. Refactor the code. Signed-off-by: Masahiro Yamada <masahiroy@kernel.org> Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de> Link: https://lore.kernel.org/r/20231121235701.239606-2-masahiroy@kernel.org
1 parent 54be6c6 commit 31a4ebe

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

arch/x86/entry/vdso/Makefile

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,8 @@ targets += vdso32/vdso32.lds $(vobjs32-y)
5555

5656
# Build the vDSO image C files and link them in.
5757
vdso_img_objs := $(vdso_img-y:%=vdso-image-%.o)
58-
vdso_img_cfiles := $(vdso_img-y:%=vdso-image-%.c)
59-
vdso_img_sodbg := $(vdso_img-y:%=vdso%.so.dbg)
6058
obj-y += $(vdso_img_objs)
61-
targets += $(vdso_img_cfiles)
62-
targets += $(vdso_img_sodbg) $(vdso_img-y:%=vdso%.so)
59+
targets += $(foreach x, 64 x32 32, vdso-image-$(x).c vdso$(x).so vdso$(x).so.dbg)
6360

6461
CPPFLAGS_vdso.lds += -P -C
6562

@@ -190,5 +187,3 @@ GCOV_PROFILE := n
190187

191188
quiet_cmd_vdso_and_check = VDSO $@
192189
cmd_vdso_and_check = $(cmd_vdso); $(cmd_vdso_check)
193-
194-
clean-files := vdso32.so vdso32.so.dbg vdso64* vdso-image-*.c vdsox32.so*

0 commit comments

Comments
 (0)