Browse Source

Clifford Wolf:


			
			
				rocklinux
			
			
		
Clifford Wolf 17 years ago
parent
commit
55b81e900e
7 changed files with 46 additions and 32 deletions
  1. +2
    -2
      architecture/x86/archtest.out
  2. +0
    -1
      architecture/x86/config.in
  3. +1
    -1
      architecture/x86/gcc-options
  4. +1
    -2
      architecture/x86/kernel.conf.sh
  5. +31
    -23
      package/base/gcc/parse-config
  6. +3
    -2
      package/base/glibc/config-400.in
  7. +8
    -1
      package/base/glibc/glibc.desc

+ 2
- 2
architecture/x86/archtest.out

@ -4,5 +4,5 @@ arch_sizeof_long=4
arch_sizeof_long_long=8 arch_sizeof_long_long=8
arch_sizeof_char_p=4 arch_sizeof_char_p=4
arch_bigendian=no arch_bigendian=no
arch_machine=i386
arch_target=i386-unknown-linux-gnu
arch_machine=i486
arch_target=i486-unknown-linux-gnu

+ 0
- 1
architecture/x86/config.in

@ -29,7 +29,6 @@ choice ROCKCFG_X86_BITS 32 \
if [ "$ROCKCFG_X86_BITS" = 32 ] ; then if [ "$ROCKCFG_X86_BITS" = 32 ] ; then
choice ROCKCFG_X86_OPT generic \ choice ROCKCFG_X86_OPT generic \
generic "No special optimisation" \ generic "No special optimisation" \
i386 "Optimised for Intel 386" \
i486 "Optimised for Intel 486" \ i486 "Optimised for Intel 486" \
via-c3 "Optimised for VIA CyrixIII/VIA-C3" \ via-c3 "Optimised for VIA CyrixIII/VIA-C3" \
via-c3-improved "Improved for VIA CyrixIII/VIA-C3" \ via-c3-improved "Improved for VIA CyrixIII/VIA-C3" \

+ 1
- 1
architecture/x86/gcc-options

@ -38,7 +38,7 @@ then
esac esac
case "$ROCKCFG_X86_OPT" in case "$ROCKCFG_X86_OPT" in
i386|i486)
i486)
var_append GCC2_WRAPPER_INSERT " " "-march=$ROCKCFG_X86_OPT" ;; var_append GCC2_WRAPPER_INSERT " " "-march=$ROCKCFG_X86_OPT" ;;
pentium|pentium-mmx) pentium|pentium-mmx)
var_append GCC2_WRAPPER_INSERT " " "-march=pentium" ;; var_append GCC2_WRAPPER_INSERT " " "-march=pentium" ;;

+ 1
- 2
architecture/x86/kernel.conf.sh

@ -10,8 +10,7 @@
if [ "$ROCKCFG_X86_BITS" = 32 ] ; then if [ "$ROCKCFG_X86_BITS" = 32 ] ; then
linux_arch="M486" linux_arch="M486"
for x in "i386 M386" \
"i486 M486" \
for x in "i486 M486" \
"via-c3 MCYRIXIII" \ "via-c3 MCYRIXIII" \
"via-c3-2 MVIAC3_2" \ "via-c3-2 MVIAC3_2" \
"pentium M586" \ "pentium M586" \

+ 31
- 23
package/base/gcc/parse-config

@ -120,36 +120,44 @@ if [ "$ROCKCFG_OPT" != default ] ; then
var_insert GCC_WRAPPER_REMOVE " " "-O -O[0-9s]" var_insert GCC_WRAPPER_REMOVE " " "-O -O[0-9s]"
fi fi
case "$ROCKCFG_OPT" in
smart)
var_insert GCC_WRAPPER_INSERT " " "-SPEED-O2 -SIZE-Os -pipe"
var_insert GCC_WRAPPER_FILTER "|" "gawk -f $base/misc/tools-source/smartwr.awk $base/scripts/smart_db.txt -"
case "$pkg" in
glibc*)
# do not mess with glibc -O options other than this
var_insert GCC_WRAPPER_INSERT " " "-O2 -pipe"
;; ;;
bizarre)
var_insert GCC_WRAPPER_INSERT " " "-SPEED-Os -SIZE-O2 -pipe"
var_insert GCC_WRAPPER_FILTER "|" "gawk -f $base/misc/tools-source/smartwr.awk $base/scripts/smart_db.txt -"
;;
speed)
var_insert GCC_WRAPPER_INSERT " " "-O2 -pipe"
;;
size)
var_insert GCC_WRAPPER_INSERT " " "-Os -pipe"
;;
lazy)
var_insert GCC_WRAPPER_INSERT " " "-O1 -pipe"
;;
test)
case "$pkg" in
gcc*|glibc*|binutils*|make|bzip2|gzip|coreutils|bash*|gawk|sed)
*)
case "$ROCKCFG_OPT" in
smart)
var_insert GCC_WRAPPER_INSERT " " "-SPEED-O2 -SIZE-Os -pipe"
var_insert GCC_WRAPPER_FILTER "|" "gawk -f $base/misc/tools-source/smartwr.awk $base/scripts/smart_db.txt -"
;;
bizarre)
var_insert GCC_WRAPPER_INSERT " " "-SPEED-Os -SIZE-O2 -pipe"
var_insert GCC_WRAPPER_FILTER "|" "gawk -f $base/misc/tools-source/smartwr.awk $base/scripts/smart_db.txt -"
;;
speed)
var_insert GCC_WRAPPER_INSERT " " "-O2 -pipe"
;;
size)
var_insert GCC_WRAPPER_INSERT " " "-Os -pipe" var_insert GCC_WRAPPER_INSERT " " "-Os -pipe"
;; ;;
*)
lazy)
var_insert GCC_WRAPPER_INSERT " " "-O1 -pipe" var_insert GCC_WRAPPER_INSERT " " "-O1 -pipe"
;; ;;
test)
case "$pkg" in
gcc*|binutils*|make|bzip2|gzip|coreutils|bash*|gawk|sed)
var_insert GCC_WRAPPER_INSERT " " "-Os -pipe"
;;
*)
var_insert GCC_WRAPPER_INSERT " " "-O1 -pipe"
;;
esac
;;
default)
;;
esac esac
;; ;;
default)
;;
esac esac

+ 3
- 2
package/base/glibc/config-400.in

@ -37,8 +37,9 @@ then
ROCKCFGSET_PKG_GLIBC22_USEIT=1 ROCKCFGSET_PKG_GLIBC22_USEIT=1
fi fi
choice ROCKCFG_PKG_GLIBC_BRANCH glibc26 \
glibc26 'Use glibc-2.6 (recommended)' \
choice ROCKCFG_PKG_GLIBC_BRANCH glibc27 \
glibc27 'Use glibc-2.7 (recommended)' \
glibc26 'Use glibc-2.6' \
glibc25 'Use glibc-2.5' \ glibc25 'Use glibc-2.5' \
glibc23 'Use glibc-2.3.x' \ glibc23 'Use glibc-2.3.x' \
glibc22 'Use glibc-2.2.x' glibc22 'Use glibc-2.2.x'

+ 8
- 1
package/base/glibc/glibc.desc

@ -69,5 +69,12 @@
[D] 1906445728 glibc-libidn-2.6.1.tar.gz http://ftp.gnu.org/gnu/glibc/ [D] 1906445728 glibc-libidn-2.6.1.tar.gz http://ftp.gnu.org/gnu/glibc/
#endif #endif
[CD] <COPY> cp $cachedir/glibc2[2356].cache $confdir/$pkg.cache
#if xpkg == glibc27.*
[V] 2.7
[D] 112155080 glibc-2.7.tar.bz2 http://ftp.gnu.org/gnu/glibc/
[D] 558189549 glibc-ports-2.7.tar.bz2 http://ftp.gnu.org/gnu/glibc/
[D] 2295153412 glibc-libidn-2.7.tar.gz http://ftp.gnu.org/gnu/glibc/
#endif
[CD] <COPY> cp $cachedir/glibc2[23567].cache $confdir/$pkg.cache

Loading…
Cancel
Save