[oe] [PATCH 1/3] cmake-native: add recipe for cmake 2.8.2.

Martin Jansa martin.jansa at gmail.com
Fri Aug 6 13:26:36 UTC 2010


On Tue, Jul 27, 2010 at 9:43 AM, David Kozub <zub at linux.fjfi.cvut.cz> wrote:
> On Tue, 27 Jul 2010, Henning Heinold wrote:
>
>> Eduardo Lima sends in patches for cmake 2.8 too. So please coordinate with
>> him.
>> I would like to see a fine recipe with which uses the latest features
>> available in OE like BBCLASSEXTENDED and so on.
>
> I missed it. It even seems he's been working on webkit-efl too. I'll try to
> contact him.
>
> As for the cmake - I tried and failed. My problem is:
>
> * cmake is built using cmake-native, and it uses inherit cmake
>
> * I can't have inherit cmake in the native recipe, as it would be a circular
> dependency
>
> * I got stuck on: can I somehow "inherit cmake" only for the non-native
> case?

looks strange, but works:
BBCLASSEXTEND = "native"
IS_NATIVE = "no"
IS_NATIVE_virtclass-native = "yes"
INHERIT += " ${@base_conditional("IS_NATIVE", "no", "autotools cmake",
"autotools", d)}"

looks even better, and still works:
INHERIT_CLASSES = "autotools cmake"
INHERIT_CLASSES_virtclass-native = "autotools"
INHERIT += ${INHERIT_CLASSES}

looks even better, and fails somehow :/:
INHERIT_CLASSES = "cmake"
INHERIT_CLASSES_virtclass-native = ""
inherit autotools ${INHERIT_CLASSES}

looks better, but fails:
INHERIT_CLASSES = "autotools cmake"
INHERIT_CLASSES_virtclass-native = "autotools"
inherit ${INHERIT_CLASSES}
-> ParseError: Could not inherit file classes/autotools cmake.bbclass

Tested only by checking -e output!




More information about the Openembedded-devel mailing list