From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 35C05E00B68; Wed, 4 Jun 2014 02:14:05 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_PASS autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no * trust * [80.91.229.3 listed in list.dnswl.org] * 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider * (auslands-kv[at]gmx.de) * -0.0 SPF_HELO_PASS SPF: HELO matches SPF record Received: from plane.gmane.org (plane.gmane.org [80.91.229.3]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id D59BBE00B20 for ; Wed, 4 Jun 2014 02:14:01 -0700 (PDT) Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Ws7Gi-00047A-2I for yocto@yoctoproject.org; Wed, 04 Jun 2014 11:14:00 +0200 Received: from 80-218-32-173.dclient.hispeed.ch ([80.218.32.173]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 04 Jun 2014 11:14:00 +0200 Received: from auslands-kv by 80-218-32-173.dclient.hispeed.ch with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 04 Jun 2014 11:14:00 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: yocto@yoctoproject.org From: Neuer User Date: Wed, 04 Jun 2014 11:13:48 +0200 Message-ID: References: Mime-Version: 1.0 X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 80-218-32-173.dclient.hispeed.ch User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 In-Reply-To: Subject: Re: best way to add conditional configure option X-BeenThere: yocto@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Discussion of all things Yocto Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Jun 2014 09:14:05 -0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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 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 >