cross: add example cross files

This commit is contained in:
Denis Drakhnia 2024-01-09 21:06:00 +02:00
parent 39d18827f5
commit 9eac08d540
10 changed files with 80 additions and 12 deletions

23
cross/e2k-linux-old.txt Normal file
View File

@ -0,0 +1,23 @@
[constants]
arch = 'e2k-linux'
sysroot = '/opt/mcst/fs/e2k-v' + iset
toolchain = '/opt/mcst/lcc-e2k-v' + iset / 'bin.toolchain'
common_flags = ['-mcpu=' + mcpu]
[built-in options]
c_args = common_flags
cpp_args = common_flags
c_link_args = common_flags
cpp_link_args = common_flags
[binaries]
c = toolchain / arch + '-cc'
cpp = toolchain / arch + '-c++'
strip = toolchain / arch + '-strip'
exe_wrapper = ['qemu-e2k', '-cpu', cpu + ',tags=on', '-L', sysroot]
[host_machine]
system = 'linux'
cpu_family = 'e2k'
cpu = cpu
endian = 'little'

23
cross/e2k-linux.txt Normal file
View File

@ -0,0 +1,23 @@
[constants]
arch = 'e2k-linux'
sysroot = '/opt/mcst/fs/e2k-v' + iset
toolchain = '/opt/mcst/lcc-e2k-v' + iset / 'bin.toolchain'
common_flags = ['-mtune=' + mcpu, '--sysroot', sysroot]
[built-in options]
c_args = common_flags
cpp_args = common_flags
c_link_args = common_flags
cpp_link_args = common_flags
[binaries]
c = toolchain / arch + '-cc'
cpp = toolchain / arch + '-c++'
strip = toolchain / arch + '-strip'
exe_wrapper = ['qemu-e2k', '-cpu', cpu + ',tags=on', '-L', sysroot]
[host_machine]
system = 'linux'
cpu_family = 'e2k'
cpu = cpu
endian = 'little'

5
cross/e2k-v1.txt Normal file
View File

@ -0,0 +1,5 @@
[constants]
cpu = 'elbrus'
mcpu = cpu
iset = '1'
toolchain = '/opt/mcst/lcc/bin.toolchain'

5
cross/e2k-v2.txt Normal file
View File

@ -0,0 +1,5 @@
[constants]
cpu = 'e2c+'
mcpu = 'elbrus-2c+'
iset = '2'
toolchain = '/opt/mcst/lcc/bin.toolchain'

5
cross/e2k-v3.txt Normal file
View File

@ -0,0 +1,5 @@
[constants]
cpu = 'e4c'
mcpu = 'elbrus-4c'
iset = '3'
toolchain = '/opt/mcst/lcc/bin.toolchain'

5
cross/e2k-v4.txt Normal file
View File

@ -0,0 +1,5 @@
[constants]
cpu = 'e8c'
mcpu = 'elbrus-8c'
iset = '4'
toolchain = '/opt/mcst/lcc/bin.toolchain'

5
cross/e2k-v5.txt Normal file
View File

@ -0,0 +1,5 @@
[constants]
cpu = 'e8c2'
mcpu = 'elbrus-8c2'
iset = '5'
toolchain = '/opt/mcst/lcc/bin.toolchain'

5
cross/e2k-v6.txt Normal file
View File

@ -0,0 +1,5 @@
[constants]
cpu = 'e16c'
mcpu = 'elbrus-16c'
iset = '6'
toolchain = '/opt/mcst/lcc/bin.toolchain'

4
cross/e2k-v7.txt Normal file
View File

@ -0,0 +1,4 @@
[constants]
cpu = 'e48c'
mcpu = 'elbrus-48c'
iset = '7'

View File

@ -1,12 +0,0 @@
[binaries]
c = 'e2k-linux-cc'
cpp = 'e2k-linux-c++'
ar = 'e2k-linux-ar'
strip = 'e2k-linux-strip'
exe_wrapper = 'qemu-e2k'
[host_machine]
system = 'linux'
cpu_family = 'e2k'
cpu = 'e8c'
endian = 'little'