summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2012-10-08 14:04:26 (EDT)
committer P. J. McDermott <pjm@nac.net>2012-10-08 14:04:26 (EDT)
commit4a11784654684a6cf30fa66e2243f043abf93624 (patch)
treea8495c5cdbd5de4fe69f3fe91755b0d392eafdfd /src
parentc8a4e7dd7528a0330e0cc6507ffa8378bea291c8 (diff)
Set arch env vars for build systems.
Diffstat (limited to 'src')
-rw-r--r--src/opkbuild.sh15
1 files changed, 13 insertions, 2 deletions
diff --git a/src/opkbuild.sh b/src/opkbuild.sh
index fbda51c..a54b74f 100644
--- a/src/opkbuild.sh
+++ b/src/opkbuild.sh
@@ -227,6 +227,15 @@ EOF
IFS=- read OPK_HOST_ARCH_CPU OPK_HOST_ARCH_KERNEL OPK_HOST_ARCH_LIBS <<EOF
${OPK_HOST_ARCH}
EOF
+
+ {
+ read OPK_BUILD_ARCH_GNU
+ read OPK_BUILD_ARCH_KBUILD
+ } <"$(ob_get_system_path 'archtab' "${OPK_BUILD_ARCH}")"
+ {
+ read OPK_HOST_ARCH_GNU
+ read OPK_HOST_ARCH_KBUILD
+ } <"$(ob_get_system_path 'archtab' "${OPK_HOST_ARCH}")"
}
make_work_area()
@@ -283,10 +292,12 @@ build_source()
print_arch_stats()
{
ob_info "$(ob_get_msg 'build_arch_stat_header')"
- ob_info "$(ob_get_msg 'arch_stat_arch')" "${OPK_BUILD_ARCH}"
+ ob_info "$(ob_get_msg 'arch_stat_arch')" \
+ "${OPK_BUILD_ARCH}" "${OPK_BUILD_ARCH_GNU}"
ob_info "$(ob_get_msg 'arch_stat_plat')" "${OPK_BUILD_PLAT}"
ob_info "$(ob_get_msg 'host_arch_stat_header')"
- ob_info "$(ob_get_msg 'arch_stat_arch')" "${OPK_HOST_ARCH}"
+ ob_info "$(ob_get_msg 'arch_stat_arch')" \
+ "${OPK_HOST_ARCH}" "${OPK_HOST_ARCH_GNU}"
ob_info "$(ob_get_msg 'arch_stat_plat')" "${OPK_HOST_PLAT}"
}