summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/opkbuild.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/opkbuild.sh b/src/opkbuild.sh
index a525e4b..6838a82 100644
--- a/src/opkbuild.sh
+++ b/src/opkbuild.sh
@@ -246,6 +246,16 @@ if [ -f "@@DATADIR@@/opkhelper/buildflags/${OH_HOST_ARCH_CPU}" ]; then
. @@DATADIR@@/opkhelper/buildflags/${OH_HOST_ARCH_CPU}
fi
+# Print build and host architecture and platform information.
+printf 'opkbuild: Build system:\n'
+printf 'opkbuild: Architecture: %s (%s)\n' \
+ "${OH_BUILD_ARCH_DIST}" "${OH_BUILD_ARCH_GNU}"
+printf 'opkbuild: Platform: %s\n' "${OH_BUILD_PLATFORM}"
+printf 'opkbuild: Host system:\n'
+printf 'opkbuild: Architecture: %s (%s)\n' \
+ "${OH_HOST_ARCH_DIST}" "${OH_HOST_ARCH_GNU}"
+printf 'opkbuild: Platform: %s\n' "${OH_HOST_PLATFORM:-<none>}"
+
# Check build dependencies.
oh-checkbuilddeps -s "${status_override}" || error "${srcpkg}-src"