On 3/30/24 11:08, Masahiro Yamada wrote: > vdso32.lds and vdso64.lds are generated files. Prefix them with $(obj)/ > instead of $(src)/. > > They are generated as prerequisites of others. Add them to 'targets' > instead of 'extra-y'. > > Signed-off-by: Masahiro Yamada Acked-by: Helge Deller Helge > --- > > arch/parisc/kernel/vdso32/Makefile | 4 ++-- > arch/parisc/kernel/vdso64/Makefile | 4 ++-- > 2 files changed, 4 insertions(+), 4 deletions(-) > > diff --git a/arch/parisc/kernel/vdso32/Makefile b/arch/parisc/kernel/vds= o32/Makefile > index e45d46bf46a2..f15367f77d49 100644 > --- a/arch/parisc/kernel/vdso32/Makefile > +++ b/arch/parisc/kernel/vdso32/Makefile > @@ -19,14 +19,14 @@ KBUILD_CFLAGS +=3D -DBUILD_VDSO -DDISABLE_BRANCH_PRO= FILING > VDSO_LIBGCC :=3D $(shell $(CROSS32CC) -print-libgcc-file-name) > > obj-y +=3D vdso32_wrapper.o > -extra-y +=3D vdso32.lds > +targets +=3D vdso32.lds > CPPFLAGS_vdso32.lds +=3D -P -C # -U$(ARCH) > > $(obj)/vdso32_wrapper.o : $(obj)/vdso32.so FORCE > > # Force dependency (incbin is bad) > # link rule for the .so file, .lds has to be first > -$(obj)/vdso32.so: $(src)/vdso32.lds $(obj-vdso32) $(VDSO_LIBGCC) FORCE > +$(obj)/vdso32.so: $(obj)/vdso32.lds $(obj-vdso32) $(VDSO_LIBGCC) FORCE > $(call if_changed,vdso32ld) > > # assembly rules for the .S files > diff --git a/arch/parisc/kernel/vdso64/Makefile b/arch/parisc/kernel/vds= o64/Makefile > index f3d6045793f4..25eb9a95422c 100644 > --- a/arch/parisc/kernel/vdso64/Makefile > +++ b/arch/parisc/kernel/vdso64/Makefile > @@ -19,14 +19,14 @@ KBUILD_CFLAGS +=3D -DBUILD_VDSO -DDISABLE_BRANCH_PRO= FILING > VDSO_LIBGCC :=3D $(shell $(CC) -print-libgcc-file-name) > > obj-y +=3D vdso64_wrapper.o > -extra-y +=3D vdso64.lds > +targets +=3D vdso64.lds > CPPFLAGS_vdso64.lds +=3D -P -C -U$(ARCH) > > $(obj)/vdso64_wrapper.o : $(obj)/vdso64.so FORCE > > # Force dependency (incbin is bad) > # link rule for the .so file, .lds has to be first > -$(obj)/vdso64.so: $(src)/vdso64.lds $(obj-vdso64) $(VDSO_LIBGCC) FORCE > +$(obj)/vdso64.so: $(obj)/vdso64.lds $(obj-vdso64) $(VDSO_LIBGCC) FORCE > $(call if_changed,vdso64ld) > > # assembly rules for the .S files