diff options
| author | HiFiPhile <[email protected]> | 2026-07-05 12:35:03 +0200 |
|---|---|---|
| committer | HiFiPhile <[email protected]> | 2026-07-05 12:35:03 +0200 |
| commit | 6563ef3b2775317008962153abb20fbe727f41f2 (patch) | |
| tree | d4a7a125a400e8d4807712a35d47a080cd9af4fa /test/fuzz/device | |
| parent | 3439e9c8de046ed7f8a5a89338a57b9f0f9358b8 (diff) | |
fix ci
Signed-off-by: HiFiPhile <[email protected]>
Diffstat (limited to 'test/fuzz/device')
| -rw-r--r-- | test/fuzz/device/net_ncm/Makefile | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/test/fuzz/device/net_ncm/Makefile b/test/fuzz/device/net_ncm/Makefile index 50515457e..df5a61324 100644 --- a/test/fuzz/device/net_ncm/Makefile +++ b/test/fuzz/device/net_ncm/Makefile @@ -3,11 +3,12 @@ # It is self-contained: it #includes src/class/net/ncm_device.c and stubs the # few usbd/glue symbols, so it does not link the whole device stack. # -# make # build the libFuzzer target: ./net_ncm +# make # build the libFuzzer target: _build/net_ncm # make regression # build + replay the crafted seed under ASan (no engine) # make clean TOP := ../../../.. +BUILD := _build CC ?= clang @@ -21,20 +22,22 @@ FUZZ_FLAGS := -fsanitize=fuzzer .PHONY: all regression clean get-deps -all: net_ncm +all: $(BUILD)/net_ncm # No external dependencies (the harness only needs the in-tree NCM driver). get-deps: # libFuzzer supplies its own main(), so drop the standalone driver here. -net_ncm: fuzz.c +$(BUILD)/net_ncm: fuzz.c + mkdir -p $(@D) $(CC) $(CFLAGS) $(FUZZ_FLAGS) -DNO_MAIN -o $@ $< # Standalone build with a plain main(): replays the crafted seed and any extra # corpus files given as arguments. Used as a deterministic regression. regression: fuzz.c - $(CC) $(CFLAGS) -o net_ncm_regression $< - ./net_ncm_regression + mkdir -p $(BUILD) + $(CC) $(CFLAGS) -o $(BUILD)/net_ncm_regression $< + ./$(BUILD)/net_ncm_regression clean: - $(RM) -rf net_ncm net_ncm_regression *.dSYM + $(RM) -rf $(BUILD) *.dSYM |
