summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2012-04-22 17:15:42 (EDT)
committer P. J. McDermott <pjm@nac.net>2012-04-22 17:15:42 (EDT)
commit75018f81f7fa1e486c7965238f047a6ab8706c06 (patch)
treeb784600568c900c1090730a9c02357efba059976 /src
parentb41fb5fcaadbc1923aeb801ff38590deb81c7edc (diff)
Rename arch and platform environment variables.
Diffstat (limited to 'src')
-rw-r--r--src/opkbuild.sh14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/opkbuild.sh b/src/opkbuild.sh
index dc40bad..c942eb7 100644
--- a/src/opkbuild.sh
+++ b/src/opkbuild.sh
@@ -176,18 +176,18 @@ srcpkg=$(oh_get_field Source)
version=$(oh_get_field Version)
# Set environment variables for the build configuration.
-export OH_PLATFORM="${platform}"
-export OH_ARCH="${arch}"
-IFS=- read OH_ARCH_CPU OH_ARCH_KERNEL OH_ARCH_LIBS <<EOF
-${OH_ARCH}
+export OH_HOST_PLATFORM="${platform}"
+export OH_HOST_ARCH_DIST="${arch}"
+IFS=- read OH_HOST_ARCH_CPU OH_HOST_ARCH_KERNEL OH_HOST_ARCH_LIBS <<EOF
+${OH_HOST_ARCH_DIST}
EOF
-export OH_ARCH_CPU OH_ARCH_KERNEL OH_ARCH_LIBS
+export OH_HOST_ARCH_CPU OH_HOST_ARCH_KERNEL OH_HOST_ARCH_LIBS
export OH_SRCPKG="${srcpkg}"
export OH_PKGVER=${version}
# Set build flags.
-if [ -f "@@DATADIR@@/opkhelper/buildflags/${OH_ARCH_CPU}" ]; then
- . @@DATADIR@@/opkhelper/buildflags/${OH_ARCH_CPU}
+if [ -f "@@DATADIR@@/opkhelper/buildflags/${OH_HOST_ARCH_CPU}" ]; then
+ . @@DATADIR@@/opkhelper/buildflags/${OH_HOST_ARCH_CPU}
fi
# Check build dependencies.