]> hackdaworld.org Git - hdw-linux/hdw-linux.git/commitdiff
31.10.2004
authorhackbard <hackbard>
Sun, 31 Oct 2004 18:40:46 +0000 (18:40 +0000)
committerhackbard <hackbard>
Sun, 31 Oct 2004 18:40:46 +0000 (18:40 +0000)
doc/CHANGELOG
scripts/Build
scripts/Config

index 7607f7220adfed5db80fdc2232f6e84c1b50164b..61c73dd3233fd083f11810bcbd95902c770a177f 100644 (file)
@@ -1,3 +1,8 @@
+*) 2004-10-31
+
+- some lines adding general mips support
+- very beginning of new crossbuild implementation ;)
+
 *) 2004-10-21
 
 - added zvbi library package
index 1dbe2fe74f5b5e0622d7381ef5878f934aa79adf..1f8fbf2ba197be54ff2f16e4c87118a7e68074fa 100755 (executable)
@@ -150,15 +150,16 @@ echo "found $package config file ..."
        confopt="$confopt --datadir=$prefix/share"
        confopt="$confopt --infodir=$prefix/info"
        confopt="$confopt --mandir=$prefix/man"
-       confopt="$confopt --build=$hdw_arch_build"
-       confopt="$confopt --host=$hdw_arch_target"
-       # crosscompiling
-       [ "$hdw_crossbuild" != "0" ] && \
-               confopt="$confopt --target=$hdw_arch_target"
        if [ "$hdw_status" -gt "1" ] ; then
                confopt="$confopt --localstatedir=$localstatedir"
                confopt="$confopt --sysconfdir=$sysconfdir"
        fi
+       # architecture specific stuff
+       confopt="$confopt --build=$hdw_arch_build"
+       confopt="$confopt --host=$hdw_arch_target"
+       # crosscompiling
+       [ "$package" = "gcc" -o "$package" = "binutils" ] && \
+               confopt="$confopt --target=$hdw_arch_target"
 
        # buildfunctions
        pre_install()   { 
index b059d612d72e793721f2b3aab2a86043bb1e80bd..9e7d70406d8939c66bf06e51174d74985348c7a5 100755 (executable)
@@ -95,6 +95,9 @@ case "$hdw_arch" in
                hdw_arch_target="powerpc-unknown-linux-gnu"
                [ ! -z "$hdw_arch_opt" ] && hdw_cflags="-march=${hdw_arch_opt}"
                hdw_arch_build=${hdw_arch_build//ppc/powerpc} ;;
+       mips)   hdw_arch_target="mips-unknown-linux-gnu"
+               [ ! -z "$hdw_arch_opt" ] && hdw_cflags="-march=${hdw_arch_opt}"
+               ;;
        *)      echo "not supported yet"
                echo "please choose a valid optimization and build platform."
                exit 1 ;;