diff options
author | Richard Purdie <rpurdie@linux.intel.com> | 2009-11-02 17:30:32 +0000 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2009-11-10 13:46:37 +0000 |
commit | bf755f0c721a91a3067fdac9f936a72e11f99cbc (patch) | |
tree | d80ec5970f5c01e10b76445c4dada54f5bb20f6d /classes/pkgconfig.bbclass | |
parent | b66fa6b32686ef5a750de1bb2fb317448c682863 (diff) |
binconfig/pkgconfig.bbclass: Convert staging functions into SYSROOT_PREPROCESS_FUNCS operating on SYSROOT_DESTDIR
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'classes/pkgconfig.bbclass')
-rw-r--r-- | classes/pkgconfig.bbclass | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/classes/pkgconfig.bbclass b/classes/pkgconfig.bbclass index 2a8199d135..de892b5413 100644 --- a/classes/pkgconfig.bbclass +++ b/classes/pkgconfig.bbclass @@ -9,10 +9,12 @@ for i in `find ${S}/ -name "*.pc" -type f` ; do \ done } -do_stage_append () { - install -d ${PKG_CONFIG_DIR} +SYSROOT_PREPROCESS_FUNCS += "pkgconfig_sysroot_preprocess" + +pkgconfig_sysroot_preprocess () { + install -d ${SYSROOT_DESTDIR}${PKG_CONFIG_DIR} for pc in `find ${S} -name '*.pc' -type f | grep -v -- '-uninstalled.pc$'`; do pcname=`basename $pc` - cat $pc > ${PKG_CONFIG_DIR}/$pcname + cat $pc > ${SYSROOT_DESTDIR}${PKG_CONFIG_DIR}/$pcname done } |