]> git.karo-electronics.de Git - karo-tx-redboot.git/blobdiff - build.sh
fixed memory timing setup
[karo-tx-redboot.git] / build.sh
index e258acc4f290e5163057ff5a93ca4ccfee230e66..c667d27bdfe065120f9aa1dd84f95b536365c39b 100644 (file)
--- a/build.sh
+++ b/build.sh
@@ -20,7 +20,7 @@ error() {
 
 build_host_tools() {
     echo "Building host tools in $tools_dir"
-
+    # Debian packages tcl-dev and tk-dev are required for this build
     local wd="$PWD"
     local tcldirs="/usr/lib/tcl /usr/local/lib/tcl"
     local config_opts=""
@@ -32,6 +32,7 @@ build_host_tools() {
     done
     if [ -z "$config_opts" ];then
        for d in /usr/lib/tcl*;do
+           [ -d "$d" ] || continue
            config_opts="$config_opts --with-tcl-version=${d##*tcl}"
        done
     fi
@@ -40,6 +41,7 @@ build_host_tools() {
        exit 1
     fi
 
+    export TCL_INC_DIR="$(. /usr/lib/tclConfig.sh; echo $TCL_INCLUDE_SPEC | sed 's/^-I//')"
     mkdir -p "$tools_dir"
     cd "$tools_dir"
     sh ../src/configure $config_opts