reorganized Config file
[hdw-linux/hdw-linux.git] / scripts / Config
index 2804a19..9d85cc0 100755 (executable)
@@ -49,7 +49,7 @@ fi
 
 # lets see what root is:
 root=""
-if [ "$hdw_crossbuild" != "0" -a "$hdw_status" -lt "2" ] ; then
+if [ "$hdw_crossbuild" != "0" -o "$hdw_status" -lt "2" ] ; then
        # check for properly configured build directory
        if [ -z "$hdw_build_dir" ] ; then
                echo "please set hdw_build_dir in ./Config!"
@@ -112,6 +112,14 @@ case "$hdw_arch" in
                        hdw_cflags="-mcpu=${hdw_arch_opt}"
                fi
                hdw_arch_build=${hdw_arch_build//ppc/powerpc} ;;
+       ppc64)
+               hdw_arch_target="powerpc64-unknown-linux-gnu"
+               if [ -z "$hdw_arch_opt" ] ; then
+                       hdw_cflags="-mcpu=common"
+               else
+                       hdw_cflags="-mcpu=${hdw_arch_opt}"
+               fi
+               hdw_arch_build=${hdw_arch_build//ppc64/powerpc64} ;;
        mips)   hdw_arch_target="mips-unknown-linux-gnu"
                if [ -z "$hdw_arch_opt" ] ; then
                        echo "info: no optimization set"
@@ -136,6 +144,7 @@ hdw_arch_host=${hdw_arch_build}
 hdw_arch_prefix="$hdw_arch_host-"
 
 # print decissions for debugging ...
+echo "root variable set to '$root'"
 echo "hdw_arch_target variable set to $hdw_arch_target"
 echo "hdw_arch_build variable set to $hdw_arch_build"
 echo "hdw_arch_host variable ste to $hdw_arch_host"