[oe] Examples of srctree and gitver

Chris Larson clarson at kergoth.com
Sun May 30 17:10:53 UTC 2010


On Sun, May 30, 2010 at 9:27 AM, Michael Smith <msmith at cbnco.com> wrote:

> 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() {
>    # ...
> }
>

Thanks, glad someone had an example for him handy :)
-- 
Christopher Larson
clarson at kergoth dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics



More information about the Openembedded-devel mailing list