[yocto] best way to add conditional configure option

2014-06-04 Thread Neuer User
Hi I have a simple recipe (libcec) that I would like to add an additional configure option to, depending if the machine is an imx6 based one. How would I do that best? Here is the recipe: - SUMMARY = USB CEC Adaptor communication Library with patches

Re: [yocto] best way to add conditional configure option

2014-06-04 Thread Burton, Ross
On 4 June 2014 09:51, Neuer User auslands...@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

Re: [yocto] best way to add conditional configure option

2014-06-04 Thread 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 =

Re: [yocto] best way to add conditional configure option

2014-06-04 Thread 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

Re: [yocto] best way to add conditional configure option

2014-06-04 Thread Neuer User
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

Re: [yocto] best way to add conditional configure option

2014-06-04 Thread Burton, Ross
On 4 June 2014 10:24, Neuer User auslands...@gmx.de wrote: EXTRA_OECONF_append_mx6 = --enable-imx6 Main difference is the mx6 versus imx6. Yeah I didn't know what your machine type is, so was guessing. Ross -- ___ yocto mailing list

Re: [yocto] best way to add conditional configure option

2014-06-04 Thread Paul Eggleton
On Wednesday 04 June 2014 11:24:36 Neuer User wrote: I searched through other recipes for EXTRA_OECONF_ and found somehting that worked: EXTRA_OECONF_append_mx6 = --enable-imx6 BTW I'd suggest a leading space in the value, since _append won't add one for you. You might have got away with

Re: [yocto] best way to add conditional configure option

2014-06-04 Thread Neuer User
Am 04.06.2014 11:59, schrieb Paul Eggleton: On Wednesday 04 June 2014 11:24:36 Neuer User wrote: I searched through other recipes for EXTRA_OECONF_ and found somehting that worked: EXTRA_OECONF_append_mx6 = --enable-imx6 BTW I'd suggest a leading space in the value, since _append won't add