summaryrefslogtreecommitdiffstats
path: root/lib/buildsystem.sh
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2012-11-07 20:00:42 (EST)
committer P. J. McDermott <pjm@nac.net>2012-11-07 20:00:42 (EST)
commitbcc1d7910f668b76c53606df892b27b39522fdaa (patch)
tree92c60a8e7d6b1b37b179222ba4c406790f4985da /lib/buildsystem.sh
parente77b32854807af6ce6b532996380d2a6a09d1ba3 (diff)
parent02ff44fe4d963f290347568833846b7d8b5db854 (diff)
Merge branch 'feature/build-sys-arches'.
Diffstat (limited to 'lib/buildsystem.sh')
-rw-r--r--lib/buildsystem.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/lib/buildsystem.sh b/lib/buildsystem.sh
index 7cf70f5..0f9b8b0 100644
--- a/lib/buildsystem.sh
+++ b/lib/buildsystem.sh
@@ -66,6 +66,9 @@ oh_set_buildsystem_option()
'build-system')
_OH_BUILDSYSTEM_SYSTEM="${_ohsbso_value}"
;;
+ 'target-arch')
+ _OH_BUILDSYSTEM_TARGET_ARCH="${_ohsbso_value}"
+ ;;
*)
_oh_return 125
return ${?}
@@ -106,3 +109,18 @@ oh_buildsystem_do()
: error
fi
}
+
+oh_buildsystem_arch()
+{
+ _oh_local _ohbsa_arch _ohbsa_system
+
+ if [ ${#} -eq 2 ]; then
+ _ohbsa_arch="${1}"
+ _ohbsa_system="${2}"
+ else
+ _oh_return 125
+ return ${?}
+ fi
+
+ cat '@@ARCHTAB@@/'"${_ohbsa_arch}/${_ohbsa_system}"
+}