feat: add seeded flag generation

This commit is contained in:
2026-05-16 17:56:41 +02:00
parent 46bb5768d1
commit ff791d8f8c
4 changed files with 17 additions and 5 deletions

View File

@@ -8,6 +8,7 @@ endif
# Default configuration
FLAG_LEN ?= 32
FLAG_FORMAT ?= ctf{FLAG_GOES_HERE}
FLAG_SEED ?= false
# Compilation variables
RISCV_CC ?= riscv64-unknown-elf-gcc
@@ -105,7 +106,7 @@ endif
$(GENERATED): .FORCE
mkdir -p $(dir $@)
python codegen/generate.py $(FLAG_FORMAT) $(FLAG_LEN) > $@
python codegen/generate.py $(FLAG_FORMAT) $(FLAG_LEN) $(FLAG_SEED) > $@
build: