[yocto] best way to add conditional configure option

Neuer User auslands-kv at gmx.de
Wed Jun 4 02:24:36 PDT 2014


I searched through other recipes for "EXTRA_OECONF_" and found somehting
that worked:

EXTRA_OECONF_append_mx6 = "--enable-imx6"

Main difference is the mx6 versus imx6.

Thanks a lot

Michael

Am 04.06.2014 11:21, schrieb Neuer User:
> 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 at 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
>>>
>>
>>
> 
> 





More information about the yocto mailing list