[U-Boot] [PATCH v4 1/2] lib: crc32: mark function crc32() as __efi_runtime

Bin Meng bmeng.cn at gmail.com
Sun Jul 29 07:52:48 UTC 2018


Hi Heinrich,

On Sun, Jul 29, 2018 at 3:49 PM, Heinrich Schuchardt <xypron.glpk at gmx.de> wrote:
> The function crc32() is needed by the EFI subsystem at runtime. So it has
> to be linked into the runtime section together with all dependencies.
>
> Eliminate empty defines local and ZEXPORT.
>
> Mark variables as static which are not exported.
>
> Signed-off-by: Heinrich Schuchardt <xypron.glpk at gmx.de>
> ---
> v4:
>         put all relevant functions into the runtime code section
>         put none into the runtime data section
> v3
>         new patch
> ---
>  lib/crc32.c | 26 ++++++++++++++------------
>  1 file changed, 14 insertions(+), 12 deletions(-)
>

Is it possible to use linux kernel's lib/crc32.c? This way we can
future sync U-Boot's crc32 implementation with kernel's. Thanks!

Regards,
Bin


More information about the U-Boot mailing list