Update the toolchain
This commit is contained in:
parent
0d3453e7a9
commit
df2494e145
9
Rakefile
9
Rakefile
@ -21,13 +21,13 @@ CLEAN.include '.dub'
|
|||||||
rule(/build\/riscv\/[^\/\.]+$/ => ->(file) { test_for_out(file, '.o') }) do |t|
|
rule(/build\/riscv\/[^\/\.]+$/ => ->(file) { test_for_out(file, '.o') }) do |t|
|
||||||
sh '/opt/riscv/bin/riscv32-unknown-elf-ld',
|
sh '/opt/riscv/bin/riscv32-unknown-elf-ld',
|
||||||
'-o', t.name,
|
'-o', t.name,
|
||||||
'-L/opt/riscv/lib/gcc/riscv32-unknown-elf/11.1.0',
|
'-L/opt/riscv/lib/gcc/riscv32-unknown-elf/13.2.0/',
|
||||||
'-L/opt/riscv/riscv32-unknown-elf/lib',
|
'-L/opt/riscv/riscv32-unknown-elf/lib',
|
||||||
'/opt/riscv/riscv32-unknown-elf/lib/crt0.o',
|
'/opt/riscv/riscv32-unknown-elf/lib/crt0.o',
|
||||||
'/opt/riscv/lib/gcc/riscv32-unknown-elf/11.1.0/crtbegin.o',
|
'/opt/riscv/lib/gcc/riscv32-unknown-elf/13.2.0/crtbegin.o',
|
||||||
t.source,
|
t.source,
|
||||||
'--start-group', '-lgcc', '-lc', '-lgloss', '--end-group',
|
'--start-group', '-lgcc', '-lc', '-lgloss', '--end-group',
|
||||||
'/opt/riscv/lib/gcc/riscv32-unknown-elf/11.1.0/crtend.o'
|
'/opt/riscv/lib/gcc/riscv32-unknown-elf/13.2.0/crtend.o'
|
||||||
end
|
end
|
||||||
|
|
||||||
rule(/build\/riscv\/.+\.o$/ => ->(file) { test_for_object(file, '.eln') }) do |t|
|
rule(/build\/riscv\/.+\.o$/ => ->(file) { test_for_object(file, '.eln') }) do |t|
|
||||||
@ -36,7 +36,7 @@ rule(/build\/riscv\/.+\.o$/ => ->(file) { test_for_object(file, '.eln') }) do |t
|
|||||||
end
|
end
|
||||||
|
|
||||||
file BINARY => SOURCES do |t|
|
file BINARY => SOURCES do |t|
|
||||||
sh({ 'DFLAGS' => (DFLAGS * ' ') }, 'dub', 'build', '--compiler=gdc-12')
|
sh({ 'DFLAGS' => (DFLAGS * ' ') }, 'dub', 'build', '--compiler=gdc')
|
||||||
end
|
end
|
||||||
|
|
||||||
task default: BINARY
|
task default: BINARY
|
||||||
@ -55,6 +55,7 @@ task test: BINARY do
|
|||||||
if test.include? '/riscv/'
|
if test.include? '/riscv/'
|
||||||
spike = [
|
spike = [
|
||||||
'/opt/riscv/bin/spike',
|
'/opt/riscv/bin/spike',
|
||||||
|
'--isa=RV32IMAC',
|
||||||
'/opt/riscv/riscv32-unknown-elf/bin/pk',
|
'/opt/riscv/riscv32-unknown-elf/bin/pk',
|
||||||
test
|
test
|
||||||
]
|
]
|
||||||
|
Loading…
Reference in New Issue
Block a user