toolchain: add AArch32 bare-metal toolchain [1/1]

PD#SWPL-61282

Problem:
add AArch32 bare-metal toolchain

Solution:
add AArch32 bare-metal toolchain

Verify:
ad401_a113l

Signed-off-by: Kelvin Zhang <kelvin.zhang@amlogic.com>
Change-Id: I13089edfed9b1a1e5ec46f8e356fe16fe2b67c3c
diff --git a/toolchains/gcc-arm-11.2-2022.02-x86_64-arm-none-eabi.tar.xz b/toolchains/gcc-arm-11.2-2022.02-x86_64-arm-none-eabi.tar.xz
new file mode 100644
index 0000000..7dbd376
--- /dev/null
+++ b/toolchains/gcc-arm-11.2-2022.02-x86_64-arm-none-eabi.tar.xz
Binary files differ
diff --git a/toolchains/gcc-arm-none-eabi.patch b/toolchains/gcc-arm-none-eabi.patch
new file mode 100644
index 0000000..9d438bd
--- /dev/null
+++ b/toolchains/gcc-arm-none-eabi.patch
@@ -0,0 +1,36 @@
+diff -bwBurN '--exclude=.*' gcc-arm-none-eabi/arm-none-eabi/include/sys/features.h gcc-arm-none-eabi_mod/arm-none-eabi/include/sys/features.h
+--- gcc-arm-none-eabi/arm-none-eabi/include/sys/features.h	2022-02-02 19:51:54.000000000 +0800
++++ gcc-arm-none-eabi_mod/arm-none-eabi/include/sys/features.h	2022-02-24 20:14:22.894851118 +0800
+@@ -117,7 +117,7 @@
+ #undef _POSIX_SOURCE
+ #define	_POSIX_SOURCE		1
+ #undef _POSIX_C_SOURCE
+-#define	_POSIX_C_SOURCE		200809L
++#define	_POSIX_C_SOURCE		199309L
+ #undef _XOPEN_SOURCE
+ #define	_XOPEN_SOURCE		700
+ #undef _XOPEN_SOURCE_EXTENDED
+diff -bwBurN '--exclude=.*' gcc-arm-none-eabi/arm-none-eabi/include/sys/time.h gcc-arm-none-eabi_mod/arm-none-eabi/include/sys/time.h
+--- gcc-arm-none-eabi/arm-none-eabi/include/sys/time.h	2022-02-02 19:51:54.000000000 +0800
++++ gcc-arm-none-eabi_mod/arm-none-eabi/include/sys/time.h	2022-02-24 20:18:11.334041401 +0800
+@@ -437,7 +437,7 @@
+ #endif
+ 
+ #ifdef _COMPILING_NEWLIB
+-int _gettimeofday (struct timeval *__p, void *__tz);
++int _gettimeofday (struct timeval *__p, struct timezone *__tz);
+ #endif
+ 
+ __END_DECLS
+diff -bwBurN '--exclude=.*' gcc-arm-none-eabi/arm-none-eabi/include/sys/types.h gcc-arm-none-eabi_mod/arm-none-eabi/include/sys/types.h
+--- gcc-arm-none-eabi/arm-none-eabi/include/sys/types.h	2022-02-02 19:51:54.000000000 +0800
++++ gcc-arm-none-eabi_mod/arm-none-eabi/include/sys/types.h	2022-02-24 20:12:02.823132172 +0800
+@@ -220,7 +220,7 @@
+ typedef	__int64_t	sbintime_t;
+ 
+ #include <sys/features.h>
+-#include <sys/_pthreadtypes.h>
++/*#include <sys/_pthreadtypes.h>*/
+ #include <machine/types.h>
+ 
+ #endif  /* !__need_inttypes */