From: Neuer User <auslands-kv@gmx.de>
To: yocto@yoctoproject.org
Subject: Re: best way to add conditional configure option
Date: Wed, 04 Jun 2014 11:21:51 +0200 [thread overview]
Message-ID: <lmmoff$hkl$1@ger.gmane.org> (raw)
In-Reply-To: <lmmo0c$bda$1@ger.gmane.org>
The problem is that the MACHINE variable is "cubox-i", which is based on
imx6.
Guess that should still work somehow, though...
Am 04.06.2014 11:13, schrieb Neuer User:
> Hmm, like this?
>
> -----------------------------
> SUMMARY = "USB CEC Adaptor communication Library with patches for imx6"
> HOMEPAGE = "http://libcec.pulse-eight.com/"
>
> LICENSE = "GPLv2+"
> LIC_FILES_CHKSUM = "file://COPYING;md5=5e8e16396992369f73f3d28875f846da"
>
> DEPENDS = "udev lockdev"
>
> PV = "2.4.1"
>
> SRCREV = "42c3c07a79b8155635851c2eed9558b221b89047"
> SRC_URI = "git://github.com/xbmc-imx6/libcec.git"
>
> S = "${WORKDIR}/git"
>
> inherit autotools pkgconfig
>
> # cec-client and xbmc need the .so present to work :(
> FILES_${PN} += "${libdir}/*.so"
> INSANE_SKIP_${PN} = "dev-so"
>
> EXTRA_OECONF_imx6 = "--enable-imx6"
> -------------------------------
>
> That doesn't seem to work?!
>
> Extracts from log.do_configure:
>
> ...
> autoreconf: Leaving directory `.'
> NOTE: Running
> /home/ubuntu/yocto/build/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/libcec/2.4.1-r0/git/configure
> --build=i686-linux --host=arm-poky-linux-gnueabi
> --target=arm-poky-linux-gnueabi --prefix=/usr
> --exec_prefix=/usr --bindir=/usr/bin
> --sbindir=/usr/sbin --libexecdir=/usr/lib/libcec
> --datadir=/usr/share --sysconfdir=/etc
> --sharedstatedir=/com --localstatedir=/var
> --libdir=/usr/lib --includedir=/usr/include
> --oldincludedir=/usr/include
> --infodir=/usr/share/info
> --mandir=/usr/share/man --disable-silent-rules
> --disable-dependency-tracking
> --with-libtool-sysroot=/home/ubuntu/yocto/build/tmp/sysroots/cubox-i
> configure: loading site script
> /home/ubuntu/yocto/sources/poky/meta/site/endian-little
> ...
>
> ...
> libCEC version 2:1:0 configured
>
> Compilation flags:
> CXXFLAGS : -O2 -pipe -g -feliminate-unused-debug-types
> -fvisibility-inlines-hidden -fPIC -Wall -Wextra
> -Wno-missing-field-initializers -Wno-psabi
> libCEC LDFLAGS : -llockdev -ldl -lpthread -ludev -lrt
> client LDFLAGS : -ldl -lpthread
>
> Configured features:
> Pulse-Eight CEC Adapter : yes
> Pulse-Eight CEC Adapter detection : yes
> Raspberry Pi support : no
> TDA995x support : no
> i.MX6 support : no
>
> ...
>
> What am I missing?
>
> Michael
>
>
> Am 04.06.2014 10:59, schrieb Burton, Ross:
>> On 4 June 2014 09:51, Neuer User <auslands-kv@gmx.de> wrote:
>>> The conditional configure option is "--enable-imx6".
>>
>> You can use a machine override, along the lines of:
>>
>> EXTRA_OECONF_ixm6 = "--enable-imx6"
>>
>> This will set EXTRA_OECONF to --enable-imx6 if the MACHINE is ixm6.
>> It gets a little complicated when you've general and machine-specific
>> options but for a single option that works just fine.
>>
>> Ross
>>
>
>
next prev parent reply other threads:[~2014-06-04 9:22 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-04 8:51 best way to add conditional configure option Neuer User
2014-06-04 8:59 ` Burton, Ross
2014-06-04 9:13 ` Neuer User
2014-06-04 9:21 ` Neuer User [this message]
2014-06-04 9:24 ` Neuer User
2014-06-04 9:57 ` Burton, Ross
2014-06-04 9:59 ` Paul Eggleton
2014-06-04 10:00 ` Neuer User
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='lmmoff$hkl$1@ger.gmane.org' \
--to=auslands-kv@gmx.de \
--cc=yocto@yoctoproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.