aboutsummaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorarcadia-devtools <arcadia-devtools@yandex-team.ru>2022-04-01 16:44:41 +0300
committerarcadia-devtools <arcadia-devtools@yandex-team.ru>2022-04-01 16:44:41 +0300
commit3b1502256339d0e27d739bda65197ba16626d796 (patch)
treef5c96d3a4b041aa579be34af1c99c13974f65e63 /build
parenta316418cf300e9f9abf44638827703ff60a4a132 (diff)
downloadydb-3b1502256339d0e27d739bda65197ba16626d796.tar.gz
intermediate changes
ref:fcb23f6056fc4b9f1028919b4f32f9dd8bf15d1f
Diffstat (limited to 'build')
-rw-r--r--build/conf/sysincl.conf4
-rw-r--r--build/sysincl/nds32.yml2
-rw-r--r--build/ya.conf.json50
-rwxr-xr-xbuild/ymake_conf.py5
4 files changed, 60 insertions, 1 deletions
diff --git a/build/conf/sysincl.conf b/build/conf/sysincl.conf
index 60e641e2db..91280a847d 100644
--- a/build/conf/sysincl.conf
+++ b/build/conf/sysincl.conf
@@ -59,3 +59,7 @@ when ($WITH_VALGRIND == "yes") {
when ($OS_LINUX == "yes" && $OS_SDK == "ubuntu-12") {
SYSINCL+=build/sysincl/linux-ubuntu-12.yml
}
+
+when ($ARCH_NDS32) {
+ SYSINCL+=build/sysincl/nds32.yml
+}
diff --git a/build/sysincl/nds32.yml b/build/sysincl/nds32.yml
new file mode 100644
index 0000000000..c8842c993d
--- /dev/null
+++ b/build/sysincl/nds32.yml
@@ -0,0 +1,2 @@
+- includes:
+ - nds_intrinsic.h
diff --git a/build/ya.conf.json b/build/ya.conf.json
index 4fa72d4ee1..2fe18d09b6 100644
--- a/build/ya.conf.json
+++ b/build/ya.conf.json
@@ -6086,6 +6086,40 @@
"default": true
}
]
+ },
+ "nds32le-elf-mculib-v5f": {
+ "tools": {
+ "cc": {
+ "bottle": "nds32le-elf-mculib-v5f",
+ "executable": "cc"
+ },
+ "c++": {
+ "bottle": "nds32le-elf-mculib-v5f",
+ "executable": "c++"
+ }
+ },
+ "platforms": [
+ {
+ "host": {
+ "os": "LINUX"
+ },
+ "target": {
+ "os": "NONE",
+ "arch": "nds32le_elf_mculib_v5f"
+ },
+ "default": true
+ }
+ ],
+ "params": {
+ "type": "gnu",
+ "match_root": "RISCV",
+ "werror_mode": "compiler_specific",
+ "c_compiler": "$(RISCV)/bin/riscv32-elf-gcc",
+ "cxx_compiler": "$(RISCV)/bin/riscv32-elf-g++",
+ "ar": "$(RISCV)/bin/riscv32-elf-ar",
+ "objcopy": "$(RISCV)/bin/riscv32-elf-objcopy",
+ "gcc_version": "7.4.0"
+ }
}
},
"bottles": {
@@ -8578,6 +8612,22 @@
"profile_size_analyzer"
]
}
+ },
+ "nds32le-elf-mculib-v5f": {
+ "formula": {
+ "sandbox_id": 1261704938,
+ "match": "nds32le-elf-mculib-v5f"
+ },
+ "executable": {
+ "c++": [
+ "bin",
+ "riscv32-elf-g++"
+ ],
+ "cc": [
+ "bin",
+ "riscv32-elf-gcc"
+ ]
+ }
}
},
"toolchain_aliases": {
diff --git a/build/ymake_conf.py b/build/ymake_conf.py
index e07e9db7b8..0092e82ca0 100755
--- a/build/ymake_conf.py
+++ b/build/ymake_conf.py
@@ -62,6 +62,8 @@ class Platform(object):
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_nds32 = self.arch in ('nds32le_elf_mculib_v5f',)
+
self.armv7_float_abi = None
if self.is_armv7:
if self.is_armv7hf:
@@ -78,7 +80,7 @@ class Platform(object):
self.is_power9le = self.arch == 'power9le'
self.is_powerpc = self.is_power8le or self.is_power9le
- self.is_32_bit = self.is_x86 or self.is_armv7 or self.is_armv8m
+ self.is_32_bit = self.is_x86 or self.is_armv7 or self.is_armv8m or self.is_nds32
self.is_64_bit = self.is_x86_64 or self.is_armv8 or self.is_powerpc
assert self.is_32_bit or self.is_64_bit
@@ -158,6 +160,7 @@ class Platform(object):
(self.is_powerpc, 'ARCH_PPC64LE'),
(self.is_power8le, 'ARCH_POWER8LE'),
(self.is_power9le, 'ARCH_POWER9LE'),
+ (self.is_nds32, 'ARCH_NDS32'),
(self.is_32_bit, 'ARCH_TYPE_32'),
(self.is_64_bit, 'ARCH_TYPE_64'),
))