Skip to content

Commit

Permalink
init pqm7
Browse files Browse the repository at this point in the history
Signed-off-by: Thing-han, Lim <[email protected]>
  • Loading branch information
potsrevennil committed Oct 17, 2024
0 parents commit ec004d6
Show file tree
Hide file tree
Showing 405 changed files with 37,507 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
version: 2
updates:
- package-ecosystem: "gitsubmodule"
directory: '/'
schedule:
interval: "monthly"
7 changes: 7 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
- [ ] PR changes testvectors
- [ ] Tests pass in qemu
- [ ] Testvectors pass in qemu
- [ ] Tests pass on Nucleo-L4R5ZI
- [ ] Testvectors pass on Nucleo-L4R5ZI
- [ ] Updated Benchmarks
- [ ] Updated Skiplist entries
21 changes: 21 additions & 0 deletions .github/workflows/nucleo-f767zi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: stm32f4discovery build
on:
push:
branches:
- master
pull_request:
branches: [ "master" ]
jobs:
build-all:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Install Toolchain
uses: carlosperate/[email protected]
with:
release: 13.3.Rel1
- name: Build All (nucleo-f767zi)
run: make PLATFORM=nucleo-f767zi -j2
16 changes: 16 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
*.o
*.bin
*.elf
*.a
*.d
*.log*
venv/
testvectors/
benchmarks/
__pycache__/
bin/
obj/
elf/
bin-host/
compile_commands.json
.vscode
6 changes: 6 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[submodule "libopencm3"]
path = libopencm3
url = https://github.com/libopencm3/libopencm3.git
[submodule "mupq"]
path = mupq
url = https://github.com/mupq/mupq.git
23 changes: 23 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# SPDX-License-Identifier: Apache-2.0 or CC0-1.0
.PHONY: all
all: tests tests-bin

include mupq/mk/config.mk
include mk/config.mk
include mk/crypto.mk
include mupq/mk/host-crypto.mk
include mupq/mk/rules.mk
include mupq/mk/schemes.mk
include mk/tests.mk

.PHONY: clean libclean

clean:
rm -rf elf/
rm -rf bin/
rm -rf bin-host/
rm -rf obj/
rm -rf testvectors/
rm -rf benchmarks/

.SECONDARY:
33 changes: 33 additions & 0 deletions benchmarks.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
#!/usr/bin/env python3
# SPDX-License-Identifier: Apache-2.0 or CC0-1.0
from mupq import mupq
from interface import parse_arguments, get_platform
import sys

if __name__ == "__main__":
args, rest = parse_arguments()
platform, settings = get_platform(args)
with platform:
schemes = [s for s in rest if s not in ['--nostack',
'--nospeed',
'--nohashing',
'--nosize']]
if "--nostack" not in rest:
test = mupq.StackBenchmark(settings, platform)
if test.test_all(schemes):
sys.exit(1)

if "--nospeed" not in rest:
test = mupq.SpeedBenchmark(settings, platform)
if test.test_all(schemes):
sys.exit(1)

if "--nohashing" not in rest:
test = mupq.HashingBenchmark(settings, platform)
if test.test_all(schemes):
sys.exit(1)

if "--nosize" not in rest:
test = mupq.SizeBenchmark(settings, platform)
if test.test_all(schemes):
sys.exit(1)
16 changes: 16 additions & 0 deletions build_everything.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/usr/bin/env python3
# SPDX-License-Identifier: Apache-2.0 or CC0-1.0
"""
Builds all of the binaries without flashing them.
"""
import sys

from interface import parse_arguments, get_platform
from mupq import mupq


if __name__ == "__main__":
args, rest = parse_arguments()
platform, settings = get_platform(args)
with platform:
mupq.BuildAll(settings).test_all(rest)
Loading

0 comments on commit ec004d6

Please sign in to comment.