1 |
2 |
zero_gravi |
#################################################################################################
|
2 |
|
|
# << NEORV32 - Application Makefile >> #
|
3 |
|
|
# ********************************************************************************************* #
|
4 |
55 |
zero_gravi |
# Make sure to add the RISC-V GCC compiler's bin folder to your PATH environment variable. #
|
5 |
2 |
zero_gravi |
# ********************************************************************************************* #
|
6 |
|
|
# BSD 3-Clause License #
|
7 |
|
|
# #
|
8 |
72 |
zero_gravi |
# Copyright (c) 2022, Stephan Nolting. All rights reserved. #
|
9 |
2 |
zero_gravi |
# #
|
10 |
|
|
# Redistribution and use in source and binary forms, with or without modification, are #
|
11 |
|
|
# permitted provided that the following conditions are met: #
|
12 |
|
|
# #
|
13 |
|
|
# 1. Redistributions of source code must retain the above copyright notice, this list of #
|
14 |
|
|
# conditions and the following disclaimer. #
|
15 |
|
|
# #
|
16 |
|
|
# 2. Redistributions in binary form must reproduce the above copyright notice, this list of #
|
17 |
|
|
# conditions and the following disclaimer in the documentation and/or other materials #
|
18 |
|
|
# provided with the distribution. #
|
19 |
|
|
# #
|
20 |
|
|
# 3. Neither the name of the copyright holder nor the names of its contributors may be used to #
|
21 |
|
|
# endorse or promote products derived from this software without specific prior written #
|
22 |
|
|
# permission. #
|
23 |
|
|
# #
|
24 |
|
|
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS #
|
25 |
|
|
# OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF #
|
26 |
|
|
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE #
|
27 |
|
|
# COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, #
|
28 |
|
|
# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE #
|
29 |
|
|
# GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED #
|
30 |
|
|
# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING #
|
31 |
|
|
# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED #
|
32 |
|
|
# OF THE POSSIBILITY OF SUCH DAMAGE. #
|
33 |
|
|
# ********************************************************************************************* #
|
34 |
|
|
# The NEORV32 Processor - https://github.com/stnolting/neorv32 (c) Stephan Nolting #
|
35 |
|
|
#################################################################################################
|
36 |
|
|
|
37 |
68 |
zero_gravi |
# Modify this variable to fit your NEORV32 setup (neorv32 home folder)
|
38 |
2 |
zero_gravi |
NEORV32_HOME ?= ../..
|
39 |
|
|
|
40 |
72 |
zero_gravi |
# Set ISA to minimal rv32i to allow bootloader to run on any processor ISA configuration
|
41 |
|
|
MARCH=rv32i
|
42 |
|
|
|
43 |
|
|
# Enable link-time-optimization and add debug symbols
|
44 |
|
|
USER_FLAGS="-flto"
|
45 |
|
|
USER_FLAGS+="-g"
|
46 |
|
|
|
47 |
68 |
zero_gravi |
include $(NEORV32_HOME)/sw/common/common.mk
|