From ac14892a170a1fa404d1554e47631a8d1b2a0fce Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Sun, 22 Apr 2012 19:31:58 -0400 Subject: Print build and host arch and platform info. --- (limited to 'src') 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:-}" + # Check build dependencies. oh-checkbuilddeps -s "${status_override}" || error "${srcpkg}-src" -- cgit v0.9.1