pkgconfig.bbclass: Split out the staging function into its own class (pkgconfig_stage)
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
This commit is contained in:
parent
5d09a6bd93
commit
1247e2bba2
|
@ -1,9 +1,3 @@
|
|||
DEPENDS_prepend = "pkgconfig-native "
|
||||
|
||||
do_stage_append () {
|
||||
install -d ${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
|
||||
done
|
||||
}
|
||||
inherit pkconfig_stage
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
do_stage_append () {
|
||||
install -d ${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
|
||||
done
|
||||
}
|
Loading…
Reference in New Issue