diff options
author | midipix <writeonce@midipix.org> | 2018-12-23 04:27:44 -0500 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2018-12-24 10:51:57 -0500 |
commit | 6b54affb86868ea60b49dba64fbda7e3ba084b4f (patch) | |
tree | e7c970db1919e5084f515fb3a365060ab5826129 /sysinfo/host | |
parent | 1e4d9f70242986c5cf12922a5f702c937c006e79 (diff) | |
download | bfirm-6b54affb86868ea60b49dba64fbda7e3ba084b4f.tar.bz2 bfirm-6b54affb86868ea60b49dba64fbda7e3ba084b4f.tar.xz |
build system: target & native cchost logic: initial clean-up.
Diffstat (limited to 'sysinfo/host')
-rwxr-xr-x | sysinfo/host/host.sh | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/sysinfo/host/host.sh b/sysinfo/host/host.sh deleted file mode 100755 index 686edca..0000000 --- a/sysinfo/host/host.sh +++ /dev/null @@ -1,48 +0,0 @@ -#!/bin/sh - -error_msg() -{ - echo $@ >&2 -} - -host_test() -{ - mb_hdrdir=$(pwd)/build - mkdir -p $mb_hdrdir || exit 2 - - if [ -z "$mb_compiler" ]; then - echo "config error: compiler not set." - exit 2 - fi - - $mb_compiler $mb_cflags -dumpmachine && return 0 - - error_msg "config error: invalid compiler." - exit 2 -} - -# one: args -for arg ; do - case "$arg" in - --help) usage - ;; - --compiler=*) - mb_compiler=${arg#*=} - ;; - --cflags=*) - mb_cflags=${arg#*=} - ;; - *) - error_msg ${arg#}: "unsupported config argument." - exit 2 - ;; - esac -done - - -# two: test -host_test - - -# all done -exit 0 |