Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
lwc
/
compare
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Pipelines
Members
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
c87607fe
authored
Mar 23, 2020
by
Enrico Pozzobon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
small fix to F7 template
parent
75eec6f5
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
8 deletions
+8
-8
compile_all.py
+6
-2
templates/f7/Makefile
+2
-1
templates/f7/configure
+0
-5
No files found.
compile_all.py
View file @
c87607fe
...
...
@@ -25,11 +25,14 @@ def build(algo_dir, template_dir, build_dir):
# find all c and h files, since they will be added to the makefile
hfiles
=
[]
cfiles
=
[]
sfiles
=
[]
for
r
,
d
,
f
in
os
.
walk
(
build_dir
):
for
file
in
f
:
if
file
.
endswith
(
".c"
):
if
file
.
lower
()
.
endswith
(
".c"
):
cfiles
.
append
(
file
)
elif
file
.
endswith
(
".h"
):
elif
file
.
lower
()
.
endswith
(
".s"
):
sfiles
.
append
(
file
)
elif
file
.
lower
()
.
endswith
(
".h"
):
hfiles
.
append
(
file
)
# copy all the files from the template directory into the build directory
...
...
@@ -46,6 +49,7 @@ def build(algo_dir, template_dir, build_dir):
# prepare the environmental variables for the makefile
env
=
os
.
environ
env
[
'SRC_FILES'
]
=
' '
.
join
(
cfiles
)
env
[
'ASM_FILES'
]
=
' '
.
join
(
sfiles
)
env
[
'HDR_FILES'
]
=
' '
.
join
(
hfiles
)
# enter the directory and execute the makefile
...
...
templates/f7/Makefile
View file @
c87607fe
...
...
@@ -52,7 +52,8 @@ $(SRC_FILES)
# ASM sources
ASM_SOURCES
=
\
startup_stm32f746xx.s
startup_stm32f746xx.s
\
$(ASM_FILES)
#######################################
...
...
templates/f7/configure
View file @
c87607fe
#!/bin/bash
# Rename all *.s to *.S
for
f
in
*
.s
;
do
mv
--
"
$f
"
"
${
f
%.s
}
.S"
done
mv
-n
*
.dat
*
.inc
*
.h Inc/
sed
-i
src/encrypt.c
-e
"s/
\(\s\)
init(/
\1
_init(/g"
mkdir
-p
/tmp/f7/Drivers
...
...
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