From: Henrik =?ISO-8859-1?Q?Nordstr=F6m?= Date: Sun, 25 Nov 2012 18:55:29 +0100 Subject: [U-Boot] [PATCH 1/2] mkconfig: Make CONFIG_SYS_BOARD_NAME default to the configured target name In-Reply-To: <20121125174359.10CAA20105B@gemini.denx.de> References: <1353842534.17518.10.camel@home.hno.se> <20121125174359.10CAA20105B@gemini.denx.de> Message-ID: <1353866129.28559.50.camel@home.hno.se> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de s?n 2012-11-25 klockan 18:43 +0100 skrev Wolfgang Denk: > > echo "#define CONFIG_SYS_BOARD \"${board}\"" >> config.h > > +echo "#define CONFIG_SYS_TARGET \"${BOARD_NAME}\"" >> config.h > > I don't see what the difference is between CONFIG_SYS_BOARD (which is > the board name) and CONFIG_SYS_BOARD_NAME ? CONFIG_SYS_BOARD is the board config name, which may differ from the board name given to make. CONFIG_SYS_BOARD_NAME is set to the name in boards.cfg. To illustrate using existing boards in boards.cfg look at for example the spear boards. spear300 arm arm926ejs spear300 spear spear spear3xx_evb:spear300 spear300_nand arm arm926ejs spear300 spear spear spear3xx_evb:spear300,nand [...] spear320_usbtty_nand arm arm926ejs spear320 spear spear spear3xx_evb:spear320,usbtty,nand CONFIG_SYS_BOARD is spear3xx_evb on all 16 of these as they are the same "board" with only different CONFIG_.. parameters set via boards.cfg. CONFIG_SYS_BOARD_NAME is the first column, unique on each. > In any case, documentation for CONFIG_SYS_BOARD_NAME is missing. This should go in README? Regards Henrik