Legacy staging

From Openembedded.org
Revision as of 14:36, 7 November 2012 by PaulEggleton (talk | contribs) (Update for OE-Core and tidy up formatting)
Jump to navigation Jump to search

The term "legacy staging" refers to recipes or classes which have a do_stage function for populating the sysroot directories that we use for building, rather than having a do_install that works, along with post install functions to mangle the contents as needed.

In OpenEmbedded-Classic, legacy staging was deprecated but still supported; but with OE-Core, BitBake will error out during parse if it finds a do_stage function defined in any recipe, so when migrating a recipe you will need to translate this if present.

Steps for moving script code in the do_stage function to the do_install function:

  • Replace STAGING_BINDIR with ${D}${bindir}
  • Replace STAGING_INCDIR with ${D}${includedir}
  • Replace STAGING_LIBDIR with ${D}${libdir}
  • Replace STAGING_DATADIR with ${D}${datadir}