summaryrefslogtreecommitdiffhomepage
path: root/sofort/cfgtest
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2020-01-05 11:05:08 +0000
committermidipix <writeonce@midipix.org>2020-01-05 11:08:09 +0000
commitf54f251000c23b4861c533c314f46299007325ea (patch)
treeb76826fb7a4f8dcfa615aec26d558ba466b0b9aa /sofort/cfgtest
parent173ab997583abb665897e3eea3baec3b1f2a11a9 (diff)
downloadsofort-f54f251000c23b4861c533c314f46299007325ea.tar.bz2
sofort-f54f251000c23b4861c533c314f46299007325ea.tar.xz
build system: cfgtest.sh: (debatefully) distinguish between host and target.
Diffstat (limited to 'sofort/cfgtest')
-rw-r--r--sofort/cfgtest/cfgtest.sh16
1 files changed, 8 insertions, 8 deletions
diff --git a/sofort/cfgtest/cfgtest.sh b/sofort/cfgtest/cfgtest.sh
index ba55ba9..861e5dc 100644
--- a/sofort/cfgtest/cfgtest.sh
+++ b/sofort/cfgtest/cfgtest.sh
@@ -1,15 +1,15 @@
# cfgtest.sh: sofort's config test framework,
# for use from within a project's custom cfgdefs.sh.
-# in the common scenario, target-specific tests are preceded
-# by a single invocation of cfgtest_target_section, whereas
+# in the common scenario, host-specific tests are preceded
+# by a single invocation of cfgtest_host_section, whereas
# native (build) system tests are preceded by the invocation
# of cfgtest_native_section.
# cfgdefs fraework variables:
# mb_cfgtest_cc: the compiler used for the current test
# mb_cfgtest_cflags: the compiler flags used for the current test
-# mb_cfgtest_cfgtype: the type of the current test (target/native)
+# mb_cfgtest_cfgtype: the type of the current test (host/native)
# mb_cfgtest_makevar: the make variable affected by the current test
# mb_cfgtest_headers: headers for ad-hoc inclusion with the current test
@@ -32,7 +32,7 @@ cfgtest_comment()
}
-cfgtest_target_section()
+cfgtest_host_section()
{
mb_cfgtest_cflags=
mb_cfgtest_cflags="$mb_cfgtest_cflags $mb_cflags_debug $mb_cflags_config"
@@ -43,9 +43,9 @@ cfgtest_target_section()
mb_cfgtest_cflags="$mb_cfgtest_cflags $mb_cflags_last $mb_cflags_once"
mb_cfgtest_cc="$ccenv_host_cc"
- mb_cfgtest_cfgtype='target'
+ mb_cfgtest_cfgtype='host'
- cfgtest_comment 'target-specific tests'
+ cfgtest_comment 'host-specific tests'
}
@@ -78,7 +78,7 @@ cfgtest_makevar_append()
cfgtest_cflags_append()
{
- if [ $mb_cfgtest_cfgtype = 'target' ]; then
+ if [ $mb_cfgtest_cfgtype = 'host' ]; then
mb_internal_makevar='CFLAGS_CONFIG'
else
mb_internal_makevar='NATIVE_CFLAGS'
@@ -94,7 +94,7 @@ cfgtest_cflags_append()
cfgtest_ldflags_append()
{
- if [ $mb_cfgtest_cfgtype = 'target' ]; then
+ if [ $mb_cfgtest_cfgtype = 'host' ]; then
mb_internal_makevar='LDFLAGS_CONFIG'
else
mb_internal_makevar='NATIVE_LDFLAGS'