From: gobo72 Date: Sat, 5 Mar 2011 22:27:42 +0000 (+0000) Subject: Enlevé les CFLAGS spécifiques pour eglibc X-Git-Url: http://gitweb.hugovil.com/?a=commitdiff_plain;h=609b33c0aeaf4095bc8d298eb1f67b3a3489c010;p=hvlinux.git Enlevé les CFLAGS spécifiques pour eglibc --- diff --git a/config/sysinfos.atom b/config/sysinfos.atom new file mode 100644 index 0000000..f894407 --- /dev/null +++ b/config/sysinfos.atom @@ -0,0 +1,95 @@ +#!/bin/bash + +# This file contains the informations specific to the target system +# onto which Linux-HV will be installed + +# This is the number of make jobs that can be executed +# simultaneously. Normally, a value of 2 per processor +# gives good results. +MAKEJOBS=1 + +# Installation type: server, ltsp-server or workstation. +INST_TYPE="workstation" + +# New user to create +REGUSER="hugo" + +# Destination path where to install new Linux-HV system. This is usually where +# you have mounted your new LFS partition, but it can also be any directory. +# This is relevant only for stage 0 and 1. +LFS="/mnt/stockage/hvlinux-hp-mini" + +# Destination partition where to install new Linux-HV system +LFS_PARTITION="/dev/sda3" + +# Boot partition (if applicable) +BOOT_PARTITION="/dev/sda1" + +# Swap partition (if applicable) +#SWAP_PARTITION="/dev/sdb2" + +# Define this when cross-compiling to the desired target +# architecture. Default is x86 32-bits architecture (i686). +# arm926t - ARM 926T little endian +# x86 (i686) +# x86_64 (AMD Athlon 64) +HVL_TARGET="x86" + +# Used for setting '-march=xxx' option in CFLAGS and CPPFLAGS +MARCH_FLAGS="-march=atom -mssse3 -mfpmath=sse -fomit-frame-pointer" + +# Keyboard mapping (example: us) +KEYBOARD="us" + +# Sound card support: yes or no +SOUND_CARD="yes" + +# Removable media drives. Comment if your system doesn't have one. +#CDROM="/dev/sr0" + +# Set to yes to have SANE support +SANE_SUPPORT="yes" +# If your scanner is located onto a remote computer, define the following +# variable to the IP address of that remote computer. +SANE_SERVER="" + +# Define this if you want to use a remote CUPS print server +#CUPS_SERVER="server.hugovil.com" + +TIMEZONE="America/Montreal" + +# General network settings +INTERFACES="eth0" +MACHINE_NAME="gresimuth" +DOMAIN="mongol.com" +LAN_NETWORK_MASK="192.168.1.0/24" # Utilise par sane in stage3 +# Define to yes if you have a dynamic address and you use a dynamic dns +# service. +USE_DYNAMIC_DNS="no" + +# Network interface card eth0 settings (ROUTEUR/INTERNET) +BOOTPROTO[0]="dhcp" +IP_ADDRESS[0]="" +PREFIX_LENGTH[0]="" +# GATEWAY is not required if using DHCP +GATEWAY[0]="" + +# DNS servers addresses (not required if using DHCP) +NAMESERVER[0]="" + +# Define this if you want the mail addressed to the root user automatically +# be forwarded to someone else +MAIL_ADMIN="hugo" + +# Define to unix (mbox) or mbx +MAILBOX_FORMAT=unix + +# Alternate port for Sendmail (comment this line to use the standard port 25) +SENDMAIL_PORT="25" + +# Alternate port for Apache (comment this line to use the standard port 80) +HTTPD_PORT="80" +APACHE_USER="www" + +# Samba support +USE_SAMBA="no" diff --git a/stage0/pkg/eglibc b/stage0/pkg/eglibc index 268e0b9..be97599 100644 --- a/stage0/pkg/eglibc +++ b/stage0/pkg/eglibc @@ -19,15 +19,6 @@ hvconfig_pre() --with-binutils=/cross-tools/bin \ --with-headers=/tools/include" - case "${HVL_TARGET}" in - "x86") - CFLAGS="-march=$(cut -d- -f1 <<< ${CLFS_TARGET}) -mtune=native -g -O2" - ;; - "x86_64") - CFLAGS="-mtune=native -g -O2" - ;; - esac - cd ${LFS_TMP}/${PACKAGE} decompress_package ${EGLIBC_PORTS} $(pwd) 1> /dev/null @@ -53,5 +44,4 @@ hvconfig_post() unset CC unset AR unset RANLIB - unset CFLAGS } diff --git a/stage2/pkg/eglibc b/stage2/pkg/eglibc index d53de20..6aa0607 100644 --- a/stage2/pkg/eglibc +++ b/stage2/pkg/eglibc @@ -2,8 +2,6 @@ hvconfig_pre() { - export CFLAGS="-mtune=generic -g -O2" - CONFIGURE_OPTS="\ ${CONFIGURE_OPTS} \ --disable-profile \ @@ -11,12 +9,6 @@ hvconfig_pre() --enable-kernel=$(get_pkg_ver ${KERNEL}) \ --libexecdir=/usr/lib/eglibc" - case "${HVL_TARGET}" in - "x86") - CFLAGS="-march=$(cut -d- -f1 <<< ${CLFS_TARGET}) ${CFLAGS}" - ;; - esac - # When running make install, a script called test-installation.pl performs a # small sanity test on our newly installed Glibc. However, because our # toolchain still points to the /tools directory, the sanity test would be @@ -39,11 +31,6 @@ hvconfig_pre() esac } -hvconfig_post() -{ - unset CFLAGS -} - hvbuild() { make