-
Notifications
You must be signed in to change notification settings - Fork 231
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🧪 Rework makefile/linker script memory configuration (#1072)
- Loading branch information
Showing
42 changed files
with
1,039 additions
and
92 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,33 @@ | ||
# Modify this variable to fit your NEORV32 setup (neorv32 home folder) | ||
# Application makefile. | ||
# Use this makefile to configure all relevant CPU / compiler options. | ||
|
||
# Override the default CPU ISA | ||
MARCH = rv32ia_zicsr_zifencei | ||
|
||
# Override the default RISC-V GCC prefix | ||
#RISCV_PREFIX ?= riscv-none-elf- | ||
|
||
# Override default optimization goal | ||
EFFORT = -Os | ||
|
||
# Add extended debug symbols | ||
USER_FLAGS += -ggdb -gdwarf-3 | ||
|
||
# Adjust processor IMEM size | ||
USER_FLAGS += -Wl,--defsym,__neorv32_rom_size=16k | ||
|
||
# Adjust processor DMEM size | ||
USER_FLAGS += -Wl,--defsym,__neorv32_ram_size=8k | ||
|
||
# Adjust maximum heap size | ||
#USER_FLAGS += -Wl,--defsym,__neorv32_heap_size=1k | ||
|
||
# Additional sources | ||
#APP_SRC += $(wildcard ./*.c) | ||
#APP_INC += -I . | ||
|
||
# Set path to NEORV32 root directory | ||
NEORV32_HOME ?= ../../.. | ||
|
||
# Include the main NEORV32 makefile | ||
include $(NEORV32_HOME)/sw/common/common.mk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,33 @@ | ||
# Modify this variable to fit your NEORV32 setup (neorv32 home folder) | ||
# Application makefile. | ||
# Use this makefile to configure all relevant CPU / compiler options. | ||
|
||
# Override the default CPU ISA | ||
MARCH = rv32i_zicsr_zifencei | ||
|
||
# Override the default RISC-V GCC prefix | ||
#RISCV_PREFIX ?= riscv-none-elf- | ||
|
||
# Override default optimization goal | ||
EFFORT = -Os | ||
|
||
# Add extended debug symbols | ||
USER_FLAGS += -ggdb -gdwarf-3 | ||
|
||
# Adjust processor IMEM size | ||
USER_FLAGS += -Wl,--defsym,__neorv32_rom_size=16k | ||
|
||
# Adjust processor DMEM size | ||
USER_FLAGS += -Wl,--defsym,__neorv32_ram_size=8k | ||
|
||
# Adjust maximum heap size | ||
#USER_FLAGS += -Wl,--defsym,__neorv32_heap_size=1k | ||
|
||
# Additional sources | ||
#APP_SRC += $(wildcard ./*.c) | ||
#APP_INC += -I . | ||
|
||
# Set path to NEORV32 root directory | ||
NEORV32_HOME ?= ../../.. | ||
|
||
# Include the main NEORV32 makefile | ||
include $(NEORV32_HOME)/sw/common/common.mk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,33 @@ | ||
# Modify this variable to fit your NEORV32 setup (neorv32 home folder) | ||
# Application makefile. | ||
# Use this makefile to configure all relevant CPU / compiler options. | ||
|
||
# Override the default CPU ISA | ||
MARCH = rv32imc_zicsr_zifencei | ||
|
||
# Override the default RISC-V GCC prefix | ||
#RISCV_PREFIX ?= riscv-none-elf- | ||
|
||
# Override default optimization goal | ||
EFFORT = -O3 | ||
|
||
# Add extended debug symbols | ||
USER_FLAGS += -ggdb -gdwarf-3 | ||
|
||
# Adjust processor IMEM size | ||
USER_FLAGS += -Wl,--defsym,__neorv32_rom_size=32k | ||
|
||
# Adjust processor DMEM size | ||
USER_FLAGS += -Wl,--defsym,__neorv32_ram_size=8k | ||
|
||
# Adjust maximum heap size | ||
#USER_FLAGS += -Wl,--defsym,__neorv32_heap_size=1k | ||
|
||
# Additional sources | ||
#APP_SRC += $(wildcard ./*.c) | ||
#APP_INC += -I . | ||
|
||
# Set path to NEORV32 root directory | ||
NEORV32_HOME ?= ../../.. | ||
|
||
# Include the main NEORV32 makefile | ||
include $(NEORV32_HOME)/sw/common/common.mk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,33 @@ | ||
# Modify this variable to fit your NEORV32 setup (neorv32 home folder) | ||
# Application makefile. | ||
# Use this makefile to configure all relevant CPU / compiler options. | ||
|
||
# Override the default CPU ISA | ||
MARCH = rv32i_zicsr_zifencei | ||
|
||
# Override the default RISC-V GCC prefix | ||
#RISCV_PREFIX ?= riscv-none-elf- | ||
|
||
# Override default optimization goal | ||
EFFORT = -Os | ||
|
||
# Add extended debug symbols | ||
USER_FLAGS += -ggdb -gdwarf-3 | ||
|
||
# Adjust processor IMEM size | ||
USER_FLAGS += -Wl,--defsym,__neorv32_rom_size=16k | ||
|
||
# Adjust processor DMEM size | ||
USER_FLAGS += -Wl,--defsym,__neorv32_ram_size=8k | ||
|
||
# Adjust maximum heap size | ||
#USER_FLAGS += -Wl,--defsym,__neorv32_heap_size=1k | ||
|
||
# Additional sources | ||
#APP_SRC += $(wildcard ./*.c) | ||
#APP_INC += -I . | ||
|
||
# Set path to NEORV32 root directory | ||
NEORV32_HOME ?= ../../.. | ||
|
||
# Include the main NEORV32 makefile | ||
include $(NEORV32_HOME)/sw/common/common.mk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,33 @@ | ||
# Modify this variable to fit your NEORV32 setup (neorv32 home folder) | ||
# Application makefile. | ||
# Use this makefile to configure all relevant CPU / compiler options. | ||
|
||
# Override the default CPU ISA | ||
MARCH = rv32i_zicsr_zifencei | ||
|
||
# Override the default RISC-V GCC prefix | ||
#RISCV_PREFIX ?= riscv-none-elf- | ||
|
||
# Override default optimization goal | ||
EFFORT = -Os | ||
|
||
# Add extended debug symbols | ||
USER_FLAGS += -ggdb -gdwarf-3 | ||
|
||
# Adjust processor IMEM size | ||
USER_FLAGS += -Wl,--defsym,__neorv32_rom_size=16k | ||
|
||
# Adjust processor DMEM size | ||
USER_FLAGS += -Wl,--defsym,__neorv32_ram_size=8k | ||
|
||
# Adjust maximum heap size | ||
#USER_FLAGS += -Wl,--defsym,__neorv32_heap_size=1k | ||
|
||
# Additional sources | ||
#APP_SRC += $(wildcard ./*.c) | ||
#APP_INC += -I . | ||
|
||
# Set path to NEORV32 root directory | ||
NEORV32_HOME ?= ../../.. | ||
|
||
# Include the main NEORV32 makefile | ||
include $(NEORV32_HOME)/sw/common/common.mk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,33 @@ | ||
# Modify this variable to fit your NEORV32 setup (neorv32 home folder) | ||
# Application makefile. | ||
# Use this makefile to configure all relevant CPU / compiler options. | ||
|
||
# Override the default CPU ISA | ||
MARCH = rv32i_zicsr_zifencei | ||
|
||
# Override the default RISC-V GCC prefix | ||
#RISCV_PREFIX ?= riscv-none-elf- | ||
|
||
# Override default optimization goal | ||
EFFORT = -Os | ||
|
||
# Add extended debug symbols | ||
USER_FLAGS += -ggdb -gdwarf-3 | ||
|
||
# Adjust processor IMEM size | ||
USER_FLAGS += -Wl,--defsym,__neorv32_rom_size=16k | ||
|
||
# Adjust processor DMEM size | ||
USER_FLAGS += -Wl,--defsym,__neorv32_ram_size=8k | ||
|
||
# Adjust maximum heap size | ||
#USER_FLAGS += -Wl,--defsym,__neorv32_heap_size=1k | ||
|
||
# Additional sources | ||
#APP_SRC += $(wildcard ./*.c) | ||
#APP_INC += -I . | ||
|
||
# Set path to NEORV32 root directory | ||
NEORV32_HOME ?= ../../.. | ||
|
||
# Include the main NEORV32 makefile | ||
include $(NEORV32_HOME)/sw/common/common.mk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,33 @@ | ||
# Modify this variable to fit your NEORV32 setup (neorv32 home folder) | ||
# Application makefile. | ||
# Use this makefile to configure all relevant CPU / compiler options. | ||
|
||
# Override the default CPU ISA | ||
MARCH = rv32i_zicsr_zifencei | ||
|
||
# Override the default RISC-V GCC prefix | ||
#RISCV_PREFIX ?= riscv-none-elf- | ||
|
||
# Override default optimization goal | ||
EFFORT = -Os | ||
|
||
# Add extended debug symbols | ||
USER_FLAGS += -ggdb -gdwarf-3 | ||
|
||
# Adjust processor IMEM size | ||
USER_FLAGS += -Wl,--defsym,__neorv32_rom_size=16k | ||
|
||
# Adjust processor DMEM size | ||
USER_FLAGS += -Wl,--defsym,__neorv32_ram_size=8k | ||
|
||
# Adjust maximum heap size | ||
#USER_FLAGS += -Wl,--defsym,__neorv32_heap_size=1k | ||
|
||
# Additional sources | ||
#APP_SRC += $(wildcard ./*.c) | ||
#APP_INC += -I . | ||
|
||
# Set path to NEORV32 root directory | ||
NEORV32_HOME ?= ../../.. | ||
|
||
# Include the main NEORV32 makefile | ||
include $(NEORV32_HOME)/sw/common/common.mk |
Oops, something went wrong.