[PATCH 19/23] i2c: Convert CONFIG_POWER_I2C et al to Kconfig

Tom Rini trini at konsulko.com
Thu Sep 30 13:31:31 CEST 2021


On Wed, Sep 29, 2021 at 10:08:46PM -0600, Simon Glass wrote:
> Hi Tom,
> 
> On Sat, 4 Sept 2021 at 09:08, Tom Rini <trini at konsulko.com> wrote:
> >
> > On Sun, Aug 08, 2021 at 12:20:27PM -0600, Simon Glass wrote:
> >
> > > This converts the following to Kconfig:
> > >    CONFIG_POWER_I2C
> > >    CONFIG_POWER_LEGACY
> > >
> > > They are handled at the same time due to a dependency between them.
> > > Update the Makefile rule to use legacy power only in U-Boot proper.
> > >
> > > Unfortunately a separate rule is needed in SPL to be able to build legacy
> > > power. All of this can be cleaned up when boards are migrated or removed.
> > >
> > > Signed-off-by: Simon Glass <sjg at chromium.org>
> > > Reviewed-by: Jaehoon Chung <jh80.chung at samsung.com>
> >
> > I'm taking care of this now, but JFYI, this is actually a tricky
> > conversion where the "hack print" tool I've posted before is required,
> > along with running it with and without CONFIG_SPL_BUILD defined.  At
> > issue here is that a number of platforms play games with only setting
> > CONFIG_POWER in SPL, really but moveconfig.py doesn't catch it.  You can
> > see this with the buildman size/bloat functions and that main U-Boot
> > nows includes drivers/power/power_core.c and its non-DM non-configurable
> > pmic cmd.
> 
> What is the 'hack print' tool?

https://patchwork.ozlabs.org/project/uboot/patch/1500407318-7977-1-git-send-email-trini@konsulko.com/

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20210930/d9e35af3/attachment.sig>


More information about the U-Boot mailing list