-
Notifications
You must be signed in to change notification settings - Fork 234
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[sw/common] Cleanup central makefile and linker script (#1077)
- Loading branch information
Showing
10 changed files
with
292 additions
and
401 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
Large diffs are not rendered by default.
Oops, something went wrong.
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,23 @@ | ||
# Modify this variable to fit your NEORV32 setup (neorv32 home folder) | ||
# Bootloader (for BOOTROM) makefile. | ||
|
||
# Minimal RISC-V ISA only | ||
MARCH = rv32i_zicsr_zifencei | ||
|
||
# Optimize for minimal size | ||
EFFORT = -Os | ||
|
||
# Adjust memory size and base for BOOTROM | ||
# Define MAKE_BOOTLOADER for SW library (reduces footprint) | ||
# Enable link-time-optimization | ||
USER_FLAGS += \ | ||
-Wl,--defsym,__neorv32_rom_size=4k \ | ||
-Wl,--defsym,__neorv32_rom_base=0xFFFFC000 \ | ||
-Wl,--defsym,__neorv32_ram_size=512 \ | ||
-DMAKE_BOOTLOADER \ | ||
-flto | ||
|
||
# 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
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