From: hackbard Date: Sun, 31 Oct 2004 18:40:46 +0000 (+0000) Subject: 31.10.2004 X-Git-Url: https://hackdaworld.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5932a45326c8148e9a3c8193214ecffeea7a5b08;p=hdw-linux%2Fhdw-linux.git 31.10.2004 --- diff --git a/doc/CHANGELOG b/doc/CHANGELOG index 7607f72..61c73dd 100644 --- a/doc/CHANGELOG +++ b/doc/CHANGELOG @@ -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 diff --git a/scripts/Build b/scripts/Build index 1dbe2fe..1f8fbf2 100755 --- a/scripts/Build +++ b/scripts/Build @@ -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() { diff --git a/scripts/Config b/scripts/Config index b059d61..9e7d704 100755 --- a/scripts/Config +++ b/scripts/Config @@ -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 ;;