[U-Boot] [PATCH 04/07] fdtdec: allow board to provide fdt for CONFIG_OF_SEPARATE

Jorge Ramirez jorge.ramirez-ortiz at linaro.org
Tue Jan 9 07:59:49 UTC 2018


On 01/09/2018 04:37 AM, Peter Robinson wrote:
>> +#if CONFIG_IS_ENABLED(OF_SEPARATE)
>> +/*
>> + * For CONFIG_OF_SEPARATE, the board may optionally implement this to
>> + * provide and/or fixup the fdt.
>> + */
>> +__weak void *board_fdt_blob_setup(void)
>> +{
>> +       void *fdt_blob = NULL;
>> +#ifdef CONFIG_SPL_BUILD
>> +       /* FDT is at end of BSS unless it is in a different memory region */
>> +       if (IS_ENABLED(CONFIG_SPL_SEPARATE_BSS))
>> +               fdt_blob = (ulong *)&_image_binary_end;
>> +       else
>> +               fdt_blob = (ulong *)&__bss_end;
>> +#else
>> +       /* FDT is at end of image */
>> +       fdt_blob = (ulong *)&_end;
>> +#endif
>> +       return fdt_blob;
>> +}
>> +#endif
> For some reason now with 2018.01 I'm getting the following error when
> building on Fedora 28
>
> /builddir/build/BUILD/u-boot-2018.01/lib/fdtdec.c:1312: undefined
> reference to `board_fdt_blob_setup'
> /builddir/build/BUILD/u-boot-2018.01/lib/fdtdec.c:1312:(.text.fdtdec_setup+0x10):
> relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol
> `board_fdt_blob_setup'
>
> I'm going to have a further look into it from my side (could be tweaks
> to compile flags etc) but just FYI.
>
> Peter
>

is this after a clean build?


More information about the U-Boot mailing list