From d7b24424e597f29cc1ae034101bf5d605059d891 Mon Sep 17 00:00:00 2001 From: Julien Cretin Date: Tue, 21 Jun 2022 19:58:43 +0200 Subject: [PATCH] Disable patches check on github --- deploy.py | 11 ++++++++++- maintainers/reproduce_board.sh | 4 ++-- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/deploy.py b/deploy.py index 164005a..dfb8b87 100755 --- a/deploy.py +++ b/deploy.py @@ -770,7 +770,8 @@ class OpenSKInstaller: info("Nothing to do.") return 0 - subprocess.run(["./maintainers/patches", "check"], check=False) + if self.args.check_patches: + subprocess.run(["./maintainers/patches", "check"], check=False) # Compile what needs to be compiled board_props = SUPPORTED_BOARDS[self.args.board] @@ -1108,6 +1109,14 @@ if __name__ == "__main__": "of variable-time arithmetic for computations over secret key."), ) + main_parser.add_argument( + "--disable-check-patches", + action="store_false", + default=True, + dest="check_patches", + help=("Don't check that patches are in sync with their submodules."), + ) + main_parser.set_defaults(features=["with_ctap1"]) # Start parsing to know if we're going to list things or not. diff --git a/maintainers/reproduce_board.sh b/maintainers/reproduce_board.sh index d978c98..439e602 100755 --- a/maintainers/reproduce_board.sh +++ b/maintainers/reproduce_board.sh @@ -20,10 +20,10 @@ echo "========================================" >> reproducible/elf2tab.txt echo "Board: $BOARD" >> reproducible/elf2tab.txt echo "----------------------------------------" >> reproducible/elf2tab.txt -./deploy.py --verbose-build --board=$BOARD --no-app --programmer=none +./deploy.py --verbose-build --disable-check-patches --board=$BOARD --no-app --programmer=none ./third_party/tock/tools/sha256sum/target/debug/sha256sum third_party/tock/target/thumbv7em-none-eabi/release/$BOARD.bin >> reproducible/binaries.sha256sum tar -rvf reproducible/reproduced.tar third_party/tock/target/thumbv7em-none-eabi/release/$BOARD.bin -./deploy.py --verbose-build --board=$BOARD --opensk --programmer=none --elf2tab-output=reproducible/elf2tab.txt +./deploy.py --verbose-build --disable-check-patches --board=$BOARD --opensk --programmer=none --elf2tab-output=reproducible/elf2tab.txt ./third_party/tock/tools/sha256sum/target/debug/sha256sum target/${BOARD}_merged.hex >> reproducible/binaries.sha256sum tar -rvf reproducible/reproduced.tar target/${BOARD}_merged.hex