diff mbox

[i-g-t] Demos/Android.mk: dont build intel_sprite_on

Message ID 1418379517-3664-1-git-send-email-tim.gore@intel.com (mailing list archive)
State New, archived
Headers show

Commit Message

tim.gore@intel.com Dec. 12, 2014, 10:18 a.m. UTC
From: Tim Gore <tim.gore@intel.com>

intel_sprite_on wont build on Android, due to use
of a particular API that has changed in Gmin

Signed-off-by: Tim Gore <tim.gore@intel.com>
---
 demos/Android.mk | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

Comments

Thomas Wood Dec. 12, 2014, 11:43 a.m. UTC | #1
On 12 December 2014 at 10:18,  <tim.gore@intel.com> wrote:
> From: Tim Gore <tim.gore@intel.com>
>
> intel_sprite_on wont build on Android, due to use
> of a particular API that has changed in Gmin
>
> Signed-off-by: Tim Gore <tim.gore@intel.com>
> ---
>  demos/Android.mk | 6 ++++--
>  1 file changed, 4 insertions(+), 2 deletions(-)
>
> diff --git a/demos/Android.mk b/demos/Android.mk
> index 6227e06..be7f3c2 100644
> --- a/demos/Android.mk
> +++ b/demos/Android.mk
> @@ -4,11 +4,13 @@ LOCAL_PATH := $(call my-dir)
>
>  include $(CLEAR_VARS)
>
> -LOCAL_SRC_FILES := intel_sprite_on.c
> +# This demo wont build on android (from Gmin on).
> +#LOCAL_SRC_FILES := intel_sprite_on.c
> +
>
>  LOCAL_CFLAGS += -DHAVE_TERMIOS_H
>  LOCAL_CFLAGS += -DANDROID -UNDEBUG
> -LOCAL_CFLAGS += -std=c99
> +LOCAL_CFLAGS += -std=gnu99

I think this change should have been in your previous patch
("Android.mk: replace std=c99 with std=gnu99")?


>  # Excessive complaining for established cases. Rely on the Linux version warnings.
>  LOCAL_CFLAGS += -Wno-sign-compare
>
> --
> 2.1.3
>
Daniel Vetter Dec. 15, 2014, 2:41 p.m. UTC | #2
On Fri, Dec 12, 2014 at 11:43:55AM +0000, Thomas Wood wrote:
> On 12 December 2014 at 10:18,  <tim.gore@intel.com> wrote:
> > From: Tim Gore <tim.gore@intel.com>
> >
> > intel_sprite_on wont build on Android, due to use
> > of a particular API that has changed in Gmin
> >
> > Signed-off-by: Tim Gore <tim.gore@intel.com>
> > ---
> >  demos/Android.mk | 6 ++++--
> >  1 file changed, 4 insertions(+), 2 deletions(-)
> >
> > diff --git a/demos/Android.mk b/demos/Android.mk
> > index 6227e06..be7f3c2 100644
> > --- a/demos/Android.mk
> > +++ b/demos/Android.mk
> > @@ -4,11 +4,13 @@ LOCAL_PATH := $(call my-dir)
> >
> >  include $(CLEAR_VARS)
> >
> > -LOCAL_SRC_FILES := intel_sprite_on.c
> > +# This demo wont build on android (from Gmin on).
> > +#LOCAL_SRC_FILES := intel_sprite_on.c
> > +
> >
> >  LOCAL_CFLAGS += -DHAVE_TERMIOS_H
> >  LOCAL_CFLAGS += -DANDROID -UNDEBUG
> > -LOCAL_CFLAGS += -std=c99
> > +LOCAL_CFLAGS += -std=gnu99
> 
> I think this change should have been in your previous patch
> ("Android.mk: replace std=c99 with std=gnu99")?

btw intel_sprite_on has been contributed by your team (Armin Reese), so
not sure why you want to disable it. Have you checked with display folks
whether they don't need it?
-Daniel

> 
> 
> >  # Excessive complaining for established cases. Rely on the Linux version warnings.
> >  LOCAL_CFLAGS += -Wno-sign-compare
> >
> > --
> > 2.1.3
> >
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/intel-gfx
tim.gore@intel.com Dec. 15, 2014, 2:51 p.m. UTC | #3
> -----Original Message-----
> From: Daniel Vetter [mailto:daniel.vetter@ffwll.ch] On Behalf Of Daniel
> Vetter
> Sent: Monday, December 15, 2014 2:41 PM
> To: Wood, Thomas
> Cc: Gore, Tim; Intel Graphics Development
> Subject: Re: [Intel-gfx] [PATCH i-g-t] Demos/Android.mk: dont build
> intel_sprite_on
> 
> On Fri, Dec 12, 2014 at 11:43:55AM +0000, Thomas Wood wrote:
> > On 12 December 2014 at 10:18,  <tim.gore@intel.com> wrote:
> > > From: Tim Gore <tim.gore@intel.com>
> > >
> > > intel_sprite_on wont build on Android, due to use of a particular
> > > API that has changed in Gmin
> > >
> > > Signed-off-by: Tim Gore <tim.gore@intel.com>
> > > ---
> > >  demos/Android.mk | 6 ++++--
> > >  1 file changed, 4 insertions(+), 2 deletions(-)
> > >
> > > diff --git a/demos/Android.mk b/demos/Android.mk index
> > > 6227e06..be7f3c2 100644
> > > --- a/demos/Android.mk
> > > +++ b/demos/Android.mk
> > > @@ -4,11 +4,13 @@ LOCAL_PATH := $(call my-dir)
> > >
> > >  include $(CLEAR_VARS)
> > >
> > > -LOCAL_SRC_FILES := intel_sprite_on.c
> > > +# This demo wont build on android (from Gmin on).
> > > +#LOCAL_SRC_FILES := intel_sprite_on.c
> > > +
> > >
> > >  LOCAL_CFLAGS += -DHAVE_TERMIOS_H
> > >  LOCAL_CFLAGS += -DANDROID -UNDEBUG
> > > -LOCAL_CFLAGS += -std=c99
> > > +LOCAL_CFLAGS += -std=gnu99
> >
> > I think this change should have been in your previous patch
> > ("Android.mk: replace std=c99 with std=gnu99")?
> 
> btw intel_sprite_on has been contributed by your team (Armin Reese), so
> not sure why you want to disable it. Have you checked with display folks
> whether they don't need it?
> -Daniel
> 

Unfortunately this test wont build, out of the box, for Android. I can patch 
This locally but I don't think the patch is suitable for upstream.

  Tim
> >
> >
> > >  # Excessive complaining for established cases. Rely on the Linux version
> warnings.
> > >  LOCAL_CFLAGS += -Wno-sign-compare
> > >
> > > --
> > > 2.1.3
> > >
> > _______________________________________________
> > Intel-gfx mailing list
> > Intel-gfx@lists.freedesktop.org
> > http://lists.freedesktop.org/mailman/listinfo/intel-gfx
> 
> --
> Daniel Vetter
> Software Engineer, Intel Corporation
> +41 (0) 79 365 57 48 - http://blog.ffwll.ch
Daniel Vetter Dec. 15, 2014, 3:55 p.m. UTC | #4
On Mon, Dec 15, 2014 at 02:51:03PM +0000, Gore, Tim wrote:
> 
> 
> > -----Original Message-----
> > From: Daniel Vetter [mailto:daniel.vetter@ffwll.ch] On Behalf Of Daniel
> > Vetter
> > Sent: Monday, December 15, 2014 2:41 PM
> > To: Wood, Thomas
> > Cc: Gore, Tim; Intel Graphics Development
> > Subject: Re: [Intel-gfx] [PATCH i-g-t] Demos/Android.mk: dont build
> > intel_sprite_on
> > 
> > On Fri, Dec 12, 2014 at 11:43:55AM +0000, Thomas Wood wrote:
> > > On 12 December 2014 at 10:18,  <tim.gore@intel.com> wrote:
> > > > From: Tim Gore <tim.gore@intel.com>
> > > >
> > > > intel_sprite_on wont build on Android, due to use of a particular
> > > > API that has changed in Gmin
> > > >
> > > > Signed-off-by: Tim Gore <tim.gore@intel.com>
> > > > ---
> > > >  demos/Android.mk | 6 ++++--
> > > >  1 file changed, 4 insertions(+), 2 deletions(-)
> > > >
> > > > diff --git a/demos/Android.mk b/demos/Android.mk index
> > > > 6227e06..be7f3c2 100644
> > > > --- a/demos/Android.mk
> > > > +++ b/demos/Android.mk
> > > > @@ -4,11 +4,13 @@ LOCAL_PATH := $(call my-dir)
> > > >
> > > >  include $(CLEAR_VARS)
> > > >
> > > > -LOCAL_SRC_FILES := intel_sprite_on.c
> > > > +# This demo wont build on android (from Gmin on).
> > > > +#LOCAL_SRC_FILES := intel_sprite_on.c
> > > > +
> > > >
> > > >  LOCAL_CFLAGS += -DHAVE_TERMIOS_H
> > > >  LOCAL_CFLAGS += -DANDROID -UNDEBUG
> > > > -LOCAL_CFLAGS += -std=c99
> > > > +LOCAL_CFLAGS += -std=gnu99
> > >
> > > I think this change should have been in your previous patch
> > > ("Android.mk: replace std=c99 with std=gnu99")?
> > 
> > btw intel_sprite_on has been contributed by your team (Armin Reese), so
> > not sure why you want to disable it. Have you checked with display folks
> > whether they don't need it?
> > -Daniel
> > 
> 
> Unfortunately this test wont build, out of the box, for Android. I can patch 
> This locally but I don't think the patch is suitable for upstream.

I'm still confused ... why does it not build on Android? I've thought we
have this now all worked out wrt igt build issues. Imo better to address
whatever's upsetting your builder than to just disable stuff.
-Daniel
diff mbox

Patch

diff --git a/demos/Android.mk b/demos/Android.mk
index 6227e06..be7f3c2 100644
--- a/demos/Android.mk
+++ b/demos/Android.mk
@@ -4,11 +4,13 @@  LOCAL_PATH := $(call my-dir)
 
 include $(CLEAR_VARS)
 
-LOCAL_SRC_FILES := intel_sprite_on.c
+# This demo wont build on android (from Gmin on). 
+#LOCAL_SRC_FILES := intel_sprite_on.c
+
 
 LOCAL_CFLAGS += -DHAVE_TERMIOS_H
 LOCAL_CFLAGS += -DANDROID -UNDEBUG
-LOCAL_CFLAGS += -std=c99
+LOCAL_CFLAGS += -std=gnu99
 # Excessive complaining for established cases. Rely on the Linux version warnings.
 LOCAL_CFLAGS += -Wno-sign-compare