mirror of
git://git.yoctoproject.org/poky.git
synced 2025-07-19 21:09:03 +02:00

As stated in our top level license files, the license is MIT unless otherwise stated. Add SPDX identifers accordingly. Replace older license statementa with the standardised syntax. Also drop "All Rights Reserved" expression as it isn't used now, doesn't mean anything and is confusing. (From OE-Core rev: 081a391fe09a21265881e39a2a496e4e10b4f80b) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
27 lines
737 B
Plaintext
27 lines
737 B
Plaintext
#
|
|
# Copyright OpenEmbedded Contributors
|
|
#
|
|
# SPDX-License-Identifier: MIT
|
|
#
|
|
|
|
inherit chrpath
|
|
|
|
SYSROOT_PREPROCESS_FUNCS += "relocatable_binaries_preprocess relocatable_native_pcfiles"
|
|
|
|
python relocatable_binaries_preprocess() {
|
|
rpath_replace(d.expand('${SYSROOT_DESTDIR}'), d)
|
|
}
|
|
|
|
relocatable_native_pcfiles() {
|
|
for dir in ${libdir}/pkgconfig ${datadir}/pkgconfig; do
|
|
files_template=${SYSROOT_DESTDIR}$dir/*.pc
|
|
# Expand to any files matching $files_template
|
|
files=$(echo $files_template)
|
|
# $files_template and $files will differ if any files were found
|
|
if [ "$files_template" != "$files" ]; then
|
|
rel=$(realpath -m --relative-to=$dir ${base_prefix})
|
|
sed -i -e "s:${base_prefix}:\${pcfiledir}/$rel:g" $files
|
|
fi
|
|
done
|
|
}
|