diff options
author | rmishchenko <rmishchenko@yandex-team.com> | 2023-12-12 20:54:25 +0300 |
---|---|---|
committer | rmishchenko <rmishchenko@yandex-team.com> | 2023-12-12 21:23:45 +0300 |
commit | 4c3a87e9ad4684ade203e501dd9ce64cd95d5a0e (patch) | |
tree | 9ef8e31ae3c51289ba45cf4b74e25e37be5dd52e | |
parent | bd876344492e1a44889bce05f303af985202a467 (diff) | |
download | ydb-4c3a87e9ad4684ade203e501dd9ce64cd95d5a0e.tar.gz |
Add build support for cortex-m23 platform
-rwxr-xr-x | build/ymake_conf.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/build/ymake_conf.py b/build/ymake_conf.py index ca3a985343..26cd1a29c4 100755 --- a/build/ymake_conf.py +++ b/build/ymake_conf.py @@ -64,7 +64,7 @@ class Platform(object): self.is_armv7 = self.arch in ('armv7', 'armv7a', 'armv7ahf', 'armv7a_neon', 'arm', 'armv7a_cortex_a9', 'armv7ahf_cortex_a35', 'armv7ahf_cortex_a53') self.is_armv8 = self.arch in ('armv8', 'armv8a', 'arm64', 'aarch64', 'armv8a_cortex_a35', 'armv8a_cortex_a53') - self.is_armv8m = self.arch in ('armv8m_cortex_m33',) + self.is_armv8m = self.arch in ('armv8m_cortex_m33', 'armv8m_cortex_m23') self.is_armv7em = self.arch in ('armv7em_cortex_m4', 'armv7em_cortex_m7') self.is_arm64 = self.arch in ('arm64',) self.is_arm = self.is_armv7 or self.is_armv8 or self.is_armv8m or self.is_armv7em @@ -89,6 +89,7 @@ class Platform(object): self.is_cortex_a35 = self.arch in ('armv7ahf_cortex_a35', 'armv8a_cortex_a35') self.is_cortex_a53 = self.arch in ('armv7ahf_cortex_a53', 'armv8a_cortex_a53') self.is_cortex_m33 = self.arch in ('armv8m_cortex_m33',) + 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') @@ -1229,6 +1230,9 @@ class GnuToolchain(Toolchain): elif target.is_cortex_m7: self.c_flags_platform.append('-mcpu=cortex-m7 -mfpu=fpv5-sp-d16') + elif target.is_cortex_m23: + self.c_flags_platform.append('-mcpu=cortex-m23') + elif target.is_cortex_m33: self.c_flags_platform.append('-mcpu=cortex-m33 -mfpu=fpv5-sp-d16') |