From: Tom Rini Date: Wed, 29 May 2013 08:18:03 -0400 Subject: [U-Boot] [RFC PATCH 5/7] Adjust Kconfig scripts for use by U-Boot In-Reply-To: <20130529094734.5912.AA925319@jp.panasonic.com> References: <1368411940-32479-1-git-send-email-sjg@chromium.org> <1368411940-32479-6-git-send-email-sjg@chromium.org> <20130529094734.5912.AA925319@jp.panasonic.com> Message-ID: <20130529121803.GF11917@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Wed, May 29, 2013 at 09:47:34AM +0900, Masahiro Yamada wrote: > Hello, Simon. > > Please let me ask some more questions. > > By applying these series of commits, > U-Boot's config file scheme and Kconfig coexist. > > For example, scripts/Makefile.build includes > both auto.conf generated by Kconfig > and autoconf.mk derived from U-boot's config. > > -include include/config/auto.conf > -include $(objtree)/include/config/autoconf.mk > > I think the redundancy and dirtiness do not matter > if they are temporary. > > What I'd like to make clear is our goal. > It is intended to move all U-Boot's config files > to Kconfig over long time and > after that, delete U-Boot's config system. > Is this right? Yes, long term. > > If the answer is yes, there are some macros > I don't know how to port to Kconfig. > > For example, > CONFIG_SYS_BAUDRATE_TABLE is defined like follows. > > #define CONFIG_SYS_BAUDRATE_TABLE {9600, 19200, 38400, 57600, 115200} > > To my knowledge this macro can not be described by Kconfig. We would probably want to change it to something like: - Do you want the standard baud rate table? Yes: 9600/19200/38400/57600/115200 No: Prompt for string value of comma sep list of rates And in the right header: #ifdef CONFIG_SYS_STD_BAUD_RATE #define BAUDRATTE_TABLE { 9600, .... } #else #define BAUDRATE_TABLE { CONFIG_SYS_PROMPTED_VALUE } #endif > And also, some config files still include macros without CONFIG_ prefix. > For example, LINUX_BOOT_PARAM_ADDR, PHYS_SDRAM_1, PHYS_SDRAM_2, etc. These don't belong in the config file, and need to be either in the board or or similar construct instead. -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: