mirror of
git://git.yoctoproject.org/poky
synced 2026-08-13 21:43:34 +00:00
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
|
||||
|
||||
7
meta/classes/pkgconfig_stage.bbclass
Normal file
7
meta/classes/pkgconfig_stage.bbclass
Normal file
@ -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…
x
Reference in New Issue
Block a user