mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-07 15:40:01 +00:00
talloc: fixes for sstate cache reuse
Fixes for sstate cache reuse between different build dirs. The
${SWIGLIBDIR##${STAGING_DIR_NATIVE}} had confused bitbake, bitbake would
add the "SWIGLIBDIR##${STAGING_DIR_NATIVE}" to the deps of do_install,
which caused the sstate cached can't be re-used.
Use another way for SWIGLIBDIR to fix the problem.
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
This commit is contained in:
committed by
Martin Jansa
parent
e99ca149a1
commit
a689cb8239
@@ -23,7 +23,15 @@ DEPENDS += "swig-native"
|
|||||||
do_install_prepend() {
|
do_install_prepend() {
|
||||||
# Hack the way swig interface for talloc is installed
|
# Hack the way swig interface for talloc is installed
|
||||||
# This hack is accompanied by install-swig-interface-in-SWINGLIBDIR.patch
|
# This hack is accompanied by install-swig-interface-in-SWINGLIBDIR.patch
|
||||||
type swig > /dev/null 2>&1 && SWIGLIBDIR=`swig -swiglib` && SWIGLIBDIR=`readlink -f ${SWIGLIBDIR}` && SWIGLIBDIR=${SWIGLIBDIR##${STAGING_DIR_NATIVE}} && export SWIGLIBDIR || echo "No swig found"
|
if which swig > /dev/null; then
|
||||||
|
SWIGLIBDIR="$(echo $(readlink -f $(swig -swiglib)) | \
|
||||||
|
sed -e 's#^${STAGING_DIR_NATIVE}##')"
|
||||||
|
fi
|
||||||
|
if [ -n "$SWIGLIBDIR" ]; then
|
||||||
|
export SWIGLIBDIR
|
||||||
|
else
|
||||||
|
echo "No swig found"
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
do_install_append() {
|
do_install_append() {
|
||||||
|
|||||||
Reference in New Issue
Block a user