Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
M
Mock Turtle
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Mock Turtle
Commits
5aede5ff
Commit
5aede5ff
authored
Oct 06, 2023
by
Dimitris Lampridis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sw/fw: update CFLAGS and ASFLAGS for GCC 11.2
parent
d27a3c6f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
Makefile
software/firmware/Makefile
+4
-6
No files found.
software/firmware/Makefile
View file @
5aede5ff
...
...
@@ -38,10 +38,8 @@ RT_GIT_VERSION = 0x$(shell git rev-parse --short=8 HEAD || echo "0") # empty if
AUTOCONF
=
$(src)
/
$(BUILDDIR)
/include/generated/autoconf.h
CROSS_COMPILE_TARGET
?=
riscv32-elf-
# FIXME the mult/div is broken, for the time being remove it completely
# -march=rv32im should be the future option
CFLAGS
+=
-D__TRTL_FIRMWARE__
CFLAGS
+=
-mabi
=
ilp32
-march
=
rv32im
-ffunction-sections
-fdata-sections
CFLAGS
?=
-mabi
=
ilp32
-march
=
rv32im
ASFLAGS
?=
-mabi
=
ilp32
-march
=
rv32im_zicsr
CXXFLAGS
+=
-fno-rtti
-fno-exceptions
LDFLAGS
+=
-lgcc
-lc
-Wl
,--gc-sections
TRTL_LD_DIR
?=
$(src)
...
...
@@ -74,7 +72,7 @@ STRIP = $(CROSS_COMPILE_TARGET)strip
MEM_INIT_GEN
=
$(GEN_CORES)
/tools/mem_init_gen.py
CFLAGS
+=
-Wall
-D__TRTL_FIRMWARE__
-DARCH
=
urv
CFLAGS
+=
-Wall
-D__TRTL_FIRMWARE__
-DARCH
=
urv
-ffunction-sections
-fdata-sections
CFLAGS
+=
-I
.
CFLAGS
+=
-I
$(BUILDDIR)
/include
CFLAGS
+=
-I
$(TRTL_FW)
...
...
@@ -178,7 +176,7 @@ $(BUILDDIR)/%.o: %.cpp
$(POSTCOMPILE)
$(BUILDDIR)/%.o
:
%.S
${
CC
}
$(DEPFLAGS)
$(
C
FLAGS)
$(LDFLAGS)
-c
$<
-o
$@
${
CC
}
$(DEPFLAGS)
$(
AS
FLAGS)
$(LDFLAGS)
-c
$<
-o
$@
$(POSTCOMPILE)
clean
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment