[PATCH 1/3] mbedtls: Introduce subset of compiler-rt from LLVM
Tom Rini
trini at konsulko.com
Fri Jun 20 19:19:57 CEST 2025
On Fri, Jun 20, 2025 at 08:10:08AM -0700, Raymond Mao wrote:
> Introduce the implementation of udivti3 and udivmodti4 from LLVM
> compiler-rt builtins for building MbedTLS bignum module via Clang.
>
> Signed-off-by: Raymond Mao <raymond.mao at linaro.org>
> ---
> lib/mbedtls/port/compiler-rt/LICENSE.TXT | 311 ++++++++++++++++++
> lib/mbedtls/port/compiler-rt/README.txt | 11 +
> .../compiler-rt/lib/builtins/int_endianness.h | 114 +++++++
> .../port/compiler-rt/lib/builtins/int_lib.h | 171 ++++++++++
> .../port/compiler-rt/lib/builtins/int_types.h | 276 ++++++++++++++++
> .../port/compiler-rt/lib/builtins/int_util.h | 47 +++
> .../compiler-rt/lib/builtins/udivmodti4.c | 158 +++++++++
> .../port/compiler-rt/lib/builtins/udivti3.c | 23 ++
> 8 files changed, 1111 insertions(+)
> create mode 100644 lib/mbedtls/port/compiler-rt/LICENSE.TXT
> create mode 100644 lib/mbedtls/port/compiler-rt/README.txt
> create mode 100644 lib/mbedtls/port/compiler-rt/lib/builtins/int_endianness.h
> create mode 100644 lib/mbedtls/port/compiler-rt/lib/builtins/int_lib.h
> create mode 100644 lib/mbedtls/port/compiler-rt/lib/builtins/int_types.h
> create mode 100644 lib/mbedtls/port/compiler-rt/lib/builtins/int_util.h
> create mode 100644 lib/mbedtls/port/compiler-rt/lib/builtins/udivmodti4.c
> create mode 100644 lib/mbedtls/port/compiler-rt/lib/builtins/udivti3.c
>
> diff --git a/lib/mbedtls/port/compiler-rt/LICENSE.TXT b/lib/mbedtls/port/compiler-rt/LICENSE.TXT
> new file mode 100644
> index 00000000000..5a79a1b9d5c
> --- /dev/null
> +++ b/lib/mbedtls/port/compiler-rt/LICENSE.TXT
> @@ -0,0 +1,311 @@
> +==============================================================================
> +The LLVM Project is under the Apache License v2.0 with LLVM Exceptions:
> +==============================================================================
> +
> + Apache License
> + Version 2.0, January 2004
> + http://www.apache.org/licenses/
I don't know that this is compatible for us. Looking at
https://www.apache.org/licenses/GPL-compatibility.html it talks about
how you can use it with GPLv3 (which we are *NOT*) but not GPLv2.
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20250620/9da93bfa/attachment.sig>
More information about the U-Boot
mailing list