mirror of
https://github.com/openhwgroup/cvw
synced 2025-02-11 06:05:49 +00:00
More example Makefile cleanup
This commit is contained in:
parent
96e9cd6ef1
commit
4c8c359894
Binary file not shown.
@ -1,9 +1,9 @@
|
|||||||
example.objdump: example
|
example.objdump: example
|
||||||
riscv64-unknown-elf-objdump -D example > example.objdump
|
riscv64-unknown-elf-objdump -D example > example.objdump
|
||||||
|
|
||||||
example: example.S
|
example: example.S Makefile
|
||||||
riscv64-unknown-elf-gcc -o example -march=rv32i -mabi=ilp32 -mcmodel=medany \
|
riscv64-unknown-elf-gcc -o example -march=rv32i -mabi=ilp32 -mcmodel=medany \
|
||||||
-nostartfiles -nostdlib -T../../link/link.ld example.S
|
-nostartfiles -T../../link/link.ld example.S
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f example example.objdump
|
rm -f example example.objdump
|
||||||
|
@ -3,7 +3,7 @@ TARGET = sumtest
|
|||||||
$(TARGET).objdump: $(TARGET)
|
$(TARGET).objdump: $(TARGET)
|
||||||
riscv64-unknown-elf-objdump -D $(TARGET) > $(TARGET).objdump
|
riscv64-unknown-elf-objdump -D $(TARGET) > $(TARGET).objdump
|
||||||
|
|
||||||
$(TARGET): $(TARGET).S sum.S
|
$(TARGET): $(TARGET).S sum.S Makefile
|
||||||
riscv64-unknown-elf-gcc -g -o $(TARGET) -march=rv64gc -mabi=lp64 -mcmodel=medany \
|
riscv64-unknown-elf-gcc -g -o $(TARGET) -march=rv64gc -mabi=lp64 -mcmodel=medany \
|
||||||
-nostartfiles -T../../link/link.ld $(TARGET).S sum.S
|
-nostartfiles -T../../link/link.ld $(TARGET).S sum.S
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@ ENTRY(rvtest_entry_point)
|
|||||||
SECTIONS
|
SECTIONS
|
||||||
{
|
{
|
||||||
. = 0x80000000;
|
. = 0x80000000;
|
||||||
.text : { *(.text) }
|
.text : { *(.text.init) }
|
||||||
. = ALIGN(0x1000);
|
. = ALIGN(0x1000);
|
||||||
.tohost : { *(.tohost) }
|
.tohost : { *(.tohost) }
|
||||||
. = ALIGN(0x1000);
|
. = ALIGN(0x1000);
|
||||||
|
Loading…
Reference in New Issue
Block a user