All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] How do I pass arguments into autoconfig tools ./confgiure
@ 2017-11-07  3:25 Kyle Sulek
  2017-11-07  4:41 ` Baruch Siach
  0 siblings, 1 reply; 3+ messages in thread
From: Kyle Sulek @ 2017-11-07  3:25 UTC (permalink / raw)
  To: buildroot

I am trying to add a package to buildroot. The autogen.sh file in the
source directory is as follows

===================================================
#! /bin/sh

srcdir=`dirname $0`
echo "srdir: $srcdir"
test -z "$srcdir" && srcdir=.

ORIGDIR=`pwd`
cd $srcdir

autoreconf -v --install || exit 1
cd $ORIGDIR || exit $?

$srcdir/configure --enable-maintainer-mode "$@"

===================================================


This is what I have for my package .mk file
===================================================
############################################################
####################
#
# ti-gbm
#
############################################################
####################

# This correpsonds to SDK 02.00.00.00
TI_GBM_VERSION = 96f37555c7e82a417b02051661377b10e6b3966e
TI_GBM_SITE = git://git.ti.com/glsdk/libgbm.git
TI_GBM_LICENSE = GPL-2.0
TI_GBM_LICENSE_FILES = GPL-COPYING
TI_GBM_INSTALL_STAGING = YES
TT_GBM_INSTALL_TARGET = YES
TI_GBM_AUTORECONF = YES
TI_GBM_AUTORECONF_OPTS = -v --install

$(eval $(autotools-package))
===================================================

However, I cannot figure out how to pass --enable-maintainer-mode "$@" into
the configure script.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20171106/e704760a/attachment.html>

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

* [Buildroot] How do I pass arguments into autoconfig tools ./confgiure
  2017-11-07  3:25 [Buildroot] How do I pass arguments into autoconfig tools ./confgiure Kyle Sulek
@ 2017-11-07  4:41 ` Baruch Siach
       [not found]   ` <CAB8Uub2JYu4iTHY7BOfQDJjSkDGe-ddYiMFfNS6BogsHAMtWDg@mail.gmail.com>
  0 siblings, 1 reply; 3+ messages in thread
From: Baruch Siach @ 2017-11-07  4:41 UTC (permalink / raw)
  To: buildroot

Hi Kyle,

On Mon, Nov 06, 2017 at 09:25:49PM -0600, Kyle Sulek wrote:
> I am trying to add a package to buildroot. The autogen.sh file in the
> source directory is as follows
> 
> ===================================================
> #! /bin/sh
> 
> srcdir=`dirname $0`
> echo "srdir: $srcdir"
> test -z "$srcdir" && srcdir=.
> 
> ORIGDIR=`pwd`
> cd $srcdir
> 
> autoreconf -v --install || exit 1
> cd $ORIGDIR || exit $?
> 
> $srcdir/configure --enable-maintainer-mode "$@"
> 
> ===================================================
> 
> 
> This is what I have for my package .mk file
> ===================================================
> ############################################################
> ####################
> #
> # ti-gbm
> #
> ############################################################
> ####################
> 
> # This correpsonds to SDK 02.00.00.00
> TI_GBM_VERSION = 96f37555c7e82a417b02051661377b10e6b3966e
> TI_GBM_SITE = git://git.ti.com/glsdk/libgbm.git
> TI_GBM_LICENSE = GPL-2.0

The license text in source files heading comments look more like MIT.

> TI_GBM_LICENSE_FILES = GPL-COPYING

I could not find this file in the source tree.

> TI_GBM_INSTALL_STAGING = YES
> TT_GBM_INSTALL_TARGET = YES
> TI_GBM_AUTORECONF = YES
> TI_GBM_AUTORECONF_OPTS = -v --install

Buildroot adds the -i (i.e. --install) parameter already. See 
package/autoconf/autoconf.mk.

> $(eval $(autotools-package))
> ===================================================
> 
> However, I cannot figure out how to pass --enable-maintainer-mode "$@" into
> the configure script.

Since you need AUTORECONF anyway, the --{enable,disable}-maintainer-mode has 
no effect in practice, AFAIU. So I think you can just leave it out.

  https://www.gnu.org/software/automake/manual/automake.html#maintainer_002dmode

baruch

-- 
     http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -

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

* [Buildroot] How do I pass arguments into autoconfig tools ./confgiure
       [not found]   ` <CAB8Uub2JYu4iTHY7BOfQDJjSkDGe-ddYiMFfNS6BogsHAMtWDg@mail.gmail.com>
@ 2017-11-09 16:13     ` Baruch Siach
  0 siblings, 0 replies; 3+ messages in thread
From: Baruch Siach @ 2017-11-09 16:13 UTC (permalink / raw)
  To: buildroot

Hi Kyle,

Please keep the list on Cc.

On Tue, Nov 07, 2017 at 02:27:36PM -0600, Kyle Sulek wrote:
> Thanks for the help Baruch!
> 
> The only other thing that the TI script does is handle the current
> directory. Can I expect buildroot to handle this?

Which script?

> I ask because the libgbm from the compilation in the official ti-meta layer
> for yocto works but my version in buildroot doesn't. I am trying to
> pinpoint where the difference in the build process is.

What error do you see?

> Here is the build recipe in Yocto:
> https://git.yoctoproject.org/cgit/cgit.cgi/meta-ti/tree/recipes-graphics/gbm/libgbm_10.0.0.bb

I'm not a Yocto expert, but I don't see anything obvious in this recipe. Maybe 
someone else on the list can help with that.

baruch

> On Mon, Nov 6, 2017 at 10:41 PM, Baruch Siach <baruch@tkos.co.il> wrote:
> >
> > On Mon, Nov 06, 2017 at 09:25:49PM -0600, Kyle Sulek wrote:
> > > I am trying to add a package to buildroot. The autogen.sh file in the
> > > source directory is as follows
> > >
> > > ===================================================
> > > #! /bin/sh
> > >
> > > srcdir=`dirname $0`
> > > echo "srdir: $srcdir"
> > > test -z "$srcdir" && srcdir=.
> > >
> > > ORIGDIR=`pwd`
> > > cd $srcdir
> > >
> > > autoreconf -v --install || exit 1
> > > cd $ORIGDIR || exit $?
> > >
> > > $srcdir/configure --enable-maintainer-mode "$@"
> > >
> > > ===================================================
> > >
> > >
> > > This is what I have for my package .mk file
> > > ===================================================
> > > ############################################################
> > > ####################
> > > #
> > > # ti-gbm
> > > #
> > > ############################################################
> > > ####################
> > >
> > > # This correpsonds to SDK 02.00.00.00
> > > TI_GBM_VERSION = 96f37555c7e82a417b02051661377b10e6b3966e
> > > TI_GBM_SITE = git://git.ti.com/glsdk/libgbm.git
> > > TI_GBM_LICENSE = GPL-2.0
> >
> > The license text in source files heading comments look more like MIT.
> >
> > > TI_GBM_LICENSE_FILES = GPL-COPYING
> >
> > I could not find this file in the source tree.
> >
> > > TI_GBM_INSTALL_STAGING = YES
> > > TT_GBM_INSTALL_TARGET = YES
> > > TI_GBM_AUTORECONF = YES
> > > TI_GBM_AUTORECONF_OPTS = -v --install
> >
> > Buildroot adds the -i (i.e. --install) parameter already. See
> > package/autoconf/autoconf.mk.
> >
> > > $(eval $(autotools-package))
> > > ===================================================
> > >
> > > However, I cannot figure out how to pass --enable-maintainer-mode "$@"
> > into
> > > the configure script.
> >
> > Since you need AUTORECONF anyway, the --{enable,disable}-maintainer-mode
> > has
> > no effect in practice, AFAIU. So I think you can just leave it out.
> >
> >   https://www.gnu.org/software/automake/manual/automake.html#
> > maintainer_002dmode
> >
> > baruch

-- 
     http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -

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

end of thread, other threads:[~2017-11-09 16:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-11-07  3:25 [Buildroot] How do I pass arguments into autoconfig tools ./confgiure Kyle Sulek
2017-11-07  4:41 ` Baruch Siach
     [not found]   ` <CAB8Uub2JYu4iTHY7BOfQDJjSkDGe-ddYiMFfNS6BogsHAMtWDg@mail.gmail.com>
2017-11-09 16:13     ` Baruch Siach

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.