Skip to contentSkip to conversation

Top config.mk: add include/config.mk

PATCH New Joakim Tjernlund 2 participants 7 messages Jan 17, 2011 – Mar 22, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Top config.mk: add include/config.mk

Seems to that the top level config.mk should include the auto generated include/config.mk so that all Makefile's pickup those definitions.

---
 config.mk |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
config.mk +1 -0
index bcda776..c7534fb 100644
@@ -117,6 +117,7 @@ RANLIB	= $(CROSS_COMPILE)RANLIB
 
 # Load generated board configuration
 sinclude $(OBJTREE)/include/autoconf.mk
+sinclude $(OBJTREE)/include/config.mk
 
 # Some architecture config.mk files need to know what CPUDIR is set to,
 # so calculate CPUDIR before including ARCH/SOC/CPU config.mk files.
Signature · 1 line
1.7.3.4
#1 lore raw

PATCH 1/1 Top config.mk: add include/config.mk

Quoted 24 lines

Seems to that the top level config.mk should include the auto generated include/config.mk so that all Makefile's pickup those definitions.

---
 config.mk |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
config.mk +1 -1
index bcda776..c7534fb 100644
@@ -117,6 +117,7 @@ RANLIB   = $(CROSS_COMPILE)RANLIB
 
 # Load generated board configuration
 sinclude $(OBJTREE)/include/autoconf.mk
+sinclude $(OBJTREE)/include/config.mk
 
 # Some architecture config.mk files need to know what CPUDIR is set to,
 # so calculate CPUDIR before including ARCH/SOC/CPU config.mk files.
--
Quoted 1 line

1.7.3.4

Ping?

#2 lore raw

PATCH 1/1 Top config.mk: add include/config.mk

Dear Joakim Tjernlund,

Quoted 21 lines · In message <OF749BBC82.7AA2F037-ONC1257821.0069EDA0-C1257821.0069FC15@transmode…
Quoted 21 lines

Seems to that the top level config.mk should include the auto generated include/config.mk so that all Makefile's pickup those definitions.

---
 config.mk |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
config.mk +1 -0
index bcda776..c7534fb 100644
@@ -117,6 +117,7 @@ RANLIB   = $(CROSS_COMPILE)RANLIB
 
 # Load generated board configuration
 sinclude $(OBJTREE)/include/autoconf.mk
+sinclude $(OBJTREE)/include/config.mk
 
Quoted 6 lines
Quoted 4 lines
config.mk +0 -1
 # Some architecture config.mk files need to know what CPUDIR is set to,
 # so calculate CPUDIR before including ARCH/SOC/CPU config.mk files.
--

1.7.3.4

Ping?

What is the exact problem you are trying to fix? Do you have a test case?

Best regards,

Wolfgang Denk

Signature · 7 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Severe culture shock results when experts from another protocol suite
[...] try to read OSI documents. The term "osified" is used to  refer
to  such  documents. [...] Any relationship to the word "ossified" is
purely intentional.                                - Marshall T. Rose
#3 lore raw

PATCH 1/1 Top config.mk: add include/config.mk

Wolfgang Denk <[email protected]> wrote on 2011/01/23 20:35:48:

Quoted 32 lines

Dear Joakim Tjernlund,

Quoted 21 lines · In message <OF749BBC82.7AA2F037-ONC1257821.0069EDA0-C1257821.0069FC15@transmode…
Quoted 21 lines

Seems to that the top level config.mk should include the auto generated include/config.mk so that all Makefile's pickup those definitions.

---
 config.mk |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
config.mk +1 -0
index bcda776..c7534fb 100644
@@ -117,6 +117,7 @@ RANLIB   = $(CROSS_COMPILE)RANLIB
 
 # Load generated board configuration
 sinclude $(OBJTREE)/include/autoconf.mk
+sinclude $(OBJTREE)/include/config.mk
 
Quoted 6 lines
Quoted 4 lines
config.mk +0 -1
 # Some architecture config.mk files need to know what CPUDIR is set to,
 # so calculate CPUDIR before including ARCH/SOC/CPU config.mk files.
--

1.7.3.4

Ping?

Quoted 2 lines

What is the exact problem you are trying to fix? Do you have a test case?

Example from my board/config.mk, I have:
ifeq ($(SUBBOARD),cu)
LUMENTIS_CPPFLAGS=-DCONFIG_IDENT_STRING=\"\\nCBX-0001A:cuboot02a:p1a:99\"
else
LUMENTIS_CPPFLAGS=-Dinclude/config.mk=\"\\nCBX-0001A:tuboot02a:p1a:99\"
endif

My generated include/config.mk has
SUBBOARD = cu

SUBBOARD will not be defined in all Makefiles unless I add the above patch, in this case arch/powerpc/cpu/mpc83xx/Makefile will not see it.

Jocke

#4 lore raw

PATCH 1/1 Top config.mk: add include/config.mk

Dear Joakim Tjernlund,

Quoted 11 lines · In message <OF0949C72E.59C831F7-ONC1257821.006EE01D-C1257821.006FFF7C@transmode…
Quoted 3 lines

What is the exact problem you are trying to fix? Do you have a test case?

Example from my board/config.mk, I have:
ifeq ($(SUBBOARD),cu)
LUMENTIS_CPPFLAGS=-DCONFIG_IDENT_STRING=\"\\nCBX-0001A:cuboot02a:p1a:99\"
else
LUMENTIS_CPPFLAGS=-Dinclude/config.mk=\"\\nCBX-0001A:tuboot02a:p1a:99\"
endif

Quoted 6 lines

My generated include/config.mk has
SUBBOARD = cu

SUBBOARD will not be defined in all Makefiles unless I add the above patch, in this case arch/powerpc/cpu/mpc83xx/Makefile will not see it.

You should move all this config stuff into your board config file and get rid of this board/config.mk alltogether.

Best regards,

Wolfgang Denk

Signature · 5 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
How many hardware guys does it take to change a light bulb? "Well the
diagnostics say it's fine buddy, so it's a software problem."
#5 lore raw

PATCH 1/1 Top config.mk: add include/config.mk

Wolfgang Denk <[email protected]> wrote on 2011/01/23 23:50:03:

Quoted 17 lines

Dear Joakim Tjernlund,

Quoted 14 lines · In message <OF0949C72E.59C831F7-ONC1257821.006EE01D-C1257821.006FFF7C@transmode…
Quoted 3 lines

What is the exact problem you are trying to fix? Do you have a test case?

Example from my board/config.mk, I have:
ifeq ($(SUBBOARD),cu)
LUMENTIS_CPPFLAGS=-DCONFIG_IDENT_STRING=\"\\nCBX-0001A:cuboot02a:p1a:99\"
else
LUMENTIS_CPPFLAGS=-Dinclude/config.mk=\"\\nCBX-0001A:tuboot02a:p1a:99\"
endif

My generated include/config.mk has
SUBBOARD = cu

Quoted 6 lines
Quoted 3 lines

SUBBOARD will not be defined in all Makefiles unless I add the above patch, in this case arch/powerpc/cpu/mpc83xx/Makefile will not see it.

You should move all this config stuff into your board config file and get rid of this board/config.mk alltogether.

Yes I can, in fact I stated to do this. Then it occurred to me that stuff defined in include/config.mk should be globally available, hence this patch.

Jocke

#6 lore raw

PATCH 1/1 Top config.mk: add include/config.mk

In reply to Joakim Tjernlund

Dear Joakim Tjernlund,

Quoted 8 lines · In message <[email protected]>…

Seems to that the top level config.mk should include the auto generated include/config.mk so that all Makefile's pickup those definitions.

---
 config.mk |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

Applied, thanks.

Best regards,

Wolfgang Denk

Signature · 5 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
The human mind treats a new idea the way the body  treats  a  strange
protein - it rejects it.                                 - P. Medawar