public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Sam Ravnborg <sam@ravnborg.org>
To: Josh Boyer <jwboyer@fedoraproject.org>
Cc: Andy Lutomirski <luto@amacapital.net>,
	"H. Peter Anvin" <hpa@zytor.com>, Michal Marek <mmarek@suse.cz>,
	linux-kbuild@vger.kernel.org,
	"Linux-Kernel@Vger. Kernel. Org" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH 2/2] x86,vdso: Fix vdso_install
Date: Wed, 11 Jun 2014 20:51:19 +0200	[thread overview]
Message-ID: <20140611185119.GA13412@ravnborg.org> (raw)
In-Reply-To: <CA+5PVA5uPj0JiTLXJAtBt9b9e6aEcJh7ApFRbaCAP0=se89GKA@mail.gmail.com>

On Wed, Jun 11, 2014 at 01:23:59PM -0400, Josh Boyer wrote:
> On Wed, Jun 11, 2014 at 12:20 PM, Andy Lutomirski <luto@amacapital.net> wrote:
> > Rather than monkeying with barely-comprehensible static pattern
> > rules, just use an explicit loop.
> >
> > Signed-off-by: Andy Lutomirski <luto@amacapital.net>
> > ---
> >  arch/x86/vdso/Makefile | 20 +++++++-------------
> >  1 file changed, 7 insertions(+), 13 deletions(-)
> >
> > diff --git a/arch/x86/vdso/Makefile b/arch/x86/vdso/Makefile
> > index 9769df0..b1c70cc 100644
> > --- a/arch/x86/vdso/Makefile
> > +++ b/arch/x86/vdso/Makefile
> > @@ -9,11 +9,6 @@ VDSOX32-$(CONFIG_X86_X32_ABI)  := y
> >  VDSO32-$(CONFIG_X86_32)                := y
> >  VDSO32-$(CONFIG_COMPAT)                := y
> >
> > -vdso-install-$(VDSO64-y)       += vdso.so
> > -vdso-install-$(VDSOX32-y)      += vdsox32.so
> > -vdso-install-$(VDSO32-y)       += $(vdso32-images)
> > -
> > -
> >  # files to link into the vdso
> >  vobjs-y := vdso-note.o vclock_gettime.o vgetcpu.o
> >
> > @@ -176,15 +171,14 @@ VDSO_LDFLAGS = -fPIC -shared $(call cc-ldoption, -Wl$(comma)--hash-style=sysv) \
> >  GCOV_PROFILE := n
> >
> >  #
> > -# Install the unstripped copy of vdso*.so listed in $(vdso-install-y).
> > +# Install the unstripped copies of vdso*.so listed in $(vdso-install-y).
> >  #
> > -quiet_cmd_vdso_install = INSTALL $@
> > -      cmd_vdso_install = cp $(obj)/$@.dbg $(MODLIB)/vdso/$@
> > -$(vdso-install-y): %.so: $(obj)/%.so.dbg FORCE
> > -       @mkdir -p $(MODLIB)/vdso
> > -       $(call cmd,vdso_install)
> > +quiet_cmd_vdso_install = INSTALL $(sofile)
> > +      cmd_vdso_install = cp $(obj)/$(sofile).dbg $(MODLIB)/vdso/$(sofile)
> >
> > -PHONY += vdso_install $(vdso-install-y)
> > -vdso_install: $(vdso-install-y)
> > +PHONY += vdso_install
> > +vdso_install: $(vdso_img_sodbg:%=$(obj)/%) FORCE
> > +       @mkdir -p $(MODLIB)/vdso
> > +       @$(foreach sofile,$(vdso_img_sodbg:%.dbg=%),$(call recipe-cmd,vdso_install);)

Can we please fix this in a way where we do not need to add stuff to core kbuild.
If the original approach was used then make took care of the looping
and the foreach part was not needed.


	Sam

  parent reply	other threads:[~2014-06-11 18:51 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-11 14:14 vdso_install target broken post-3.15 Josh Boyer
2014-06-11 15:16 ` Josh Boyer
2014-06-11 15:18   ` H. Peter Anvin
2014-06-11 15:20     ` Josh Boyer
2014-06-11 15:21       ` Andy Lutomirski
2014-06-11 15:24       ` H. Peter Anvin
2014-06-11 15:20   ` Andy Lutomirski
2014-06-11 15:24     ` H. Peter Anvin
2014-06-11 16:20       ` [PATCH 0/2] x86,vdso,kbuild: Fix vdso_install Andy Lutomirski
2014-06-11 16:20         ` [PATCH 1/2] kbuild: Add recipe-cmd, an @-less cmd variant Andy Lutomirski
2014-06-11 16:20         ` [PATCH 2/2] x86,vdso: Fix vdso_install Andy Lutomirski
2014-06-11 17:23           ` Josh Boyer
2014-06-11 17:27             ` H. Peter Anvin
2014-06-11 17:33               ` Josh Boyer
2014-06-11 17:42                 ` Andy Lutomirski
2014-06-11 17:45                   ` Josh Boyer
2014-06-11 18:45                     ` Andy Lutomirski
2014-06-11 18:51             ` Sam Ravnborg [this message]
2014-06-11 19:03               ` Andy Lutomirski
2014-06-11 19:16                 ` Sam Ravnborg
2014-06-11 19:18                   ` Andy Lutomirski
2014-06-11 16:24         ` [PATCH 0/2] x86,vdso,kbuild: " Josh Boyer
2014-06-11 16:36         ` Sam Ravnborg
2014-06-11 16:41           ` Josh Boyer
2014-06-11 18:44             ` Sam Ravnborg
2014-06-11 19:01               ` Andy Lutomirski
2014-06-17 22:54       ` vdso_install target broken post-3.15 Andy Lutomirski
2014-06-18  3:45         ` Andy Lutomirski
2014-06-18  3:48           ` H. Peter Anvin
2014-06-18  4:22             ` Andy Lutomirski
2014-06-18 13:09               ` Josh Boyer
2014-06-18 15:12                 ` Andy Lutomirski

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20140611185119.GA13412@ravnborg.org \
    --to=sam@ravnborg.org \
    --cc=hpa@zytor.com \
    --cc=jwboyer@fedoraproject.org \
    --cc=linux-kbuild@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=luto@amacapital.net \
    --cc=mmarek@suse.cz \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox