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:
Kody Stribrny 2022-11-17 16:55:58 -08:00 committed by GitHub
parent dc2c031c45
commit d266eba137
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 118 additions and 70 deletions

View file

@ -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