toolchain modoifications
[hdw-linux/hdw-linux.git] / scripts / Build
index a3ed9a8..cd55771 100755 (executable)
@@ -35,8 +35,7 @@ if [ -z "$package" ]; then
 fi
 
 if [ -z "$stage" ]; then
-       echo "stage level not specified. something went wrong ... hey,"
-       echo "this is a development version ;)"
+       echo "no stage level specified, abort."
        exit 1
 fi
 
@@ -122,7 +121,7 @@ echo "found $package config file ..."
        prefix=""; docdir=""
        if [ "$stage" -lt "2" ] ; then
                # use the symlink as prefix
-               prefix="/${s1_prefix}"
+               prefix="/${tc_name}"
                docdir="$prefix/share/doc/$package"
                install_conf="PREFIX=$prefix"
        else
@@ -186,7 +185,7 @@ echo "found $package config file ..."
        
        # flist find variables/command
        flist_path="bin/ boot/ etc/ lib/ opt/ sbin/ usr/ var/"
-       [ "$stage" -lt "2" ] && flist_path="${flist_path} ${s1_prefix}/"
+       [ "$stage" -lt "2" ] && flist_path="${flist_path} ${tc_name}/"
        flist_cmd="find \$flist_path \( -cnewer $root/.time_$package -o \
                -newer $root/.time_$package \) \( -not -type d -o \
                -type d -empty \) -print"
@@ -391,7 +390,7 @@ echo "found $package config file ..."
                                        grep -v '^ldd'`; do
                                for rpkg in `grep $rdep -r \
                                                $root/var/adm/flists | \
-                                               grep -v $s1_prefix | \
+                                               grep -v $tc_name | \
                                                awk -F: '{ print $2 }'`; do
                                        add=1
                                        for cmp in $alldeps; do
@@ -411,7 +410,7 @@ echo "found $package config file ..."
                                        grep -v '^ldd'`; do
                                for rpkg in `grep $rdep -r \
                                                $root/var/adm/flists | \
-                                               grep -v $s1_prefix | \
+                                               grep -v $tc_name | \
                                                awk -F: '{ print $2 }'`; do
                                        add=1
                                        for cmp in $alldeps; do