mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2026-01-22 01:30:31 -05:00
Update RISC-V Qemu Virt GCC Readme + Makefile (#873)
Update Readme instructions and add troubleshooting tips for issues seen on Ubuntu and include a description of where to find various crosstools-ng flags.
This commit is contained in:
parent
dc2c031c45
commit
d266eba137
2 changed files with 118 additions and 70 deletions
|
|
@ -14,16 +14,17 @@ CPPFLAGS = \
|
|||
-I $(RTOS_SOURCE_DIR)/include \
|
||||
-I $(RTOS_SOURCE_DIR)/portable/GCC/RISC-V \
|
||||
-I $(RTOS_SOURCE_DIR)/portable/GCC/RISC-V/chip_specific_extensions/RV32I_CLINT_no_extensions
|
||||
CFLAGS = -march=rv32ima -mabi=ilp32 -mcmodel=medany \
|
||||
CFLAGS = -march=rv32imac -mabi=ilp32 -mcmodel=medany \
|
||||
-Wall \
|
||||
-fmessage-length=0 \
|
||||
-ffunction-sections \
|
||||
-fdata-sections \
|
||||
-fno-builtin-printf
|
||||
LDFLAGS = -nostartfiles -Tfake_rom.lds \
|
||||
-march=rv32ima -mabi=ilp32 -mcmodel=medany \
|
||||
-march=rv32imac -mabi=ilp32 -mcmodel=medany \
|
||||
-Xlinker --gc-sections \
|
||||
-Xlinker --defsym=__stack_size=300
|
||||
-Xlinker --defsym=__stack_size=300 \
|
||||
-Xlinker -Map=RTOSDemo.map
|
||||
|
||||
ifeq ($(DEBUG), 1)
|
||||
CFLAGS += -Og -ggdb3
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue