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
343d0c39
authored
5 years ago
by
Enrico Pozzobon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
improved exclusion of test vector generator
parent
ca93b58a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
compile_all.py
+6
-3
templates/f7/configure
+2
-1
No files found.
compile_all.py
View file @
343d0c39
...
...
@@ -18,9 +18,12 @@ def build(algo_dir, template_dir, build_dir):
shutil
.
copytree
(
algo_dir
,
build_dir
)
# remove the test vectors generator if it is there
c
=
os
.
path
.
join
(
build_dir
,
"genkat_aead.c"
)
if
os
.
path
.
exists
(
c
):
os
.
remove
(
c
)
for
r
,
d
,
f
in
os
.
walk
(
build_dir
):
for
file
in
f
:
with
open
(
os
.
path
.
join
(
r
,
file
),
'r'
)
as
o
:
is_generator
=
'generate_test_vectors'
in
o
.
read
()
if
is_generator
:
os
.
remove
(
os
.
path
.
join
(
r
,
file
))
# find all c and h files, since they will be added to the makefile
hfiles
=
[]
...
...
This diff is collapsed.
Click to expand it.
templates/f7/configure
View file @
343d0c39
#!/bin/bash
mv
-n
*
.dat
*
.inc
*
.h Inc/
sed
-i
src/encrypt.c
-e
"s/
\(\s\)
init(/
\1
_init(/g"
[
-f
./build
]
&&
rm ./build
[
-f
src/encrypt.c
]
&&
sed
-i
src/encrypt.c
-e
"s/
\(\s\)
init(/
\1
_init(/g"
mkdir
-p
/tmp/f7/Drivers
ln
-s
/tmp/f7/Drivers Drivers
exit
0
This diff is collapsed.
Click to expand it.
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