linux-um.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] x86/build: clean-up of vdso Makefile
@ 2018-05-15  2:52 Masahiro Yamada
  2018-05-15  2:52 ` [PATCH 2/3] x86/build: vdso: remove unnecessary export in Makefile Masahiro Yamada
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Masahiro Yamada @ 2018-05-15  2:52 UTC (permalink / raw)
  To: Ingo Molnar, Thomas Gleixner, x86
  Cc: Masahiro Yamada, H. Peter Anvin, user-mode-linux-user,
	user-mode-linux-devel, linux-kernel, Richard Weinberger,
	Andy Lutomirski, Jeff Dike




Masahiro Yamada (3):
  x86/build: vdso: remove unused $(vobjs-nox32) in Makefile
  x86/build: vdso: remove unnecessary export in Makefile
  x86/build: vdso: put generated linker scripts to $(obj)/

 arch/x86/entry/vdso/Makefile | 11 ++++-------
 arch/x86/um/vdso/Makefile    |  4 ++--
 2 files changed, 6 insertions(+), 9 deletions(-)

-- 
2.7.4



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

* [PATCH 2/3] x86/build: vdso: remove unnecessary export in Makefile
  2018-05-15  2:52 [PATCH 0/3] x86/build: clean-up of vdso Makefile Masahiro Yamada
@ 2018-05-15  2:52 ` Masahiro Yamada
  2018-05-15  2:52 ` [PATCH 3/3] x86/build: vdso: put generated linker scripts to $(obj)/ Masahiro Yamada
  2018-05-22 20:34 ` [PATCH 0/3] x86/build: clean-up of vdso Makefile Andy Lutomirski
  2 siblings, 0 replies; 4+ messages in thread
From: Masahiro Yamada @ 2018-05-15  2:52 UTC (permalink / raw)
  To: Ingo Molnar, Thomas Gleixner, x86
  Cc: Masahiro Yamada, H. Peter Anvin, user-mode-linux-user,
	user-mode-linux-devel, linux-kernel, Richard Weinberger,
	Andy Lutomirski, Jeff Dike

CPPFLAGS_vdso.lds is assigned and referenced internally in each
Makefile.  No need to export it.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
---

 arch/x86/entry/vdso/Makefile | 2 +-
 arch/x86/um/vdso/Makefile    | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/x86/entry/vdso/Makefile b/arch/x86/entry/vdso/Makefile
index 2988506..690df4c 100644
--- a/arch/x86/entry/vdso/Makefile
+++ b/arch/x86/entry/vdso/Makefile
@@ -44,7 +44,7 @@ obj-y += $(vdso_img_objs)
 targets += $(vdso_img_cfiles)
 targets += $(vdso_img_sodbg) $(vdso_img-y:%=vdso%.so)
 
-export CPPFLAGS_vdso.lds += -P -C
+CPPFLAGS_vdso.lds += -P -C
 
 VDSO_LDFLAGS_vdso.lds = -m64 -Wl,-soname=linux-vdso.so.1 \
 			-Wl,--no-undefined \
diff --git a/arch/x86/um/vdso/Makefile b/arch/x86/um/vdso/Makefile
index 426681e..3af55cd 100644
--- a/arch/x86/um/vdso/Makefile
+++ b/arch/x86/um/vdso/Makefile
@@ -23,7 +23,7 @@ $(obj)/vdso.o: $(obj)/vdso.so
 
 targets += vdso.so vdso.so.dbg vdso.lds $(vobjs-y)
 
-export CPPFLAGS_vdso.lds += -P -C
+CPPFLAGS_vdso.lds += -P -C
 
 VDSO_LDFLAGS_vdso.lds = -m64 -Wl,-soname=linux-vdso.so.1 \
        -Wl,-z,max-page-size=4096 -Wl,-z,common-page-size=4096
-- 
2.7.4



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

* [PATCH 3/3] x86/build: vdso: put generated linker scripts to $(obj)/
  2018-05-15  2:52 [PATCH 0/3] x86/build: clean-up of vdso Makefile Masahiro Yamada
  2018-05-15  2:52 ` [PATCH 2/3] x86/build: vdso: remove unnecessary export in Makefile Masahiro Yamada
@ 2018-05-15  2:52 ` Masahiro Yamada
  2018-05-22 20:34 ` [PATCH 0/3] x86/build: clean-up of vdso Makefile Andy Lutomirski
  2 siblings, 0 replies; 4+ messages in thread
From: Masahiro Yamada @ 2018-05-15  2:52 UTC (permalink / raw)
  To: Ingo Molnar, Thomas Gleixner, x86
  Cc: Masahiro Yamada, H. Peter Anvin, user-mode-linux-user,
	user-mode-linux-devel, linux-kernel, Richard Weinberger,
	Andy Lutomirski, Jeff Dike

Let's put generated files to $(obj)/ rather than $(src)/ although
this is just a matter of taste because both are the same.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
---

 arch/x86/entry/vdso/Makefile | 4 ++--
 arch/x86/um/vdso/Makefile    | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/arch/x86/entry/vdso/Makefile b/arch/x86/entry/vdso/Makefile
index 690df4c..261802b 100644
--- a/arch/x86/entry/vdso/Makefile
+++ b/arch/x86/entry/vdso/Makefile
@@ -51,7 +51,7 @@ VDSO_LDFLAGS_vdso.lds = -m64 -Wl,-soname=linux-vdso.so.1 \
 			-Wl,-z,max-page-size=4096 -Wl,-z,common-page-size=4096 \
 			$(DISABLE_LTO)
 
-$(obj)/vdso64.so.dbg: $(src)/vdso.lds $(vobjs) FORCE
+$(obj)/vdso64.so.dbg: $(obj)/vdso.lds $(vobjs) FORCE
 	$(call if_changed,vdso)
 
 HOST_EXTRACFLAGS += -I$(srctree)/tools/include -I$(srctree)/include/uapi -I$(srctree)/arch/$(SUBARCH)/include/uapi
@@ -119,7 +119,7 @@ $(obj)/%.so: OBJCOPYFLAGS := -S
 $(obj)/%.so: $(obj)/%.so.dbg
 	$(call if_changed,objcopy)
 
-$(obj)/vdsox32.so.dbg: $(src)/vdsox32.lds $(vobjx32s) FORCE
+$(obj)/vdsox32.so.dbg: $(obj)/vdsox32.lds $(vobjx32s) FORCE
 	$(call if_changed,vdso)
 
 CPPFLAGS_vdso32.lds = $(CPPFLAGS_vdso.lds)
diff --git a/arch/x86/um/vdso/Makefile b/arch/x86/um/vdso/Makefile
index 3af55cd..822ccdb 100644
--- a/arch/x86/um/vdso/Makefile
+++ b/arch/x86/um/vdso/Makefile
@@ -30,7 +30,7 @@ VDSO_LDFLAGS_vdso.lds = -m64 -Wl,-soname=linux-vdso.so.1 \
 
 $(obj)/vdso.o: $(src)/vdso.S $(obj)/vdso.so
 
-$(obj)/vdso.so.dbg: $(src)/vdso.lds $(vobjs) FORCE
+$(obj)/vdso.so.dbg: $(obj)/vdso.lds $(vobjs) FORCE
 	$(call if_changed,vdso)
 
 $(obj)/%.so: OBJCOPYFLAGS := -S
-- 
2.7.4



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

* Re: [PATCH 0/3] x86/build: clean-up of vdso Makefile
  2018-05-15  2:52 [PATCH 0/3] x86/build: clean-up of vdso Makefile Masahiro Yamada
  2018-05-15  2:52 ` [PATCH 2/3] x86/build: vdso: remove unnecessary export in Makefile Masahiro Yamada
  2018-05-15  2:52 ` [PATCH 3/3] x86/build: vdso: put generated linker scripts to $(obj)/ Masahiro Yamada
@ 2018-05-22 20:34 ` Andy Lutomirski
  2 siblings, 0 replies; 4+ messages in thread
From: Andy Lutomirski @ 2018-05-22 20:34 UTC (permalink / raw)
  To: Masahiro Yamada
  Cc: Ingo Molnar, Thomas Gleixner, X86 ML, H. Peter Anvin,
	open list:USER-MODE LINUX (UML), user-mode-linux-devel, LKML,
	Richard Weinberger, Jeff Dike

On Mon, May 14, 2018 at 7:52 PM Masahiro Yamada <
yamada.masahiro@socionext.com> wrote:




> Masahiro Yamada (3):
>    x86/build: vdso: remove unused $(vobjs-nox32) in Makefile
>    x86/build: vdso: remove unnecessary export in Makefile
>    x86/build: vdso: put generated linker scripts to $(obj)/

LGTM.

Acked-by: Andy Lutomirski <luto@kernel.org>


>   arch/x86/entry/vdso/Makefile | 11 ++++-------
>   arch/x86/um/vdso/Makefile    |  4 ++--
>   2 files changed, 6 insertions(+), 9 deletions(-)

> --
> 2.7.4


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

end of thread, other threads:[~2018-05-22 20:34 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-05-15  2:52 [PATCH 0/3] x86/build: clean-up of vdso Makefile Masahiro Yamada
2018-05-15  2:52 ` [PATCH 2/3] x86/build: vdso: remove unnecessary export in Makefile Masahiro Yamada
2018-05-15  2:52 ` [PATCH 3/3] x86/build: vdso: put generated linker scripts to $(obj)/ Masahiro Yamada
2018-05-22 20:34 ` [PATCH 0/3] x86/build: clean-up of vdso Makefile Andy Lutomirski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).