diff options
author | P. J. McDermott <pjm@nac.net> | 2012-10-04 21:10:04 (EDT) |
---|---|---|
committer | P. J. McDermott <pjm@nac.net> | 2012-10-04 21:10:04 (EDT) |
commit | 314e8d263e3b44fec27641921d6c4aa7e48a71ec (patch) | |
tree | f77f977e0b01585c84ebffbb58ecf5469fc40bed /src | |
parent | 87f7277630bd537b88a9c5172030314a5884071f (diff) |
Print build/host arch/plat in opkbuild.
Diffstat (limited to 'src')
-rw-r--r-- | src/opkbuild.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/opkbuild.sh b/src/opkbuild.sh index 64c27b6..4aa133a 100644 --- a/src/opkbuild.sh +++ b/src/opkbuild.sh @@ -88,6 +88,8 @@ main() eval "$(ob-buildenv | sed 's/^/export /')" + print_arch_stats + ob-unpacksource ob-applypatches ob-installplatconf @@ -283,4 +285,14 @@ build_source() rm -Rf "src:${src}.data" || ob_error "$(ob_get_msg 'cant_rm_src_pkg_data')" } +print_arch_stats() +{ + ob_info "$(ob_get_msg 'build_arch_stat_header')" + ob_info "$(ob_get_msg 'arch_stat_arch')" "${OB_BUILD_ARCH}" + ob_info "$(ob_get_msg 'arch_stat_plat')" "${OB_BUILD_PLATFORM}" + ob_info "$(ob_get_msg 'host_arch_stat_header')" + ob_info "$(ob_get_msg 'arch_stat_arch')" "${OB_HOST_ARCH}" + ob_info "$(ob_get_msg 'arch_stat_plat')" "${OB_HOST_PLATFORM}" +} + main "${@}" |