From: Wolfgang Denk Date: Sun, 23 Jan 2011 23:50:03 +0100 Subject: [U-Boot] [PATCH] Top config.mk: add include/config.mk In-Reply-To: References: <1295303966-8409-1-git-send-email-Joakim.Tjernlund@transmode.se> <20110123193548.E456C4B6@gemini.denx.de> Message-ID: <20110123225003.412231365DB@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Joakim Tjernlund, In message you wrote: > > > 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. 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 -- 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."