diff mbox

linux-gen: makefile: fix out of tree build

Message ID 20170619082519.13041-1-petri.savolainen@linaro.org
State Accepted
Commit 5dd7d9ed05ee228406cc3c0ae6cd9caa20a71f08
Headers show

Commit Message

Petri Savolainen June 19, 2017, 8:25 a.m. UTC
Generated files need $(top_builddir) instead of $(top_srcdir)

Fixes bug https://bugs.linaro.org/show_bug.cgi?id=3052

Signed-off-by: Petri Savolainen <petri.savolainen@linaro.org>

---
 platform/Makefile.inc | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

-- 
2.13.0

Comments

Bill Fischofer June 19, 2017, 10:30 a.m. UTC | #1
On Mon, Jun 19, 2017 at 3:25 AM, Petri Savolainen
<petri.savolainen@linaro.org> wrote:
> Generated files need $(top_builddir) instead of $(top_srcdir)

>

> Fixes bug https://bugs.linaro.org/show_bug.cgi?id=3052

>

> Signed-off-by: Petri Savolainen <petri.savolainen@linaro.org>

> ---

>  platform/Makefile.inc | 6 +++---

>  1 file changed, 3 insertions(+), 3 deletions(-)

>

> diff --git a/platform/Makefile.inc b/platform/Makefile.inc

> index 9844a58a..1903d92d 100644

> --- a/platform/Makefile.inc

> +++ b/platform/Makefile.inc

> @@ -29,7 +29,6 @@ odpapispecinclude_HEADERS = \

>                   $(top_srcdir)/include/odp/api/spec/cpumask.h \

>                   $(top_srcdir)/include/odp/api/spec/crypto.h \

>                   $(top_srcdir)/include/odp/api/spec/debug.h \

> -                 $(top_srcdir)/include/odp/api/spec/deprecated.h \

>                   $(top_srcdir)/include/odp/api/spec/errno.h \

>                   $(top_srcdir)/include/odp/api/spec/event.h \

>                   $(top_srcdir)/include/odp/api/spec/hash.h \

> @@ -58,8 +57,9 @@ odpapispecinclude_HEADERS = \

>                   $(top_srcdir)/include/odp/api/spec/ticketlock.h \

>                   $(top_srcdir)/include/odp/api/spec/time.h \

>                   $(top_srcdir)/include/odp/api/spec/timer.h \

> -                 $(top_builddir)/include/odp/api/spec/version.h \

> -                 $(top_srcdir)/include/odp/api/spec/traffic_mngr.h

> +                 $(top_srcdir)/include/odp/api/spec/traffic_mngr.h \

> +                 $(top_builddir)/include/odp/api/spec/deprecated.h \

> +                 $(top_builddir)/include/odp/api/spec/version.h


Shouldn't this list be maintained in alphabetical order?

>

>  odpapiabidefaultincludedir= $(includedir)/odp/arch/default/api/abi

>  odpapiabidefaultinclude_HEADERS = \

> --

> 2.13.0

>
Maxim Uvarov June 19, 2017, 11:21 a.m. UTC | #2
it should. top chunk is good, but chunk bellow is not.

On 19 June 2017 at 13:30, Bill Fischofer <bill.fischofer@linaro.org> wrote:

> On Mon, Jun 19, 2017 at 3:25 AM, Petri Savolainen

> <petri.savolainen@linaro.org> wrote:

> > Generated files need $(top_builddir) instead of $(top_srcdir)

> >

> > Fixes bug https://bugs.linaro.org/show_bug.cgi?id=3052

> >

> > Signed-off-by: Petri Savolainen <petri.savolainen@linaro.org>

> > ---

> >  platform/Makefile.inc | 6 +++---

> >  1 file changed, 3 insertions(+), 3 deletions(-)

> >

> > diff --git a/platform/Makefile.inc b/platform/Makefile.inc

> > index 9844a58a..1903d92d 100644

> > --- a/platform/Makefile.inc

> > +++ b/platform/Makefile.inc

> > @@ -29,7 +29,6 @@ odpapispecinclude_HEADERS = \

> >                   $(top_srcdir)/include/odp/api/spec/cpumask.h \

> >                   $(top_srcdir)/include/odp/api/spec/crypto.h \

> >                   $(top_srcdir)/include/odp/api/spec/debug.h \

> > -                 $(top_srcdir)/include/odp/api/spec/deprecated.h \

> >                   $(top_srcdir)/include/odp/api/spec/errno.h \

> >                   $(top_srcdir)/include/odp/api/spec/event.h \

> >                   $(top_srcdir)/include/odp/api/spec/hash.h \

> > @@ -58,8 +57,9 @@ odpapispecinclude_HEADERS = \

> >                   $(top_srcdir)/include/odp/api/spec/ticketlock.h \

> >                   $(top_srcdir)/include/odp/api/spec/time.h \

> >                   $(top_srcdir)/include/odp/api/spec/timer.h \

> > -                 $(top_builddir)/include/odp/api/spec/version.h \

> > -                 $(top_srcdir)/include/odp/api/spec/traffic_mngr.h

> > +                 $(top_srcdir)/include/odp/api/spec/traffic_mngr.h \

> > +                 $(top_builddir)/include/odp/api/spec/deprecated.h \

> > +                 $(top_builddir)/include/odp/api/spec/version.h

>

> Shouldn't this list be maintained in alphabetical order?

>

> >

> >  odpapiabidefaultincludedir= $(includedir)/odp/arch/default/api/abi

> >  odpapiabidefaultinclude_HEADERS = \

> > --

> > 2.13.0

> >

>
Savolainen, Petri (Nokia - FI/Espoo) June 19, 2017, 11:58 a.m. UTC | #3
> -----Original Message-----

> From: Bill Fischofer [mailto:bill.fischofer@linaro.org]

> Sent: Monday, June 19, 2017 1:31 PM

> To: Petri Savolainen <petri.savolainen@linaro.org>

> Cc: lng-odp-forward <lng-odp@lists.linaro.org>

> Subject: Re: [lng-odp] [PATCH] linux-gen: makefile: fix out of tree build

> 

> On Mon, Jun 19, 2017 at 3:25 AM, Petri Savolainen

> <petri.savolainen@linaro.org> wrote:

> > Generated files need $(top_builddir) instead of $(top_srcdir)

> >

> > Fixes bug https://bugs.linaro.org/show_bug.cgi?id=3052

> >

> > Signed-off-by: Petri Savolainen <petri.savolainen@linaro.org>

> > ---

> >  platform/Makefile.inc | 6 +++---

> >  1 file changed, 3 insertions(+), 3 deletions(-)

> >

> > diff --git a/platform/Makefile.inc b/platform/Makefile.inc

> > index 9844a58a..1903d92d 100644

> > --- a/platform/Makefile.inc

> > +++ b/platform/Makefile.inc

> > @@ -29,7 +29,6 @@ odpapispecinclude_HEADERS = \

> >                   $(top_srcdir)/include/odp/api/spec/cpumask.h \

> >                   $(top_srcdir)/include/odp/api/spec/crypto.h \

> >                   $(top_srcdir)/include/odp/api/spec/debug.h \

> > -                 $(top_srcdir)/include/odp/api/spec/deprecated.h \

> >                   $(top_srcdir)/include/odp/api/spec/errno.h \

> >                   $(top_srcdir)/include/odp/api/spec/event.h \

> >                   $(top_srcdir)/include/odp/api/spec/hash.h \

> > @@ -58,8 +57,9 @@ odpapispecinclude_HEADERS = \

> >                   $(top_srcdir)/include/odp/api/spec/ticketlock.h \

> >                   $(top_srcdir)/include/odp/api/spec/time.h \

> >                   $(top_srcdir)/include/odp/api/spec/timer.h \

> > -                 $(top_builddir)/include/odp/api/spec/version.h \

> > -                 $(top_srcdir)/include/odp/api/spec/traffic_mngr.h

> > +                 $(top_srcdir)/include/odp/api/spec/traffic_mngr.h \

> > +                 $(top_builddir)/include/odp/api/spec/deprecated.h \

> > +                 $(top_builddir)/include/odp/api/spec/version.h

> 

> Shouldn't this list be maintained in alphabetical order?


It's ordered first by path, then by file name in alphabetical order. First all $(top_srcdir), then all $(top_builddir). The bug was in not using $(top_builddir). This order highlights that the path matters.

-Petri
Maxim Uvarov June 19, 2017, 1:12 p.m. UTC | #4
top_builddir alphabetical before top_srcdir. But here I'm ok with current
change.

Bill, review + ?

Maxim.

On 19 June 2017 at 14:58, Savolainen, Petri (Nokia - FI/Espoo) <
petri.savolainen@nokia.com> wrote:

>

>

> > -----Original Message-----

> > From: Bill Fischofer [mailto:bill.fischofer@linaro.org]

> > Sent: Monday, June 19, 2017 1:31 PM

> > To: Petri Savolainen <petri.savolainen@linaro.org>

> > Cc: lng-odp-forward <lng-odp@lists.linaro.org>

> > Subject: Re: [lng-odp] [PATCH] linux-gen: makefile: fix out of tree build

> >

> > On Mon, Jun 19, 2017 at 3:25 AM, Petri Savolainen

> > <petri.savolainen@linaro.org> wrote:

> > > Generated files need $(top_builddir) instead of $(top_srcdir)

> > >

> > > Fixes bug https://bugs.linaro.org/show_bug.cgi?id=3052

> > >

> > > Signed-off-by: Petri Savolainen <petri.savolainen@linaro.org>

> > > ---

> > >  platform/Makefile.inc | 6 +++---

> > >  1 file changed, 3 insertions(+), 3 deletions(-)

> > >

> > > diff --git a/platform/Makefile.inc b/platform/Makefile.inc

> > > index 9844a58a..1903d92d 100644

> > > --- a/platform/Makefile.inc

> > > +++ b/platform/Makefile.inc

> > > @@ -29,7 +29,6 @@ odpapispecinclude_HEADERS = \

> > >                   $(top_srcdir)/include/odp/api/spec/cpumask.h \

> > >                   $(top_srcdir)/include/odp/api/spec/crypto.h \

> > >                   $(top_srcdir)/include/odp/api/spec/debug.h \

> > > -                 $(top_srcdir)/include/odp/api/spec/deprecated.h \

> > >                   $(top_srcdir)/include/odp/api/spec/errno.h \

> > >                   $(top_srcdir)/include/odp/api/spec/event.h \

> > >                   $(top_srcdir)/include/odp/api/spec/hash.h \

> > > @@ -58,8 +57,9 @@ odpapispecinclude_HEADERS = \

> > >                   $(top_srcdir)/include/odp/api/spec/ticketlock.h \

> > >                   $(top_srcdir)/include/odp/api/spec/time.h \

> > >                   $(top_srcdir)/include/odp/api/spec/timer.h \

> > > -                 $(top_builddir)/include/odp/api/spec/version.h \

> > > -                 $(top_srcdir)/include/odp/api/spec/traffic_mngr.h

> > > +                 $(top_srcdir)/include/odp/api/spec/traffic_mngr.h \

> > > +                 $(top_builddir)/include/odp/api/spec/deprecated.h \

> > > +                 $(top_builddir)/include/odp/api/spec/version.h

> >

> > Shouldn't this list be maintained in alphabetical order?

>

> It's ordered first by path, then by file name in alphabetical order. First

> all $(top_srcdir), then all $(top_builddir). The bug was in not using

> $(top_builddir). This order highlights that the path matters.

>

> -Petri

>

>

>
Bill Fischofer June 19, 2017, 2:12 p.m. UTC | #5
For this patch:

Reviewed-by: Bill Fischofer <bill.fischofer@linaro.org>


On Mon, Jun 19, 2017 at 8:12 AM, Maxim Uvarov <maxim.uvarov@linaro.org> wrote:
> top_builddir alphabetical before top_srcdir. But here I'm ok with current

> change.

>

> Bill, review + ?

>

> Maxim.

>

> On 19 June 2017 at 14:58, Savolainen, Petri (Nokia - FI/Espoo)

> <petri.savolainen@nokia.com> wrote:

>>

>>

>>

>> > -----Original Message-----

>> > From: Bill Fischofer [mailto:bill.fischofer@linaro.org]

>> > Sent: Monday, June 19, 2017 1:31 PM

>> > To: Petri Savolainen <petri.savolainen@linaro.org>

>> > Cc: lng-odp-forward <lng-odp@lists.linaro.org>

>> > Subject: Re: [lng-odp] [PATCH] linux-gen: makefile: fix out of tree

>> > build

>> >

>> > On Mon, Jun 19, 2017 at 3:25 AM, Petri Savolainen

>> > <petri.savolainen@linaro.org> wrote:

>> > > Generated files need $(top_builddir) instead of $(top_srcdir)

>> > >

>> > > Fixes bug https://bugs.linaro.org/show_bug.cgi?id=3052

>> > >

>> > > Signed-off-by: Petri Savolainen <petri.savolainen@linaro.org>

>> > > ---

>> > >  platform/Makefile.inc | 6 +++---

>> > >  1 file changed, 3 insertions(+), 3 deletions(-)

>> > >

>> > > diff --git a/platform/Makefile.inc b/platform/Makefile.inc

>> > > index 9844a58a..1903d92d 100644

>> > > --- a/platform/Makefile.inc

>> > > +++ b/platform/Makefile.inc

>> > > @@ -29,7 +29,6 @@ odpapispecinclude_HEADERS = \

>> > >                   $(top_srcdir)/include/odp/api/spec/cpumask.h \

>> > >                   $(top_srcdir)/include/odp/api/spec/crypto.h \

>> > >                   $(top_srcdir)/include/odp/api/spec/debug.h \

>> > > -                 $(top_srcdir)/include/odp/api/spec/deprecated.h \

>> > >                   $(top_srcdir)/include/odp/api/spec/errno.h \

>> > >                   $(top_srcdir)/include/odp/api/spec/event.h \

>> > >                   $(top_srcdir)/include/odp/api/spec/hash.h \

>> > > @@ -58,8 +57,9 @@ odpapispecinclude_HEADERS = \

>> > >                   $(top_srcdir)/include/odp/api/spec/ticketlock.h \

>> > >                   $(top_srcdir)/include/odp/api/spec/time.h \

>> > >                   $(top_srcdir)/include/odp/api/spec/timer.h \

>> > > -                 $(top_builddir)/include/odp/api/spec/version.h \

>> > > -                 $(top_srcdir)/include/odp/api/spec/traffic_mngr.h

>> > > +                 $(top_srcdir)/include/odp/api/spec/traffic_mngr.h \

>> > > +                 $(top_builddir)/include/odp/api/spec/deprecated.h \

>> > > +                 $(top_builddir)/include/odp/api/spec/version.h

>> >

>> > Shouldn't this list be maintained in alphabetical order?

>>

>> It's ordered first by path, then by file name in alphabetical order. First

>> all $(top_srcdir), then all $(top_builddir). The bug was in not using

>> $(top_builddir). This order highlights that the path matters.

>>

>> -Petri

>>

>>

>
Maxim Uvarov June 19, 2017, 2:16 p.m. UTC | #6
Merged.

On 19 June 2017 at 17:12, Bill Fischofer <bill.fischofer@linaro.org> wrote:

> For this patch:

>

> Reviewed-by: Bill Fischofer <bill.fischofer@linaro.org>

>

> On Mon, Jun 19, 2017 at 8:12 AM, Maxim Uvarov <maxim.uvarov@linaro.org>

> wrote:

> > top_builddir alphabetical before top_srcdir. But here I'm ok with current

> > change.

> >

> > Bill, review + ?

> >

> > Maxim.

> >

> > On 19 June 2017 at 14:58, Savolainen, Petri (Nokia - FI/Espoo)

> > <petri.savolainen@nokia.com> wrote:

> >>

> >>

> >>

> >> > -----Original Message-----

> >> > From: Bill Fischofer [mailto:bill.fischofer@linaro.org]

> >> > Sent: Monday, June 19, 2017 1:31 PM

> >> > To: Petri Savolainen <petri.savolainen@linaro.org>

> >> > Cc: lng-odp-forward <lng-odp@lists.linaro.org>

> >> > Subject: Re: [lng-odp] [PATCH] linux-gen: makefile: fix out of tree

> >> > build

> >> >

> >> > On Mon, Jun 19, 2017 at 3:25 AM, Petri Savolainen

> >> > <petri.savolainen@linaro.org> wrote:

> >> > > Generated files need $(top_builddir) instead of $(top_srcdir)

> >> > >

> >> > > Fixes bug https://bugs.linaro.org/show_bug.cgi?id=3052

> >> > >

> >> > > Signed-off-by: Petri Savolainen <petri.savolainen@linaro.org>

> >> > > ---

> >> > >  platform/Makefile.inc | 6 +++---

> >> > >  1 file changed, 3 insertions(+), 3 deletions(-)

> >> > >

> >> > > diff --git a/platform/Makefile.inc b/platform/Makefile.inc

> >> > > index 9844a58a..1903d92d 100644

> >> > > --- a/platform/Makefile.inc

> >> > > +++ b/platform/Makefile.inc

> >> > > @@ -29,7 +29,6 @@ odpapispecinclude_HEADERS = \

> >> > >                   $(top_srcdir)/include/odp/api/spec/cpumask.h \

> >> > >                   $(top_srcdir)/include/odp/api/spec/crypto.h \

> >> > >                   $(top_srcdir)/include/odp/api/spec/debug.h \

> >> > > -                 $(top_srcdir)/include/odp/api/spec/deprecated.h \

> >> > >                   $(top_srcdir)/include/odp/api/spec/errno.h \

> >> > >                   $(top_srcdir)/include/odp/api/spec/event.h \

> >> > >                   $(top_srcdir)/include/odp/api/spec/hash.h \

> >> > > @@ -58,8 +57,9 @@ odpapispecinclude_HEADERS = \

> >> > >                   $(top_srcdir)/include/odp/api/spec/ticketlock.h \

> >> > >                   $(top_srcdir)/include/odp/api/spec/time.h \

> >> > >                   $(top_srcdir)/include/odp/api/spec/timer.h \

> >> > > -                 $(top_builddir)/include/odp/api/spec/version.h \

> >> > > -                 $(top_srcdir)/include/odp/api/spec/traffic_mngr.h

> >> > > +                 $(top_srcdir)/include/odp/api/spec/traffic_mngr.h

> \

> >> > > +                 $(top_builddir)/include/odp/api/spec/deprecated.h

> \

> >> > > +                 $(top_builddir)/include/odp/api/spec/version.h

> >> >

> >> > Shouldn't this list be maintained in alphabetical order?

> >>

> >> It's ordered first by path, then by file name in alphabetical order.

> First

> >> all $(top_srcdir), then all $(top_builddir). The bug was in not using

> >> $(top_builddir). This order highlights that the path matters.

> >>

> >> -Petri

> >>

> >>

> >

>
Maxim Uvarov June 19, 2017, 2:40 p.m. UTC | #7
Patch breaks native build. I had to test it before apply :(

On 19 June 2017 at 17:16, Maxim Uvarov <maxim.uvarov@linaro.org> wrote:

> Merged.

>

> On 19 June 2017 at 17:12, Bill Fischofer <bill.fischofer@linaro.org>

> wrote:

>

>> For this patch:

>>

>> Reviewed-by: Bill Fischofer <bill.fischofer@linaro.org>

>>

>> On Mon, Jun 19, 2017 at 8:12 AM, Maxim Uvarov <maxim.uvarov@linaro.org>

>> wrote:

>> > top_builddir alphabetical before top_srcdir. But here I'm ok with

>> current

>> > change.

>> >

>> > Bill, review + ?

>> >

>> > Maxim.

>> >

>> > On 19 June 2017 at 14:58, Savolainen, Petri (Nokia - FI/Espoo)

>> > <petri.savolainen@nokia.com> wrote:

>> >>

>> >>

>> >>

>> >> > -----Original Message-----

>> >> > From: Bill Fischofer [mailto:bill.fischofer@linaro.org]

>> >> > Sent: Monday, June 19, 2017 1:31 PM

>> >> > To: Petri Savolainen <petri.savolainen@linaro.org>

>> >> > Cc: lng-odp-forward <lng-odp@lists.linaro.org>

>> >> > Subject: Re: [lng-odp] [PATCH] linux-gen: makefile: fix out of tree

>> >> > build

>> >> >

>> >> > On Mon, Jun 19, 2017 at 3:25 AM, Petri Savolainen

>> >> > <petri.savolainen@linaro.org> wrote:

>> >> > > Generated files need $(top_builddir) instead of $(top_srcdir)

>> >> > >

>> >> > > Fixes bug https://bugs.linaro.org/show_bug.cgi?id=3052

>> >> > >

>> >> > > Signed-off-by: Petri Savolainen <petri.savolainen@linaro.org>

>> >> > > ---

>> >> > >  platform/Makefile.inc | 6 +++---

>> >> > >  1 file changed, 3 insertions(+), 3 deletions(-)

>> >> > >

>> >> > > diff --git a/platform/Makefile.inc b/platform/Makefile.inc

>> >> > > index 9844a58a..1903d92d 100644

>> >> > > --- a/platform/Makefile.inc

>> >> > > +++ b/platform/Makefile.inc

>> >> > > @@ -29,7 +29,6 @@ odpapispecinclude_HEADERS = \

>> >> > >                   $(top_srcdir)/include/odp/api/spec/cpumask.h \

>> >> > >                   $(top_srcdir)/include/odp/api/spec/crypto.h \

>> >> > >                   $(top_srcdir)/include/odp/api/spec/debug.h \

>> >> > > -                 $(top_srcdir)/include/odp/api/spec/deprecated.h

>> \

>> >> > >                   $(top_srcdir)/include/odp/api/spec/errno.h \

>> >> > >                   $(top_srcdir)/include/odp/api/spec/event.h \

>> >> > >                   $(top_srcdir)/include/odp/api/spec/hash.h \

>> >> > > @@ -58,8 +57,9 @@ odpapispecinclude_HEADERS = \

>> >> > >                   $(top_srcdir)/include/odp/api/spec/ticketlock.h

>> \

>> >> > >                   $(top_srcdir)/include/odp/api/spec/time.h \

>> >> > >                   $(top_srcdir)/include/odp/api/spec/timer.h \

>> >> > > -                 $(top_builddir)/include/odp/api/spec/version.h \

>> >> > > -                 $(top_srcdir)/include/odp/

>> api/spec/traffic_mngr.h

>> >> > > +                 $(top_srcdir)/include/odp/api/spec/traffic_mngr.h

>> \

>> >> > > +                 $(top_builddir)/include/odp/api/spec/deprecated.h

>> \

>> >> > > +                 $(top_builddir)/include/odp/api/spec/version.h

>> >> >

>> >> > Shouldn't this list be maintained in alphabetical order?

>> >>

>> >> It's ordered first by path, then by file name in alphabetical order.

>> First

>> >> all $(top_srcdir), then all $(top_builddir). The bug was in not using

>> >> $(top_builddir). This order highlights that the path matters.

>> >>

>> >> -Petri

>> >>

>> >>

>> >

>>

>

>
diff mbox

Patch

diff --git a/platform/Makefile.inc b/platform/Makefile.inc
index 9844a58a..1903d92d 100644
--- a/platform/Makefile.inc
+++ b/platform/Makefile.inc
@@ -29,7 +29,6 @@  odpapispecinclude_HEADERS = \
 		  $(top_srcdir)/include/odp/api/spec/cpumask.h \
 		  $(top_srcdir)/include/odp/api/spec/crypto.h \
 		  $(top_srcdir)/include/odp/api/spec/debug.h \
-		  $(top_srcdir)/include/odp/api/spec/deprecated.h \
 		  $(top_srcdir)/include/odp/api/spec/errno.h \
 		  $(top_srcdir)/include/odp/api/spec/event.h \
 		  $(top_srcdir)/include/odp/api/spec/hash.h \
@@ -58,8 +57,9 @@  odpapispecinclude_HEADERS = \
 		  $(top_srcdir)/include/odp/api/spec/ticketlock.h \
 		  $(top_srcdir)/include/odp/api/spec/time.h \
 		  $(top_srcdir)/include/odp/api/spec/timer.h \
-		  $(top_builddir)/include/odp/api/spec/version.h \
-		  $(top_srcdir)/include/odp/api/spec/traffic_mngr.h
+		  $(top_srcdir)/include/odp/api/spec/traffic_mngr.h \
+		  $(top_builddir)/include/odp/api/spec/deprecated.h \
+		  $(top_builddir)/include/odp/api/spec/version.h
 
 odpapiabidefaultincludedir= $(includedir)/odp/arch/default/api/abi
 odpapiabidefaultinclude_HEADERS = \