Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Kernel mit den Einstellungen aus make.conf compilieren
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
Dimitri
Guru
Guru


Joined: 24 Jul 2002
Posts: 373
Location: Niederbayern/Germany

PostPosted: Fri Sep 27, 2002 11:05 pm    Post subject: Kernel mit den Einstellungen aus make.conf compilieren Reply with quote

Hi,
wie kann ich den Kernel mit den Compilerflags aus der /etc/make.conf compilieren?

Dim
Back to top
View user's profile Send private message
steveb
Advocate
Advocate


Joined: 18 Sep 2002
Posts: 4564

PostPosted: Fri Sep 27, 2002 11:55 pm    Post subject: Reply with quote

ich rate dir davon ab, irgendwelche änderungen zu machen! aber ich beantworte dir dennoch deine frage. schau einfach mal in:
Code:
/usr/src/linux/Makefile
/usr/src/linux/arch/i386/Makefile


solltest du eine andere architektur als i386 einsetzen, musst du natürlich ein anderes verzeichnis als /arch/i386/ nehmen.

die werte die du ändern solltest sind:
HOSTCFLAGS
CFLAGS


gruss

steve
Back to top
View user's profile Send private message
Dimitri
Guru
Guru


Joined: 24 Jul 2002
Posts: 373
Location: Niederbayern/Germany

PostPosted: Sat Sep 28, 2002 12:19 am    Post subject: Reply with quote

Danke, hast Du schlechte Erfahrungen mit dem verändern der Parameter gemacht?

Dim
Back to top
View user's profile Send private message
steveb
Advocate
Advocate


Joined: 18 Sep 2002
Posts: 4564

PostPosted: Sat Sep 28, 2002 10:18 am    Post subject: Reply with quote

nein. aber solche optimierungen lohnen sich meistens nicht. und zur zeit ist der 2.4er kernel relativ gut bedient mit den bereits vorhandenen einstellungen.

gruss

steve
Back to top
View user's profile Send private message
Dimitri
Guru
Guru


Joined: 24 Jul 2002
Posts: 373
Location: Niederbayern/Germany

PostPosted: Sat Sep 28, 2002 11:40 am    Post subject: Reply with quote

Hi,
ich hab das ganze jetzt mal ausprobiert und meine Einstelleungen aus make.conf (-march=athlon-xp -pipe -m3dnow -mmmx -msse -fomit-frame-pointer -mfpmath=sse -funroll-loops -falign-functions=4 -frerun-cse-after-loop -frerun-loop-opt -ffast-math -fforce-addr) eingetragen. Lediglich wenn -O3 angegeben wird gibts einen Fehler. O2 läuft ohne Probleme durch

Dim
Back to top
View user's profile Send private message
Dimitri
Guru
Guru


Joined: 24 Jul 2002
Posts: 373
Location: Niederbayern/Germany

PostPosted: Sat Sep 28, 2002 12:54 pm    Post subject: Reply with quote

Hi,
also meiner Meinung lohnt sich das ganze sehr wohl. Ich spare mit dem Kernel ca. 3!! Sekunden beim booten. Und das praktisch zum Nulltarif

Dim
Back to top
View user's profile Send private message
de4d
Apprentice
Apprentice


Joined: 12 Sep 2002
Posts: 181
Location: fr. i. br. (ger)

PostPosted: Sat Sep 28, 2002 12:55 pm    Post subject: Reply with quote

hab das nicht ausprobiert, aber wenn der compile process durchlaeuft heisst das nich dass der kernel (stabil) laeuft, sondern nur dass er 'da' ist.
ich glaube steveb hat davon wegen des ersteren abgeraten.
_________________
void main(){fork();main();}
Back to top
View user's profile Send private message
Dimitri
Guru
Guru


Joined: 24 Jul 2002
Posts: 373
Location: Niederbayern/Germany

PostPosted: Sat Sep 28, 2002 1:10 pm    Post subject: Reply with quote

Ist mir schon klar. Aber ich teste ihn grade unter Last und bis jetzt weder Abstürze oder sonstiges. Zumindest für meine Rechnerkonfiguration hab ich keine Probleme feststellen können. Einen Versuch ist es allemal wert.

Dim

PS: Ein mv /boot/bzImage /boot/bzImage.old ist ja sowieso Pflicht wenn man einen neuen Kernel ausprobiert. Ist also alles sicher
Back to top
View user's profile Send private message
ddanier
Tux's lil' helper
Tux's lil' helper


Joined: 19 May 2002
Posts: 87

PostPosted: Sat Sep 28, 2002 2:59 pm    Post subject: Reply with quote

Testing? What's that? If it compiles, it is good, if it boots up it is perfect. --- Linus Torvalds
:D

ich denke mal das kann jeder selbst entscheiden, ein restrisiko bleibt natürlich immer, aber wenn man den alten kernel kopiert und dazu nochn eintrag im bootmanager erstellt (falls man mal ekien bootcd zur hand hat) sollte eigentlich nix passieren
_________________
My Box said: "Install Win95 or better ..." So I installed Linux.
Back to top
View user's profile Send private message
Dimitri
Guru
Guru


Joined: 24 Jul 2002
Posts: 373
Location: Niederbayern/Germany

PostPosted: Sat Sep 28, 2002 3:22 pm    Post subject: Reply with quote

Richtig,
no risk no Fun. Kann auch alles mit -mcpu-386 kompilieren
Aber wo bleibt dann der Spass mit gentoo?

Dim
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum