aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrashid <rashid@yandex-team.com>2024-02-23 14:28:40 +0300
committerrashid <rashid@yandex-team.com>2024-02-23 14:43:25 +0300
commit30f7c0a267c790a33a3fa798e4be31c33ec98f67 (patch)
tree37e5f7de2f6c6237be7d95b91775ae03febde1f0
parent16f3f4eaf96cfbfb8ab0a497ba7d035170cb28de (diff)
downloadydb-30f7c0a267c790a33a3fa798e4be31c33ec98f67.tar.gz
chore: add gcc-arm-none-eabi-10.3-2021.10 (also for arch armv5te & cpu arm968e-s)
7842519b34c6d72b2e0cb11e60456cf2513bc6d6
-rwxr-xr-xbuild/ymake_conf.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/build/ymake_conf.py b/build/ymake_conf.py
index b3764600e0..70829e0d99 100755
--- a/build/ymake_conf.py
+++ b/build/ymake_conf.py
@@ -70,6 +70,7 @@ class Platform(object):
self.is_arm = self.is_armv7 or self.is_armv8 or self.is_armv8m or self.is_armv7em
self.is_armv7_neon = self.arch in ('armv7a_neon', 'armv7ahf', 'armv7a_cortex_a9', 'armv7ahf_cortex_a35', 'armv7ahf_cortex_a53')
self.is_armv7hf = self.arch in ('armv7ahf', 'armv7ahf_cortex_a35', 'armv7ahf_cortex_a53')
+ self.is_armv5te = self.arch in ('armv5te_arm968e_s')
self.is_rv32imc = self.arch in ('riscv32_esp',)
self.is_riscv32 = self.is_rv32imc
@@ -93,6 +94,7 @@ class Platform(object):
self.is_cortex_m23 = self.arch in ('armv8m_cortex_m23',)
self.is_cortex_m4 = self.arch in ('armv7em_cortex_m4',)
self.is_cortex_m7 = self.arch in ('armv7em_cortex_m7')
+ self.is_arm968e_s = self.arch in ('armv5te_arm968e_s')
self.is_power8le = self.arch == 'ppc64le'
self.is_power9le = self.arch == 'power9le'
@@ -101,7 +103,7 @@ class Platform(object):
self.is_wasm64 = self.arch == 'wasm64'
self.is_wasm = self.is_wasm64
- self.is_32_bit = self.is_x86 or self.is_armv7 or self.is_armv8m or self.is_riscv32 or self.is_nds32 or self.is_armv7em or self.is_xtensa or self.is_tc32
+ self.is_32_bit = self.is_x86 or self.is_armv5te or self.is_armv7 or self.is_armv8m or self.is_riscv32 or self.is_nds32 or self.is_armv7em or self.is_xtensa or self.is_tc32
self.is_64_bit = self.is_x86_64 or self.is_armv8 or self.is_powerpc or self.is_wasm64
assert self.is_32_bit or self.is_64_bit
@@ -176,6 +178,7 @@ class Platform(object):
(self.is_armv8, 'ARCH_ARM64'),
(self.is_armv8m, 'ARCH_ARM8M'),
(self.is_armv7em, 'ARCH_ARM7EM'),
+ (self.is_armv5te, 'ARCH_ARM5TE'),
(self.is_arm, 'ARCH_ARM'),
(self.is_linux_armv8 or self.is_macos_arm64, 'ARCH_AARCH64'),
(self.is_powerpc, 'ARCH_PPC64LE'),
@@ -1242,6 +1245,9 @@ class GnuToolchain(Toolchain):
elif target.is_armv7_neon:
self.c_flags_platform.append('-mfpu=neon')
+ elif target.is_arm968e_s:
+ self.c_flags_platform.append('-march=armv5te -mcpu=arm968e-s -mthumb-interwork -mlittle-endian')
+
if (target.is_armv7 or target.is_armv8m or target.is_armv7em) and build.is_size_optimized:
# Enable ARM Thumb2 variable-length instruction encoding
# to reduce code size