diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/opkbuild.sh | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/opkbuild.sh b/src/opkbuild.sh index a9f87d8..4bd6046 100644 --- a/src/opkbuild.sh +++ b/src/opkbuild.sh @@ -179,13 +179,20 @@ version=$(oh_get_field Version) export OH_SRCPKG="${srcpkg}" export OH_PKGVER=${version} -# Set environment variables for the build configuration. -export OH_HOST_PLATFORM="${host_platform}" +# Set environment variables for the build architecture. +export OH_BUILD_ARCH_DIST="${build_arch}" +IFS=- read OH_BUILD_ARCH_CPU OH_BUILD_ARCH_KERNEL OH_BUILD_ARCH_LIBS <<EOF +${OH_BUILD_ARCH_DIST} +EOF +export OH_BUILD_ARCH_CPU OH_BUILD_ARCH_KERNEL OH_BUILD_ARCH_LIBS + +# Set environment variables for the host architecture and platform. export OH_HOST_ARCH_DIST="${host_arch}" IFS=- read OH_HOST_ARCH_CPU OH_HOST_ARCH_KERNEL OH_HOST_ARCH_LIBS <<EOF ${OH_HOST_ARCH_DIST} EOF export OH_HOST_ARCH_CPU OH_HOST_ARCH_KERNEL OH_HOST_ARCH_LIBS +export OH_HOST_PLATFORM="${host_platform}" # Look up GNU architecture name and set toolchain environment variables. if [ ! -f "@@DATADIR@@/opkhelper/archtab" ]; then |