[PATCH v2 1/1] rtc: CONFIGS_RTC_PL031 must depend on CONFIGS_DM_RTC

Tom Rini trini at konsulko.com
Tue Dec 17 15:49:35 CET 2024


On Tue, Dec 17, 2024 at 03:03:57PM +0100, Linus Walleij wrote:
> On Thu, Dec 5, 2024 at 9:36 PM Heinrich Schuchardt
> <heinrich.schuchardt at canonical.com> wrote:
> 
> > Building qemu_arm64_defconfig with CONFIGS_DM_RTC=n and CONFIGS_RTC_PL031=y
> > leads to a build failure.
> >
> > Adjust the vexpress64 configuration to avoid circular dependency.
> >
> > Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt at canonical.com>
> > ---
> > v2:
> >     Adjust the vexpress64 configuration to avoid circular dependency.
> 
> > +       imply DM_RTC
> >         imply RTC_PL031
> > -       select DM_RTC if RTC_PL031
> 
> Should it not be:
> imply RTC_PL031 if DM_RTC
> 
> (The dependency in the driver will fix it I guess.)
> 
> The way we are using imply in U-Boot is a bit worrisome
> but I'm no expert. It may work better in our case because we
> never have an option be "m" (module) as in Linux... This
> works for sure.

In this case, DM_RTC (and most DT_xxx symbols) are library functions. In
this case, RTC_PL031 already correctly depends on DM_RTC. So we imply
DM_RTC here so that we can then also imply RTC_PL031.

-- 
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/20241217/1d2d03f7/attachment.sig>


More information about the U-Boot mailing list