mirror of
https://git.yoctoproject.org/poky
synced 2026-06-02 13:29:49 +00:00
binconfig.bbclass: Convert do_install_append() into a PACKAGE_PREPROCESS_FUNCS
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
This commit is contained in:
@@ -22,20 +22,18 @@ def get_binconfig_mangle(d):
|
|||||||
|
|
||||||
BINCONFIG_GLOB ?= "*-config"
|
BINCONFIG_GLOB ?= "*-config"
|
||||||
|
|
||||||
do_install_append() {
|
PACKAGE_PREPROCESS_FUNCS += "binconfig_package_preprocess"
|
||||||
|
|
||||||
#the 'if' protects native packages, since we can't easily check for bb.data.inherits_class('native', d) in shell
|
binconfig_package_preprocess () {
|
||||||
if [ -e ${D}${bindir} ] ; then
|
for config in `find ${PKGD} -name '${BINCONFIG_GLOB}'`; do
|
||||||
for config in `find ${S} -name '${BINCONFIG_GLOB}'`; do
|
sed -i \
|
||||||
cat $config | sed \
|
-e 's:${STAGING_LIBDIR}:${libdir}:g;' \
|
||||||
-e 's:${STAGING_LIBDIR}:${libdir}:g;' \
|
-e 's:${STAGING_INCDIR}:${includedir}:g;' \
|
||||||
-e 's:${STAGING_INCDIR}:${includedir}:g;' \
|
-e 's:${STAGING_DATADIR}:${datadir}:' \
|
||||||
-e 's:${STAGING_DATADIR}:${datadir}:' \
|
-e 's:${STAGING_DIR_HOST}${prefix}:${prefix}:' \
|
||||||
-e 's:${STAGING_DIR_HOST}${prefix}:${prefix}:' > ${D}${bindir}/`basename $config`
|
$config
|
||||||
done
|
done
|
||||||
fi
|
for lafile in `find ${PKGD} -name "*.la"` ; do
|
||||||
|
|
||||||
for lafile in `find ${D} -name *.la` ; do
|
|
||||||
sed -i \
|
sed -i \
|
||||||
-e 's:${STAGING_LIBDIR}:${libdir}:g;' \
|
-e 's:${STAGING_LIBDIR}:${libdir}:g;' \
|
||||||
-e 's:${STAGING_INCDIR}:${includedir}:g;' \
|
-e 's:${STAGING_INCDIR}:${includedir}:g;' \
|
||||||
|
|||||||
Reference in New Issue
Block a user