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
15102fb8
Commit
15102fb8
authored
May 25, 2018
by
Adam Wujek
💬
Browse files
Options
Browse Files
Download
Plain Diff
sw:tools:proj_creator: minor improvements
Signed-off-by:
Adam Wujek
<
adam.wujek@cern.ch
>
parents
a67f7b91
0844fb59
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
27 additions
and
44 deletions
+27
-44
compare_size.sh
software/tools/compare_size.sh
+9
-4
.gitignore
.../tools/trtl-project-creator/templates/software/.gitignore
+1
-0
Makefile
...trtl-project-creator/templates/software/firmware/Makefile
+9
-3
.config
...project-creator/templates/software/firmware/fw-01/.config
+0
-31
Kconfig
...project-creator/templates/software/firmware/fw-01/Kconfig
+1
-1
mt_defconfig
...or/templates/software/firmware/fw-01/configs/mt_defconfig
+3
-3
trtl-project-creator
software/tools/trtl-project-creator/trtl-project-creator
+4
-2
No files found.
software/tools/compare_size.sh
View file @
15102fb8
#!/bin/bash
#LC_ALL= CROSS_COMPILE_TARGET=/acc/local/share/ht_tools/L866/toolchains/riscv/bin/riscv32-elf- WBGEN2=~/nfs_white_rabbit/ci/build_tools/wishbone-gen/wbgen2 REPO_PARENT=`pwd` ./all.sh
# Author: Adam Wujek, CERN 2018
#
# This script compares the size of produced binaries of a current commit
# (read from a file $size_db_file), with sizes of binaries produced for previous
# commits (read from file $size_db_file).
SIZE
=
"
$CROSS_COMPILE_TARGET
""size"
if
!
[
-n
"
$size_info_file
"
]
;
then
...
...
@@ -70,7 +75,7 @@ if [ "$GIT_HASH_CUR" = "$GIT_HASH_MASTER" ]; then
exit
0
fi
#
echo "Read size info file"
#
Read size info file
while
read
git_hash text data bss dec hex filename
do
if
[
"
$git_hash
"
=
"
$GIT_HASH_CUR
"
]
;
then
...
...
@@ -78,7 +83,7 @@ do
fi
done
<
"
$size_info_file
"
#
echo "Read size db file"
#
Read size db file
while
read
git_hash text data bss dec hex filename
do
#echo "$git_hash $filename $dec"
...
...
@@ -99,7 +104,7 @@ do
done
#print header
#
print header
for
i
in
"
${
!curr_size_array[@]
}
"
do
echo
-n
"+--"
...
...
software/tools/trtl-project-creator/templates/software/.gitignore
View file @
15102fb8
...
...
@@ -19,3 +19,4 @@ GPATH
*.aux
.depend
build/
.config
software/tools/trtl-project-creator/templates/software/firmware/Makefile
View file @
15102fb8
...
...
@@ -2,15 +2,21 @@
DIRS
:=
fw-01
all clean modules install modules_install
:
$(DIRS)
all clean
cleanall
modules install modules_install
:
$(DIRS)
clean
:
TARGET = clean
cleanall
:
TARGET = cleanall
modules
:
TARGET = modules
install
:
TARGET = install
modules_install
:
TARGET = modules_install
$(DIRS)
:
DOT-CONFIGS
=
$
(
addsuffix /.config,
$(DIRS)
)
$(DIRS)
:
$(DOT-CONFIGS)
$(MAKE)
-C
$@
$(TARGET)
.PHONY
:
all clean modules install modules_install
$(DOT-CONFIGS)
:
$(MAKE)
-C
$
(
@D
)
defconfig
.PHONY
:
all clean cleanall modules install modules_install
.PHONY
:
$(DIRS)
software/tools/trtl-project-creator/templates/software/firmware/fw-01/.config
deleted
100644 → 0
View file @
a67f7b91
#
# Automatically generated file; DO NOT EDIT.
#
#
# Project specific configuration
#
CONFIG_FPGA_APPLICATION_ID
=
0
CONFIG_RT_APPLICATION_ID
=
0
#
# Mock Turtle configuration
#
#
# Mock Turtle framework configuration
#
CONFIG_MOCKTURTLE_FRAMEWORK_ENABLE
=
y
CONFIG_MOCKTURTLE_FRAMEWORK_ACTION_ENABLE
=
y
CONFIG_MOCKTURTLE_FRAMEWORK_PING_ENABLE
=
y
CONFIG_MOCKTURTLE_FRAMEWORK_VERSION_ENABLE
=
y
# CONFIG_MOCKTURTLE_FRAMEWORK_DEBUG_ENABLE is not set
# CONFIG_MOCKTURTLE_FRAMEWORK_VARIABLE_ENABLE is not set
# CONFIG_MOCKTURTLE_FRAMEWORK_BUFFER_ENABLE is not set
# CONFIG_MOCKTURTLE_FRAMEWORK_VALUE_SEND_ENABLE is not set
# CONFIG_MOCKTURTLE_FRAMEWORK_BUFFER_SEND_ENABLE is not set
#
# Mock Turtle library configuration
#
# CONFIG_MOCKTURTLE_LIBRARY_PRINT_ENABLE is not set
software/tools/trtl-project-creator/templates/software/firmware/fw-01/Kconfig
View file @
15102fb8
mainmenu "
alarm_clock demo
configuration"
mainmenu "
{{name}}
configuration"
comment "Project specific configuration"
...
...
software/tools/trtl-project-creator/templates/software/firmware/fw-01/configs/mt_defconfig
View file @
15102fb8
#
# Automatically generated file; DO NOT EDIT.
# {{name}} configuration
#
#
...
...
@@ -17,11 +18,10 @@ CONFIG_RT_APPLICATION_ID=0
#
CONFIG_MOCKTURTLE_FRAMEWORK_ENABLE=y
CONFIG_MOCKTURTLE_FRAMEWORK_ACTION_ENABLE=y
CONFIG_MOCKTURTLE_FRAMEWORK_PING_ENABLE=y
CONFIG_MOCKTURTLE_FRAMEWORK_VERSION_ENABLE=y
# CONFIG_MOCKTURTLE_FRAMEWORK_DEBUG_ENABLE is not set
# CONFIG_MOCKTURTLE_FRAMEWORK_VARIABLE_ENABLE is not set
# CONFIG_MOCKTURTLE_FRAMEWORK_BUFFER_ENABLE is not set
CONFIG_MOCKTURTLE_FRAMEWORK_PING_ENABLE=y
CONFIG_MOCKTURTLE_FRAMEWORK_VERSION_ENABLE=y
# CONFIG_MOCKTURTLE_FRAMEWORK_VALUE_SEND_ENABLE is not set
# CONFIG_MOCKTURTLE_FRAMEWORK_BUFFER_SEND_ENABLE is not set
...
...
software/tools/trtl-project-creator/trtl-project-creator
View file @
15102fb8
...
...
@@ -73,7 +73,7 @@ def tpc_apply_value_to_template(directory, table):
"""It applys the values to the template files
"""
env
=
jinja2
.
Environment
(
loader
=
jinja2
.
FileSystemLoader
(
directory
))
env
=
jinja2
.
Environment
(
loader
=
jinja2
.
FileSystemLoader
(
directory
)
,
keep_trailing_newline
=
True
)
# Adjust content and create new file
for
tmpl
in
[
"CHANGELOG"
,
...
...
@@ -84,6 +84,8 @@ def tpc_apply_value_to_template(directory, table):
"software/lib/Makefile"
,
"software/firmware/Makefile"
,
"software/firmware/fw-01/Makefile"
,
"software/firmware/fw-01/Kconfig"
,
"software/firmware/fw-01/configs/mt_defconfig"
,
"doc/Makefile"
,
"doc/doxygen-project-config"
,
"doc/img/Makefile"
,
...
...
@@ -146,4 +148,4 @@ if __name__ == "__main__":
if
args
.
git
:
tpc_git_init
(
dst_dir
)
print
(
"An empty Mock Turtle project has been created at
\"
%
s
\"
"
)
%
dst_dir
print
(
"An empty Mock Turtle project has been created at
\"
"
+
dst_dir
+
"
\"
"
)
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