source: mainline/meson/arch/sparc64/meson.build@ 98975a8

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since 98975a8 was 41408d94, checked in by Jiří Zárevúcky <zarevucky.jiri@…>, 6 years ago

sparc64

  • Property mode set to 100644
File size: 1.3 KB
Line 
1arch_uspace_c_args = [ '-D__BE__', '-m64', '-mcmodel=medlow', '-mhard-float', '-m' + QUADFLOAT + '-quad-float' ]
2
3if PROCESSOR == 'sun4v'
4 arch_uspace_c_args += [ '-mcpu=niagara', '-mno-vis' ]
5else
6 arch_uspace_c_args += [ '-mcpu=ultrasparc' ]
7endif
8
9if PROCESSOR == 'us' or PROCESSOR == 'us3'
10 arch_uspace_c_args += [ '-DSUN4U' ]
11elif PROCESSOR == 'sun4v'
12 arch_uspace_c_args += [ '-DSUN4V' ]
13else
14 error('Unknown PROCESSOR: ' + PROCESSOR)
15endif
16
17
18arch_kernel_c_args = [ '-D__BE__', '-m64', '-mcmodel=medlow', '-mcpu=ultrasparc', '-mno-fpu' ]
19
20if PROCESSOR == 'us'
21 arch_kernel_c_args += [
22 '-DUS',
23 '-DSUN4U',
24 ]
25elif PROCESSOR == 'us3'
26 arch_kernel_c_args += [
27 '-DUS3',
28 '-DSUN4U',
29 ]
30elif PROCESSOR == 'sun4v'
31 arch_kernel_c_args += [
32 '-DSUN4V',
33 #MH
34 '-DUS',
35 ]
36endif
37
38
39arch_kernel_link_args = [ '-nostdlib', '-Wl,-no-check-sections' ]
40arch_uspace_link_args = [ '-nostdlib', '-lgcc' ]
41
42if PROCESSOR == 'sun4v'
43 arch_uspace_link_args += [ '-Wl,-z,max-page-size=0x2000' ]
44else
45 arch_uspace_link_args += [ '-Wl,-z,max-page-size=0x4000' ]
46endif
47
48
49if PROCESSOR == 'sun4v'
50 rd_essential += [
51 'drv/platform/sun4v',
52 'drv/char/sun4v-con',
53 ]
54else
55 rd_essential += [
56 'drv/platform/sun4u',
57 'drv/bus/pci/pciintel',
58 'drv/bus/isa',
59 'drv/intctl/obio',
60 'drv/char/ns8250',
61 ]
62endif
Note: See TracBrowser for help on using the repository browser.