Re: [PATCH V3 1/7] firmware: imx: Add stubs for !CONFIG_IMX_SCU case
From: Alexandre Belloni
Date: Mon Mar 16 2020 - 05:22:25 EST
On 16/03/2020 09:08:53+0000, Anson Huang wrote:
> > Why do you absolutely need to compile them independently? From a code
> > coverage point of view, having:
> >
> > COMPILE_TEST=y
> > CONFIG_IMX_SCU=y
> >
> > is enough to select and compile the remaining drivers.
>
> What I meant is for below case, like using other arch config which does NOT have
> CONFIG_IMX_SCU selected, ONLY with COMPILE_TEST selected, adding stubs for
> IMX_SCU APIs can fix such scenario.
>
> COMPILE_TEST=y
> CONFIG_IMX_SCU=n
>
Why is that an issue? If they don't have IMX_SCU selected, then the
other SCU driver are not selected either, having stubs doesn't change
that you will have to select at least one option. Please explain what is
the issue that is not solved here.
--
Alexandre Belloni, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com