[U-Boot] [PATCH 1/2] sunxi: fix support board-specific CONFIG_PREBOOT

Jonas Smedegaard dr at jones.dk
Fri Aug 23 15:56:47 UTC 2019


Quoting Lukasz Majewski (2019-08-23 10:37:28)
> On Sun, 18 Aug 2019 17:16:06 +0200
> Jonas Smedegaard <dr at jones.dk> wrote:
> 
> > commit 37304aaf60bf ("Convert CONFIG_USE_PREBOOT and CONFIG_PREBOOT to
> > Kconfig") intended to support CONFIG_PREBOOT, but
> > include/configs/sunxi-common.h hardcodes preboot as part of internally
> > defined CONSOLE_STDIN_SETTINGS, silently ignoring any board-specific
> > CONFIG_PREBOOT.
> > 
> > Tested-by: Jonas Smedegaard <dr at jones.dk>
> > Signed-off-by: Jonas Smedegaard <dr at jones.dk>
> > Series-Cc: Jagan Teki <jagan at amarulasolutions.com>
> > ---
> > 
> >  include/configs/sunxi-common.h | 7 ++++++-
> >  1 file changed, 6 insertions(+), 1 deletion(-)
> > 
> > diff --git a/include/configs/sunxi-common.h
> > b/include/configs/sunxi-common.h index d7133a73fc..2069884b63 100644
> > --- a/include/configs/sunxi-common.h
> > +++ b/include/configs/sunxi-common.h
> > @@ -432,8 +432,13 @@ extern int soft_i2c_gpio_scl;
> >  #include <config_distro_bootcmd.h>
> >  
> >  #ifdef CONFIG_USB_KEYBOARD
> > +#ifdef CONFIG_USE_PREBOOT
> > +#ifndef CONFIG_PREBOOT
> > +#define CONFIG_PREBOOT \
> > +     "usb start"
> 
> Shouldn't this (CONFIG_PREBOOT) be set in the Kconfig? 

My changeset ensures that _if_ CONFIG_PREBOOT is set in Kconfig then it 
is not _also_ set in header file.

Reason for my approach was to keep the changeset minimal.

If my changeset is not acceptable without first/instead fixing the 
related but arguably different issue of "usb start" being declared in 
header file, please tell me and I shall try propose a fix for that.


 - Jonas

-- 
 * Jonas Smedegaard - idealist & Internet-arkitekt
 * Tlf.: +45 40843136  Website: http://dr.jones.dk/

 [x] quote me freely  [ ] ask before reusing  [ ] keep private
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20190823/c956dfda/attachment.sig>


More information about the U-Boot mailing list