blob: c62007f5077e310f98c75d9596072492f4acb3b5 [file] [log] [blame]
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08001#!/bin/sh
2
3if [ -z "$OECORE_NATIVE_SYSROOT" ]; then
Patrick Williamsdb4c27e2022-08-05 08:10:29 -05004 exec "meson.real" "$@"
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08005fi
6
Andrew Geissler595f6302022-01-24 19:11:47 +00007if [ -z "$SSL_CERT_DIR" ]; then
8 export SSL_CERT_DIR="${OECORE_NATIVE_SYSROOT}/etc/ssl/certs/"
9fi
10
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080011# If these are set to a cross-compile path, meson will get confused and try to
12# use them as native tools. Unset them to prevent this, as all the cross-compile
13# config is already in meson.cross.
14unset CC CXX CPP LD AR NM STRIP
15
16exec "$OECORE_NATIVE_SYSROOT/usr/bin/meson.real" \
Brad Bishop19323692019-04-05 15:28:33 -040017 --cross-file "${OECORE_NATIVE_SYSROOT}/usr/share/meson/${TARGET_PREFIX}meson.cross" \
Andrew Geisslereff27472021-10-29 15:35:00 -050018 --native-file "${OECORE_NATIVE_SYSROOT}/usr/share/meson/meson.native" \
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080019 "$@"