summaryrefslogtreecommitdiffhomepage
path: root/project
diff options
context:
space:
mode:
Diffstat (limited to 'project')
-rw-r--r--project/config/cfgdefs.sh46
-rw-r--r--project/config/cfgdefs.usage0
2 files changed, 46 insertions, 0 deletions
diff --git a/project/config/cfgdefs.sh b/project/config/cfgdefs.sh
new file mode 100644
index 0000000..eb04350
--- /dev/null
+++ b/project/config/cfgdefs.sh
@@ -0,0 +1,46 @@
+for arg ; do
+ case "$arg" in
+ *)
+ error_msg ${arg#}: "unsupported config argument."
+ exit 2
+ esac
+done
+
+cfgdefs_set_arch()
+{
+ if [ -n "$mb_arch" ]; then
+ return 0
+ fi
+
+ case "$mb_cchost" in
+ *-*-*-* )
+ mb_arch=${mb_cchost%-*-*-*}
+ ;;
+ *-*-* )
+ mb_arch=${mb_cchost%-*-*}
+ ;;
+ *-* )
+ mb_arch=${mb_cchost%-*-*-*}
+ ;;
+ * )
+ mb_arch='unknown'
+ ;;
+ esac
+
+ if [ "$mb_os" = 'midipix' ]; then
+ case "$mb_arch" in
+ x86_64 )
+ mb_arch='nt64'
+ ;;
+ i[3-6]86 )
+ mb_arch='nt32'
+ ;;
+ esac
+ fi
+}
+
+# arch
+cfgdefs_set_arch
+
+# all done
+return 0
diff --git a/project/config/cfgdefs.usage b/project/config/cfgdefs.usage
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/project/config/cfgdefs.usage