From 3e64193f946dcb71dc58b0a4e5f5efcbe2fdf538 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Sun, 22 Apr 2012 18:54:14 -0400 Subject: Use new OH_HOST_* variables in architecture lib. --- diff --git a/lib/architecture.sh b/lib/architecture.sh index 79f3dbb..e8ed182 100644 --- a/lib/architecture.sh +++ b/lib/architecture.sh @@ -32,7 +32,7 @@ oh_is_buildable() # Platform. if [ -n "$(echo "${_pkgarch}" | grep -E '^[^-]+$')" ]; then - return [ "${_pkgarch}" = "${OH_PLATFORM}" ] + return [ "${_pkgarch}" = "${OH_HOST_PLATFORM}" ] fi # Tokenize the 3-tuple binary architecture. @@ -41,11 +41,11 @@ ${_pkgarch} EOF # Test each element of the tuple. - [ "${_pkgcpu}" != any -a "${_pkgcpu}" != "${OH_ARCH_CPU}" ] && + [ "${_pkgcpu}" != any -a "${_pkgcpu}" != "${OH_HOST_ARCH_CPU}" ] && return 1 - [ "${_pkgkernel}" != any -a "${_pkgkernel}" != "${OH_ARCH_KERNEL}" ] && + [ "${_pkgkernel}" != any -a "${_pkgkernel}" != "${OH_HOST_ARCH_KERNEL}" ] && return 1 - [ "${_pkglibs}" != any -a "${_pkglibs}" != "${OH_ARCH_LIBS}" ] && + [ "${_pkglibs}" != any -a "${_pkglibs}" != "${OH_HOST_ARCH_LIBS}" ] && return 1 return 0 @@ -61,10 +61,10 @@ oh_get_package_architecture() return 0 fi - if [ -n "${OH_PLATFORM}" ]; then - echo "${OH_PLATFORM}" + if [ -n "${OH_HOST_PLATFORM}" ]; then + echo "${OH_HOST_PLATFORM}" else - echo "${OH_ARCH}" + echo "${OH_HOST_ARCH}" fi return 0 -- cgit v0.9.1