summaryrefslogtreecommitdiff
path: root/architect.sh
diff options
context:
space:
mode:
Diffstat (limited to 'architect.sh')
-rw-r--r--architect.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/architect.sh b/architect.sh
index c83df6fd1..062dd7d70 100644
--- a/architect.sh
+++ b/architect.sh
@@ -1,6 +1,7 @@
-if [[ ! -e ${PKG_BASE}/arch/${PKG_ARCH}/target ]]; then
+if [[ ! -e ${PKG_BASE}/arch/${PKG_ARCH}/${PKG_CFTARG}/target ]]; then
echo "unknown architecture: ${PKG_ARCH}" 1>&2
exit 1
fi
-export PKG_TARG=$(cat "${PKG_BASE}/arch/${PKG_ARCH}/target")
+source ${PKG_BASE}/arch/${PKG_ARCH}/${PKG_CFTARG}/environ.sh
+export PKG_TARG=$(cat "${PKG_BASE}/arch/${PKG_ARCH}/${PKG_CFTARG}/target")