[oe] Examples of srctree and gitver

Michael Smith msmith at cbnco.com
Sun May 30 16:27:45 UTC 2010


On Sun, 30 May 2010, Ambrose, Martin wrote:

> Are there any recipes/examples which use these classes?

Hi Martin,

I think you'll find srctree used mostly in out-of-tree stuff. Here's a 
sample.

inherit srctree gitver

# Strip off the leading 'v' from the Linux kernel git tags
GITVER_NO_V = "${@'${GITVER}'[1:]}"
PV = "${GITVER_NO_V}"

# Clean up between builds for different architectures
do_configure() {
    oe_runmake clean
}

do_compile() {
    oe_runmake
}

do_install() {
    # ...
}



Mike




More information about the Openembedded-devel mailing list