summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2014-03-14 09:28:19 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2014-03-14 09:28:19 +0100
commitbc561e500e22bc9d953fd9a80144f80295a4cbbd (patch)
treedc80cd4fb596e17e809743442a24c1c6a2b8ab02 /scripts
parent5309511c9574091fb20a60c09e3b726c6c8e20b9 (diff)
convert to miniconfig
only miniconfig is used for all targets. aranym support is still broken/experimental. 32 bit kernel support for 64 targets need to be fixed. tested on usb boot on ibm-x40
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/install.sh19
1 files changed, 4 insertions, 15 deletions
diff --git a/scripts/install.sh b/scripts/install.sh
index ab4ac8635..7c93a12a3 100755
--- a/scripts/install.sh
+++ b/scripts/install.sh
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
#-
-# Copyright © 2010, 2011
+# Copyright © 2010-2014
# Waldemar Brodkorb <wbx@openadk.org>
# Thorsten Glaser <tg@mirbsd.org>
#
@@ -32,25 +32,14 @@
# • create a cfgfs partition
TOPDIR=$(pwd)
+HOST=$(gcc -dumpmachine)
me=$0
case :$PATH: in
-(*:$TOPDIR/bin/tools:*) ;;
-(*) export PATH=$PATH:$TOPDIR/bin/tools ;;
+(*:$TOPDIR/host_$HOST/usr/bin:*) ;;
+(*) export PATH=$PATH:$TOPDIR/host_$HOST/usr/bin ;;
esac
-test -n "$KSH_VERSION" || if ! which mksh >/dev/null 2>&1; then
- make package=mksh fetch || exit 1
- df=$(cd package/mksh; TOPDIR="$TOPDIR" gmake show=DISTFILES)
- mkdir -p build_mksh
- gzip -dc dl/"$df" | (cd build_mksh; cpio -mid)
- cd build_mksh/mksh
- bash Build.sh -r -c lto || exit 1
- cp mksh "$TOPDIR"/bin/tools/
- cd "$TOPDIR"
- rm -rf build_mksh
-fi
-
test -n "$KSH_VERSION" || exec mksh "$me" "$@"
if test -z "$KSH_VERSION"; then
echo >&2 Fatal error: could not run myself with mksh!