summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2012-04-22 19:31:58 (EDT)
committer P. J. McDermott <pjm@nac.net>2012-04-22 19:35:43 (EDT)
commitac14892a170a1fa404d1554e47631a8d1b2a0fce (patch)
treea32c3bd467e388e74821e7c0266ebba7a25d8ab6
parent5176e0a9942b4f1a7ebb32d516a284dedcf0d0b5 (diff)
Print build and host arch and platform info.
-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"