diff options
author | Michael Lauer <mickey@vanille-media.de> | 2005-09-29 12:08:48 +0000 |
---|---|---|
committer | OpenEmbedded Project <openembedded-devel@lists.openembedded.org> | 2005-09-29 12:08:48 +0000 |
commit | 0809a79a7776069d1c58011b5eb294a5edfa9a56 (patch) | |
tree | 6ddc422e72b61cf4a5160c21fb20f344fe6a4df8 /classes | |
parent | 2766fda591ec235b4fb4d0ef72a81d4628536c8b (diff) |
class autotools: add function 'autotools_stage_all' that automatically stages
include files and libraries for packages that obey DESTDIR. This can be used to
remove a lot of duplicated metadata in do_stage() of packages that inherit autotools.
Note that you need to call autotools_stage_all manually in do_stage. It may be
added to do_stage() eventually, but for now we want to do the transition step-by-step.
Feel free to convert do_stage of autotools packages to using autotools_stage_all.
Diffstat (limited to 'classes')
-rw-r--r-- | classes/autotools.bbclass | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/classes/autotools.bbclass b/classes/autotools.bbclass index ec1d4af1a4..8d448ce0d3 100644 --- a/classes/autotools.bbclass +++ b/classes/autotools.bbclass @@ -150,4 +150,16 @@ autotools_stage_includes() { fi } +autotools_stage_all() { + if [ "${INHIBIT_AUTO_STAGE}" != "1" ] + then + rm -rf ${STAGE_TEMP} + mkdir -p ${STAGE_TEMP} + oe_runmake DESTDIR="${STAGE_TEMP}" install + cp -pPR ${STAGE_TEMP}/${includedir}/* ${STAGING_INCDIR} + cp -pPR ${STAGE_TEMP}/${libdir}/* ${STAGING_LIBDIR} + rm -rf ${STAGE_TEMP} + fi +} + EXPORT_FUNCTIONS do_configure do_install |