diff options
-rw-r--r-- | src/opkbuild.sh | 14 |
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. |