From mboxrd@z Thu Jan 1 00:00:00 1970 From: Baruch Siach Date: Thu, 9 Nov 2017 18:13:57 +0200 Subject: [Buildroot] How do I pass arguments into autoconfig tools ./confgiure In-Reply-To: References: <20171107044151.4wetl3obfzyqrpgr@tarshish> Message-ID: <20171109161357.hfs2b4xliv2pdipu@tarshish> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net 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 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 -