From a5bba3e6fc970d6ea91d9679dbeb0c90fcf60b65 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Sat, 25 May 2013 15:38:01 -0400 Subject: 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. --- 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() -- cgit v0.9.1