forked from brl/citadel
Bruce Leidl
be34ea65f3
- removed layers meta-rust and meta-clang - added new dependencies to Makefile - changed override syntax across all recipe files - updated conf files from hardknott to kirkstone - SRC_URI git URLS fixed to always include branch and protocol - LICENSE fields updated with new naming convention - updated citadel-tools dependencies - upgraded mozjs to mozjs-91 No longer needed because poky includes newer version (or new enough): - glib-2.0 - libgudev - xorgproto - libxfixes - libinput - wayland-protocols - vte
26 lines
696 B
Plaintext
26 lines
696 B
Plaintext
#
|
|
# 1) write out a wrapper script that can execute target binaries
|
|
#
|
|
# 2) add exe_wrapper line to the end of [binaries] section in the
|
|
# meson.cross file that meson.bbclass generated
|
|
#
|
|
setup_wrapper() {
|
|
if [ ! -e ${B}/wrapper ]; then
|
|
cat > ${B}/wrapper << EOF
|
|
#!/bin/sh
|
|
${STAGING_LIBDIR}/ld-linux-x86-64.so.2 --library-path ${STAGING_LIBDIR} \$@
|
|
EOF
|
|
chmod +x ${B}/wrapper
|
|
fi
|
|
|
|
if ! grep -q "^exe_wrapper" ${WORKDIR}/meson.cross; then
|
|
cat ${WORKDIR}/meson.cross | sed "/pkgconfig/ a\
|
|
exe_wrapper = '${B}/wrapper'" > ${WORKDIR}/meson.cross.tmp
|
|
mv ${WORKDIR}/meson.cross.tmp ${WORKDIR}/meson.cross
|
|
fi
|
|
}
|
|
|
|
do_configure:prepend() {
|
|
setup_wrapper
|
|
}
|