From: Scott Wood Date: Thu, 1 May 2014 13:21:08 -0500 Subject: [U-Boot] [PATCH 04/11] kconfig: add basic Kconfig files In-Reply-To: <1398315862-1537-5-git-send-email-yamada.m@jp.panasonic.com> References: <1398315862-1537-1-git-send-email-yamada.m@jp.panasonic.com> <1398315862-1537-5-git-send-email-yamada.m@jp.panasonic.com> Message-ID: <1398968468.24575.253.camel@snotra.buserror.net> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Thu, 2014-04-24 at 14:04 +0900, Masahiro Yamada wrote: > +config KCONFIG_OBJDIR > + string > + option env="KCONFIG_OBJDIR" > + > +config BUILD_MODE > + string > + default "SPL" if $KCONFIG_OBJDIR="spl/" > + default "TPL" if $KCONFIG_OBJDIR="tpl/" > + default "Main" Why does this need to be a string? > +menu "General setup" > + > +config SPL_BUILD > + bool > + depends on BUILD_MODE="SPL" || BUILD_MODE="TPL" > + default y > + > +config TPL_BUILD > + bool > + depends on BUILD_MODE="TPL" > + default y You could get rid of BUILD_MODE and just have: config SPL_BUILD bool default y if $KCONFIG_OBJDIR="spl/" config TPL_BUILD bool default y if $KCONFIG_OBJDIR="tpl/" select SPL_BUILD -Scott