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
371d60c8
Commit
371d60c8
authored
May 25, 2018
by
Adam Wujek
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sw:fw: add CONFIG_CFLAGS_OPT and CONFIG_CFLAGS_EXTRA to the Kconfig.mt
Signed-off-by:
Adam Wujek
<
adam.wujek@cern.ch
>
parent
1ff91303
Show whitespace changes
Inline
Side-by-side
Showing
35 changed files
with
57 additions
and
31 deletions
+57
-31
mt_defconfig
demos/alarm_clock/firmware/fw-01/configs/mt_defconfig
+2
-0
mt_defconfig
demos/data_generator/firmware/fw-01/configs/mt_defconfig
+2
-0
Makefile
demos/fmc-svec-carrier/software/firmware/fw-01/Makefile
+0
-2
mt_defconfig
...svec-carrier/software/firmware/fw-01/configs/mt_defconfig
+2
-0
Makefile
demos/fmc-svec-carrier/software/firmware/fw-02/Makefile
+0
-2
mt_defconfig
...svec-carrier/software/firmware/fw-02/configs/mt_defconfig
+2
-0
mt_defconfig
demos/hello_world/firmware/fw-01/configs/mt_defconfig
+2
-0
mt_defconfig
...hello_world_framework/firmware/fw-01/configs/mt_defconfig
+2
-0
Makefile
demos/profiling/firmware/fw-01/Makefile
+0
-2
mt_defconfig
demos/profiling/firmware/fw-01/configs/mt_defconfig
+2
-0
Makefile
demos/profiling/firmware/fw-02/Makefile
+0
-2
mt_defconfig
demos/profiling/firmware/fw-02/configs/mt_defconfig
+2
-0
Makefile
demos/profiling/firmware/fw-03/Makefile
+0
-2
mt_defconfig
demos/profiling/firmware/fw-03/configs/mt_defconfig
+2
-0
Kconfig.mt
software/firmware/Kconfig.mt
+12
-0
Makefile
software/firmware/Makefile
+5
-5
mt_defconfig
...or/templates/software/firmware/fw-01/configs/mt_defconfig
+2
-0
Makefile
tests/firmware/config_rom/Makefile
+0
-2
mt_defconfig
tests/firmware/config_rom/configs/mt_defconfig
+2
-0
Makefile
tests/firmware/cpu-byte-addressing/Makefile
+0
-2
mt_defconfig
tests/firmware/cpu-byte-addressing/configs/mt_defconfig
+2
-0
Makefile
tests/firmware/cpu-loop/Makefile
+0
-2
mt_defconfig
tests/firmware/cpu-loop/configs/mt_defconfig
+2
-0
Makefile
tests/firmware/cpu-notify/Makefile
+0
-2
mt_defconfig
tests/firmware/cpu-notify/configs/mt_defconfig
+2
-0
Makefile
tests/firmware/hmq-async-recv/Makefile
+0
-2
mt_defconfig
tests/firmware/hmq-async-recv/configs/mt_defconfig
+2
-0
Makefile
tests/firmware/hmq-async-send/Makefile
+0
-2
mt_defconfig
tests/firmware/hmq-async-send/configs/mt_defconfig
+2
-0
Makefile
tests/firmware/hmq-purge/Makefile
+0
-2
mt_defconfig
tests/firmware/hmq-purge/configs/mt_defconfig
+2
-0
Makefile
tests/firmware/rt-frm/Makefile
+0
-2
mt_defconfig
tests/firmware/rt-frm/configs/mt_defconfig
+2
-0
mt_defconfig
tests/firmware/serial/configs/mt_defconfig
+2
-0
mt_defconfig
tests/firmware/sim-verif/configs/mt_defconfig
+2
-0
No files found.
demos/alarm_clock/firmware/fw-01/configs/mt_defconfig
View file @
371d60c8
...
...
@@ -12,6 +12,8 @@
#
CONFIG_FPGA_APPLICATION_ID=0
CONFIG_RT_APPLICATION_ID=0
CONFIG_CFLAGS_OPT="-Os"
CONFIG_CFLAGS_EXTRA="-ggdb"
#
# Mock Turtle framework configuration
...
...
demos/data_generator/firmware/fw-01/configs/mt_defconfig
View file @
371d60c8
...
...
@@ -12,6 +12,8 @@
#
CONFIG_FPGA_APPLICATION_ID=0
CONFIG_RT_APPLICATION_ID=0
CONFIG_CFLAGS_OPT="-Os"
CONFIG_CFLAGS_EXTRA="-ggdb"
#
# Mock Turtle framework configuration
...
...
demos/fmc-svec-carrier/software/firmware/fw-01/Makefile
View file @
371d60c8
...
...
@@ -12,8 +12,6 @@ EXTRA_CFLAGS += -I../common
EXTRA_CFLAGS
+=
-DFPGA_APPLICATION_ID
=
APPLICATION_ID
EXTRA_CFLAGS
+=
-DRT_APPLICATION_ID
=
$(RT_APPLICATION_ID_CPU1)
CFLAGS_OPT
:=
-O0
vpath
%.c
../
include
$(TRTL_SW)/firmware/Makefile
demos/fmc-svec-carrier/software/firmware/fw-01/configs/mt_defconfig
View file @
371d60c8
...
...
@@ -12,6 +12,8 @@
#
CONFIG_FPGA_APPLICATION_ID=0
CONFIG_RT_APPLICATION_ID=0
CONFIG_CFLAGS_OPT="-O0"
CONFIG_CFLAGS_EXTRA="-ggdb"
#
# Mock Turtle framework configuration
...
...
demos/fmc-svec-carrier/software/firmware/fw-02/Makefile
View file @
371d60c8
...
...
@@ -13,8 +13,6 @@ EXTRA_CFLAGS += -DFPGA_APPLICATION_ID=$(APPLICATION_ID)
EXTRA_CFLAGS
+=
-DRT_APPLICATION_ID
=
$(RT_APPLICATION_ID_CPU2)
EXTRA_CFLAGS
+=
-DLIBRT_DEBUG_VERBOSE
-DLIBRT_DEBUG
CFLAGS_OPT
:=
-O0
vpath
%.c
../
include
$(TRTL_SW)/firmware/Makefile
demos/fmc-svec-carrier/software/firmware/fw-02/configs/mt_defconfig
View file @
371d60c8
...
...
@@ -12,6 +12,8 @@
#
CONFIG_FPGA_APPLICATION_ID=0
CONFIG_RT_APPLICATION_ID=0
CONFIG_CFLAGS_OPT="-O0"
CONFIG_CFLAGS_EXTRA="-ggdb"
#
# Mock Turtle framework configuration
...
...
demos/hello_world/firmware/fw-01/configs/mt_defconfig
View file @
371d60c8
...
...
@@ -12,6 +12,8 @@
#
CONFIG_FPGA_APPLICATION_ID=0
CONFIG_RT_APPLICATION_ID=0
CONFIG_CFLAGS_OPT="-Os"
CONFIG_CFLAGS_EXTRA="-ggdb"
#
# Mock Turtle framework configuration
...
...
demos/hello_world_framework/firmware/fw-01/configs/mt_defconfig
View file @
371d60c8
...
...
@@ -12,6 +12,8 @@
#
CONFIG_FPGA_APPLICATION_ID=0
CONFIG_RT_APPLICATION_ID=0
CONFIG_CFLAGS_OPT="-Os"
CONFIG_CFLAGS_EXTRA="-ggdb"
#
# Mock Turtle framework configuration
...
...
demos/profiling/firmware/fw-01/Makefile
View file @
371d60c8
...
...
@@ -4,6 +4,4 @@ OUTPUT = fw-profile
TRTL
?=
../../../../
TRTL_SW
=
$(TRTL)
/software
CFLAGS_OPT
=
-O0
include
$(TRTL_SW)/firmware/Makefile
demos/profiling/firmware/fw-01/configs/mt_defconfig
View file @
371d60c8
...
...
@@ -12,6 +12,8 @@
#
CONFIG_FPGA_APPLICATION_ID=0
CONFIG_RT_APPLICATION_ID=0
CONFIG_CFLAGS_OPT="-O0"
CONFIG_CFLAGS_EXTRA="-ggdb"
#
# Mock Turtle framework configuration
...
...
demos/profiling/firmware/fw-02/Makefile
View file @
371d60c8
...
...
@@ -4,6 +4,4 @@ OUTPUT = fw-profile
TRTL
?=
../../../../
TRTL_SW
=
$(TRTL)
/software
CFLAGS_OPT
=
-O0
include
$(TRTL_SW)/firmware/Makefile
demos/profiling/firmware/fw-02/configs/mt_defconfig
View file @
371d60c8
...
...
@@ -12,6 +12,8 @@
#
CONFIG_FPGA_APPLICATION_ID=0
CONFIG_RT_APPLICATION_ID=0
CONFIG_CFLAGS_OPT="-O0"
CONFIG_CFLAGS_EXTRA="-ggdb"
#
# Mock Turtle framework configuration
...
...
demos/profiling/firmware/fw-03/Makefile
View file @
371d60c8
...
...
@@ -4,6 +4,4 @@ OUTPUT = fw-profile
TRTL
?=
../../../../
TRTL_SW
=
$(TRTL)
/software
CFLAGS_OPT
=
-O0
include
$(TRTL_SW)/firmware/Makefile
demos/profiling/firmware/fw-03/configs/mt_defconfig
View file @
371d60c8
...
...
@@ -12,6 +12,8 @@
#
CONFIG_FPGA_APPLICATION_ID=0
CONFIG_RT_APPLICATION_ID=0
CONFIG_CFLAGS_OPT="-O0"
CONFIG_CFLAGS_EXTRA="-ggdb"
#
# Mock Turtle framework configuration
...
...
software/firmware/Kconfig.mt
View file @
371d60c8
...
...
@@ -15,6 +15,18 @@ config RT_APPLICATION_ID
The firmware version as 32bit integer (16bit major number,
16bit minor number)
config CFLAGS_OPT
string "Optimization level for the compiler"
default "-Os"
help
The optimization level to be passed to the compiler
config CFLAGS_EXTRA
string "Extra flags for the compiler"
default "-ggdb"
help
Extra flags to be passed to the compiler
comment "Mock Turtle framework configuration"
config MOCKTURTLE_FRAMEWORK_ENABLE
bool "Enable Mock Turtle framework"
...
...
software/firmware/Makefile
View file @
371d60c8
...
...
@@ -39,11 +39,6 @@ OBJCOPY = $(CROSS_COMPILE_TARGET)objcopy
SIZE
=
$(CROSS_COMPILE_TARGET)
size
STRIP
=
$(CROSS_COMPILE_TARGET)
strip
CFLAGS_OPT
?=
-Os
CFLAGS_DBG
?=
-ggdb
CFLAGS
+=
$(CFLAGS_OPT)
CFLAGS
+=
$(CFLAGS_DBG)
CFLAGS
+=
-Wall
-D__TRTL_FIRMWARE__
-DARCH
=
urv
CFLAGS
+=
-I
.
CFLAGS
+=
-I
$(BUILDDIR)
/include
...
...
@@ -53,8 +48,13 @@ CFLAGS += -I$(TRTL)/software/firmware/framework
CFLAGS
+=
-I
$(TRTL)
/software/include
CFLAGS
+=
-DGIT_VERSION
=
$(RT_GIT_VERSION)
# used for firmware by trtl-project-creator
CFLAGS
+=
$(EXTRA_CFLAGS)
# $(shell echo $(CONFIG_*)) to support escape chars in .config
CFLAGS
+=
$(
shell
echo
$(CONFIG_CFLAGS_OPT))
CFLAGS
+=
$(
shell
echo
$(CONFIG_CFLAGS_EXTRA))
OBJDIR
+=
urv
OBJS
+=
urv/irq.o
...
...
software/tools/trtl-project-creator/templates/software/firmware/fw-01/configs/mt_defconfig
View file @
371d60c8
...
...
@@ -12,6 +12,8 @@
#
CONFIG_FPGA_APPLICATION_ID=0
CONFIG_RT_APPLICATION_ID=0
CONFIG_CFLAGS_OPT="-Os"
CONFIG_CFLAGS_EXTRA="-ggdb"
#
# Mock Turtle framework configuration
...
...
tests/firmware/config_rom/Makefile
View file @
371d60c8
...
...
@@ -4,6 +4,4 @@ OUTPUT = fw-config-rom
TRTL
?=
../../../
TRTL_SW
=
$(TRTL)
/software
CFLAGS_OPT
=
-O0
# disable optimization
include
$(TRTL_SW)/firmware/Makefile
tests/firmware/config_rom/configs/mt_defconfig
View file @
371d60c8
...
...
@@ -12,6 +12,8 @@ CONFIG_RT_APPLICATION_ID=0
#
# Mock Turtle configuration
#
CONFIG_CFLAGS_OPT="-O0"
CONFIG_CFLAGS_EXTRA="-ggdb"
#
# Mock Turtle framework configuration
...
...
tests/firmware/cpu-byte-addressing/Makefile
View file @
371d60c8
...
...
@@ -4,6 +4,4 @@ OUTPUT = fw-byte-addressing
TRTL
?=
../../../
TRTL_SW
=
$(TRTL)
/software
CFLAGS_OPT
=
-O0
# disable optimization
include
$(TRTL_SW)/firmware/Makefile
tests/firmware/cpu-byte-addressing/configs/mt_defconfig
View file @
371d60c8
...
...
@@ -12,6 +12,8 @@ CONFIG_RT_APPLICATION_ID=0
#
# Mock Turtle configuration
#
CONFIG_CFLAGS_OPT="-O0"
CONFIG_CFLAGS_EXTRA="-ggdb"
#
# Mock Turtle framework configuration
...
...
tests/firmware/cpu-loop/Makefile
View file @
371d60c8
...
...
@@ -4,6 +4,4 @@ OUTPUT = fw-loop
TRTL
?=
../../../
TRTL_SW
=
$(TRTL)
/software
CFLAGS_OPT
=
-O0
# disable optimization
include
$(TRTL_SW)/firmware/Makefile
tests/firmware/cpu-loop/configs/mt_defconfig
View file @
371d60c8
...
...
@@ -12,6 +12,8 @@ CONFIG_RT_APPLICATION_ID=0
#
# Mock Turtle configuration
#
CONFIG_CFLAGS_OPT="-O0"
CONFIG_CFLAGS_EXTRA="-ggdb"
#
# Mock Turtle framework configuration
...
...
tests/firmware/cpu-notify/Makefile
View file @
371d60c8
...
...
@@ -4,6 +4,4 @@ OUTPUT = fw-notify
TRTL
?=
../../../
TRTL_SW
=
$(TRTL)
/software
CFLAGS_OPT
=
-O0
# disable optimization
include
$(TRTL_SW)/firmware/Makefile
tests/firmware/cpu-notify/configs/mt_defconfig
View file @
371d60c8
...
...
@@ -12,6 +12,8 @@ CONFIG_RT_APPLICATION_ID=0
#
# Mock Turtle configuration
#
CONFIG_CFLAGS_OPT="-O0"
CONFIG_CFLAGS_EXTRA="-ggdb"
#
# Mock Turtle framework configuration
...
...
tests/firmware/hmq-async-recv/Makefile
View file @
371d60c8
...
...
@@ -4,6 +4,4 @@ OUTPUT = fw-hmq-async-recv
TRTL
?=
../../../
TRTL_SW
=
$(TRTL)
/software
CFLAGS_OPT
=
-O0
# disable optimization
include
$(TRTL_SW)/firmware/Makefile
tests/firmware/hmq-async-recv/configs/mt_defconfig
View file @
371d60c8
...
...
@@ -12,6 +12,8 @@ CONFIG_RT_APPLICATION_ID=0
#
# Mock Turtle configuration
#
CONFIG_CFLAGS_OPT="-O0"
CONFIG_CFLAGS_EXTRA="-ggdb"
#
# Mock Turtle framework configuration
...
...
tests/firmware/hmq-async-send/Makefile
View file @
371d60c8
...
...
@@ -4,6 +4,4 @@ OUTPUT = fw-hmq-async-send
TRTL
?=
../../../
TRTL_SW
=
$(TRTL)
/software
CFLAGS_OPT
=
-O0
# disable optimization
include
$(TRTL_SW)/firmware/Makefile
tests/firmware/hmq-async-send/configs/mt_defconfig
View file @
371d60c8
...
...
@@ -12,6 +12,8 @@ CONFIG_RT_APPLICATION_ID=0
#
# Mock Turtle configuration
#
CONFIG_CFLAGS_OPT="-O0"
CONFIG_CFLAGS_EXTRA="-ggdb"
#
# Mock Turtle framework configuration
...
...
tests/firmware/hmq-purge/Makefile
View file @
371d60c8
...
...
@@ -4,6 +4,4 @@ OUTPUT = fw-hmq-purge
TRTL
?=
../../../
TRTL_SW
=
$(TRTL)
/software
CFLAGS_OPT
=
-O0
# disable optimization
include
$(TRTL_SW)/firmware/Makefile
tests/firmware/hmq-purge/configs/mt_defconfig
View file @
371d60c8
...
...
@@ -12,6 +12,8 @@ CONFIG_RT_APPLICATION_ID=0
#
# Mock Turtle configuration
#
CONFIG_CFLAGS_OPT="-O0"
CONFIG_CFLAGS_EXTRA="-ggdb"
#
# Mock Turtle framework configuration
...
...
tests/firmware/rt-frm/Makefile
View file @
371d60c8
...
...
@@ -4,6 +4,4 @@ OUTPUT = fw-rt-frm
TRTL
?=
../../../
TRTL_SW
=
$(TRTL)
/software
CFLAGS_OPT
=
-O0
# disable optimization
include
$(TRTL_SW)/firmware/Makefile
tests/firmware/rt-frm/configs/mt_defconfig
View file @
371d60c8
...
...
@@ -12,6 +12,8 @@ CONFIG_RT_APPLICATION_ID=0
#
# Mock Turtle configuration
#
CONFIG_CFLAGS_OPT="-O0"
CONFIG_CFLAGS_EXTRA="-ggdb"
#
# Mock Turtle framework configuration
...
...
tests/firmware/serial/configs/mt_defconfig
View file @
371d60c8
...
...
@@ -12,6 +12,8 @@ CONFIG_RT_APPLICATION_ID=0
#
# Mock Turtle configuration
#
CONFIG_CFLAGS_OPT="-Os"
CONFIG_CFLAGS_EXTRA="-ggdb"
#
# Mock Turtle framework configuration
...
...
tests/firmware/sim-verif/configs/mt_defconfig
View file @
371d60c8
...
...
@@ -12,6 +12,8 @@ CONFIG_RT_APPLICATION_ID=0
#
# Mock Turtle configuration
#
CONFIG_CFLAGS_OPT="-Os"
CONFIG_CFLAGS_EXTRA="-ggdb"
#
# Mock Turtle framework configuration
...
...
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