summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2013-05-25 15:38:01 (EDT)
committer P. J. McDermott <pjm@nac.net>2013-05-25 15:38:01 (EDT)
commita5bba3e6fc970d6ea91d9679dbeb0c90fcf60b65 (patch)
tree3b4e1dba13a959703409e6639750b8b76eb2c896
parent912d70af7dac244d93cb875a824912ba8437cec5 (diff)
Set Host-Arch and Host-Plat substvars.
If ob_set_package_substvars() is called outside of a build environment, the values of these substvars will be null. These substvars are finally specified as part of SPF 2.0 as of 2013-05-25. They facilitate the cross building of packages with platform configurations.
-rw-r--r--lib/package/2.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/package/2.sh b/lib/package/2.sh
index 5b8b0bb..b3dfc52 100644
--- a/lib/package/2.sh
+++ b/lib/package/2.sh
@@ -173,6 +173,8 @@ _ob_set_package_substvars_2()
ob_set_substvar 'Source-Version' "$(ob_get_source_parameter 'Version')"
ob_set_substvar 'Binary-Version' "$(ob_get_source_parameter 'Version')"
+ ob_set_substvar 'Host-Arch' "${OPK_HOST_ARCH}"
+ ob_set_substvar 'Host-Plat' "${OPK_HOST_PLAT}"
}
_ob_substvar_2()