Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Verständnis-Problem bei Variablen der bash
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
Mr. Anderson
l33t
l33t


Joined: 22 Apr 2004
Posts: 762

PostPosted: Wed Aug 22, 2012 1:56 pm    Post subject: Verständnis-Problem bei Variablen der bash Reply with quote

Das hier startet in der Linux-Konfiguration das user-mode-Menü:
Code:
ARCH="um" make menuconfig


Das hier auch:
Code:
make ARCH="um" menuconfig


Diese beiden Varianten bringen den SUBARCH-Wert in die Kernel-Konfiguration:
Code:
make ARCH="um" SUBARCH="i386" menuconfig

Code:
ARCH="um" make SUBARCH="i386" menuconfig


Aber diese beiden Varianten nicht:
Code:
SUBARCH="i386" make ARCH="um" menuconfig

Code:
ARCH="um" SUBARCH="i386" make menuconfig


Anders gesagt: wenn SUBARCH="i386" vor make steht, kommt es nicht in der Konfiguration an. Wenn es danach steht, schon. Woran liegt das?
Back to top
View user's profile Send private message
py-ro
Veteran
Veteran


Joined: 24 Sep 2002
Posts: 1734
Location: Velbert

PostPosted: Wed Aug 22, 2012 2:07 pm    Post subject: Reply with quote

Wenn es nach make steht ist es ein Parameter der make übergeben wird und keine Bash-Variable.

Py
Back to top
View user's profile Send private message
bell
Guru
Guru


Joined: 27 Nov 2007
Posts: 508

PostPosted: Wed Aug 22, 2012 4:44 pm    Post subject: Reply with quote

Du musst in das Makefile reinschauen was "make" mit den Parametern und Umgebungsvariablen macht.
Ich stimme py-ro zu, es sind zwei Paar Schuhe.
Back to top
View user's profile Send private message
Mr. Anderson
l33t
l33t


Joined: 22 Apr 2004
Posts: 762

PostPosted: Wed Aug 22, 2012 5:03 pm    Post subject: Reply with quote

Ok, danke. Ich hatte mir nicht vorstellen können, dass make Parameter wie Umgebungsvariablen behandeln würde, sondern hatte mit irgendwelcher Shell-Magie gerechnet.
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