add simulator target for h8/300, reorg no-MMU
[openadk.git] / scripts / adkprepare.sh
blob5b18d30e3a2120e6653c305a9df689c8d4d04386
1 #!/bin/sh
2 # This file is part of the OpenADK project. OpenADK is copyrighted
3 # material, please see the LICENCE file in the top-level directory.
5 os=$(uname)
6 ver=$(uname -r)
7 arch=$(uname -m)
9 linux() {
10 echo "Preparing Linux for OpenADK is not implemented, yet"
11 exit 1
14 darwin() {
15 echo "Preparing MacOS X for OpenADK, is not implemented, yet"
16 exit 1
19 openbsd() {
20 echo "Preparing OpenBSD for OpenADK"
21 PKG_PATH="ftp://ftp.openbsd.org/pub/OpenBSD/${ver}/packages/${arch}/"
22 export PKG_PATH
23 pkg_add -v gmake
24 pkg_add -v bash
25 pkg_add -v wget
26 pkg_add -v gtar--
27 pkg_add -v gawk
28 pkg_add -v gsed
31 netbsd() {
32 echo "Preparing NetBSD for OpenADK"
33 PKG_PATH="ftp://ftp.netbsd.org/pub/pkgsrc/packages/NetBSD/${arch}/${ver}/All/"
34 export PKG_PATH
35 pkg_add -vu gmake
36 pkg_add -vu bash
37 pkg_add -vu wget
38 pkg_add -vu gtar
39 pkg_add -vu gsed
40 pkg_add -vu gawk
43 freebsd() {
44 echo "Preparing FreeBSD for OpenADK"
45 pkg_add -r gmake bash wget gtar gsed gawk
48 case $os in
49 Linux)
50 linux
52 FreeBSD)
53 freebsd
55 OpenBSD)
56 openbsd
58 NetBSD)
59 netbsd
61 Darwin)
62 darwin
65 echo "OS not supported"
67 esac