linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] powerpc: minor Makefile simplification through use of cc-ifversion
@ 2009-07-23 18:57 Frans Pop
  2009-07-23 21:31 ` Sam Ravnborg
  0 siblings, 1 reply; 3+ messages in thread
From: Frans Pop @ 2009-07-23 18:57 UTC (permalink / raw)
  To: linuxppc-dev; +Cc: linux-kernel, linux-kbuild

Signed-off-by: Frans Pop <elendil@planet.nl>
---

Change was suggested by Sam Ravnborg; see http://lkml.org/lkml/2009/7/18/15.
Untested.

diff --git a/arch/powerpc/Makefile b/arch/powerpc/Makefile
index bc35f4e..952a396 100644
--- a/arch/powerpc/Makefile
+++ b/arch/powerpc/Makefile
@@ -77,7 +77,7 @@ CPP		= $(CC) -E $(KBUILD_CFLAGS)
 CHECKFLAGS	+= -m$(CONFIG_WORD_SIZE) -D__powerpc__ -D__powerpc$(CONFIG_WORD_SIZE)__
 
 ifeq ($(CONFIG_PPC64),y)
-GCC_BROKEN_VEC	:= $(shell if [ $(call cc-version) -lt 0400 ] ; then echo "y"; fi)
+GCC_BROKEN_VEC	:= $(call cc-ifversion, -lt, 0400, y)
 
 ifeq ($(CONFIG_POWER4_ONLY),y)
 ifeq ($(CONFIG_ALTIVEC),y)

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

* Re: [PATCH] powerpc: minor Makefile simplification through use of cc-ifversion
  2009-07-23 18:57 [PATCH] powerpc: minor Makefile simplification through use of cc-ifversion Frans Pop
@ 2009-07-23 21:31 ` Sam Ravnborg
  2009-07-23 23:52   ` Benjamin Herrenschmidt
  0 siblings, 1 reply; 3+ messages in thread
From: Sam Ravnborg @ 2009-07-23 21:31 UTC (permalink / raw)
  To: Frans Pop; +Cc: linuxppc-dev, linux-kbuild, linux-kernel

On Thu, Jul 23, 2009 at 08:57:18PM +0200, Frans Pop wrote:
> Signed-off-by: Frans Pop <elendil@planet.nl>
Acked-by: Sam Ravnborg <sam@ravnborg.org>

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

* Re: [PATCH] powerpc: minor Makefile simplification through use of cc-ifversion
  2009-07-23 21:31 ` Sam Ravnborg
@ 2009-07-23 23:52   ` Benjamin Herrenschmidt
  0 siblings, 0 replies; 3+ messages in thread
From: Benjamin Herrenschmidt @ 2009-07-23 23:52 UTC (permalink / raw)
  To: Sam Ravnborg; +Cc: linuxppc-dev, Frans Pop, linux-kernel, linux-kbuild

On Thu, 2009-07-23 at 23:31 +0200, Sam Ravnborg wrote:
> On Thu, Jul 23, 2009 at 08:57:18PM +0200, Frans Pop wrote:
> > Signed-off-by: Frans Pop <elendil@planet.nl>
> Acked-by: Sam Ravnborg <sam@ravnborg.org>

Thanks, will include in my next batch.

Cheers,
Ben.

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

end of thread, other threads:[~2009-07-23 23:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-23 18:57 [PATCH] powerpc: minor Makefile simplification through use of cc-ifversion Frans Pop
2009-07-23 21:31 ` Sam Ravnborg
2009-07-23 23:52   ` Benjamin Herrenschmidt

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).