summaryrefslogtreecommitdiffstats
path: root/meta/classes/pkgconfig_stage.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2009-11-02 17:27:05 +0000
committerRichard Purdie <rpurdie@linux.intel.com>2009-11-13 12:15:22 +0000
commit7c975383279291a314e95301e8cf2a4ead17c856 (patch)
treec6d258c48f51ecc647692117548b4549f8aa6adb /meta/classes/pkgconfig_stage.bbclass
parent6ea78d648951e5bbe9669412c0863daaf7f49ca5 (diff)
downloadpoky-7c975383279291a314e95301e8cf2a4ead17c856.tar.gz
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 'meta/classes/pkgconfig_stage.bbclass')
-rw-r--r--meta/classes/pkgconfig_stage.bbclass8
1 files changed, 5 insertions, 3 deletions
diff --git a/meta/classes/pkgconfig_stage.bbclass b/meta/classes/pkgconfig_stage.bbclass
index fae2ee024e..bd5bd81670 100644
--- a/meta/classes/pkgconfig_stage.bbclass
+++ b/meta/classes/pkgconfig_stage.bbclass
@@ -1,7 +1,9 @@
1do_stage_append () { 1SYSROOT_PREPROCESS_FUNCS += "pkgconfig_sysroot_preprocess"
2 install -d ${PKG_CONFIG_DIR} 2
3pkgconfig_sysroot_preprocess () {
4 install -d ${SYSROOT_DESTDIR}${PKG_CONFIG_DIR}
3 for pc in `find ${S} -name '*.pc' -type f | grep -v -- '-uninstalled.pc$'`; do 5 for pc in `find ${S} -name '*.pc' -type f | grep -v -- '-uninstalled.pc$'`; do
4 pcname=`basename $pc` 6 pcname=`basename $pc`
5 cat $pc > ${PKG_CONFIG_DIR}/$pcname 7 cat $pc > ${SYSROOT_DESTDIR}${PKG_CONFIG_DIR}/$pcname
6 done 8 done
7} 9}