[U-Boot] [PATCH v3] x86: lib: Implement standalone __udivdi3 etc instead of libgcc ones
Bin Meng
bmeng.cn at gmail.com
Thu Nov 30 05:31:19 UTC 2017
On Wed, Nov 29, 2017 at 11:23 PM, Stefan Roese <sr at denx.de> wrote:
> This patch removes the inclusion of the libgcc math functions and
> replaces them by functions coded in C, taken from the coreboot
> project. This makes U-Boot building more independent from the toolchain
> installed / available on the build system.
>
> The code taken from coreboot is authored from Vadim Bendebury
> <vbendeb at chromium.org> on 2014-11-28 and committed with commit
> ID e63990ef [libpayload: provide basic 64bit division implementation]
> (coreboot git repository located here [1]).
>
> I modified the code so that its checkpatch clean without any
> functional changes.
>
> [1] git://github.com/coreboot/coreboot.git
>
> Signed-off-by: Stefan Roese <sr at denx.de>
> Cc: Simon Glass <sjg at chromium.org>
> Cc: Bin Meng <bmeng.cn at gmail.com>
> ---
> v3:
> - Completely get rid of all libgcc references in arch/x86/lib/Makefile,
> also for the standalone applications
>
> v2:
> - Added coreboot git repository link to commit message
>
> arch/x86/config.mk | 3 --
> arch/x86/lib/Makefile | 8 +---
> arch/x86/lib/div64.c | 113 ++++++++++++++++++++++++++++++++++++++++++++++++++
> arch/x86/lib/gcc.c | 29 -------------
> 4 files changed, 114 insertions(+), 39 deletions(-)
> create mode 100644 arch/x86/lib/div64.c
> delete mode 100644 arch/x86/lib/gcc.c
>
Reviewed-by: Bin Meng <bmeng.cn at gmail.com>
Tested-by: Bin Meng <bmeng.cn at gmail.com>
More information about the U-Boot
mailing list