mirror of
https://git.yoctoproject.org/poky
synced 2026-05-30 00:20:08 +00:00
binconfig/pkgconfig.bbclass: Convert staging functions into SYSROOT_PREPROCESS_FUNCS operating on SYSROOT_DESTDIR
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
This commit is contained in:
@@ -43,11 +43,13 @@ binconfig_package_preprocess () {
|
||||
done
|
||||
}
|
||||
|
||||
do_stage_append() {
|
||||
SYSROOT_PREPROCESS_FUNCS += "binconfig_sysroot_preprocess"
|
||||
|
||||
binconfig_sysroot_preprocess () {
|
||||
for config in `find ${S} -name '${BINCONFIG_GLOB}'`; do
|
||||
configname=`basename $config`
|
||||
install -d ${STAGING_BINDIR_CROSS}
|
||||
cat $config | sed ${@get_binconfig_mangle(d)} > ${STAGING_BINDIR_CROSS}/$configname
|
||||
chmod u+x ${STAGING_BINDIR_CROSS}/$configname
|
||||
install -d ${SYSROOT_DESTDIR}${STAGING_BINDIR_CROSS}
|
||||
cat $config | sed ${@get_binconfig_mangle(d)} > ${SYSROOT_DESTDIR}${STAGING_BINDIR_CROSS}/$configname
|
||||
chmod u+x ${SYSROOT_DESTDIR}${STAGING_BINDIR_CROSS}/$configname
|
||||
done
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user