[U-Boot] [RFC PATCH 3/7] Move CONFIG_FPGA_SPARTAN options to defconfig

Chris Packham judge.packham at gmail.com
Fri Nov 25 09:39:03 CET 2016


On Fri, Nov 25, 2016 at 1:53 PM, Chris Packham <judge.packham at gmail.com> wrote:
> On Thu, Nov 24, 2016 at 1:14 AM, Michal Simek <monstr at monstr.eu> wrote:
>> On 22.11.2016 09:48, Chris Packham wrote:
>>> Signed-off-by: Chris Packham <judge.packham at gmail.com>
>>> ---
>>
>> Isn't this causing some compilation issue for SPL case?
>>
>
> I have compile tested apf27 and didn't see an issue. I'm guessing none
> of the FPGA infrastructure is available in SPL.

A better non-guess answer is that yes indeed all of drivers/fgpa is
not included in SPL. But CONFIG_FPGA now ends up defined and nm tells
me I've probably broken that board

 nm spl/u-boot-spl | grep fpga_init
         U fpga_init

So how is this usually handled? I can surround the code in
board/armadeus/apf27 with #ifndef CONFIG_SPL_BUILD but that seems kind
of hacky.


More information about the U-Boot mailing list