make: Added hooks to pass BENCH_PERBYTE/NOR/NAND through
Just makes it a bit easier to fiddle with. I don't think we can adopt the same prefix => define trick for LFS3_* defines. If we did it'd pull in things like BENCH_CFLAGS, recursively...
This commit is contained in:
@@ -124,6 +124,9 @@ BENCH_CFLAGS += -Wl,--wrap=malloc
|
||||
BENCH_CFLAGS += -Wl,--wrap=free
|
||||
BENCH_CFLAGS += -Wl,--wrap=realloc
|
||||
endif
|
||||
ifdef BENCH_PERBYTE
|
||||
BENCH_CFLAGS += -DBENCH_PERBYTE
|
||||
endif
|
||||
|
||||
ifdef VERBOSE
|
||||
CODEFLAGS += -v
|
||||
@@ -193,6 +196,14 @@ TESTFLAGS += --perf-path="$(PERF)"
|
||||
BENCHFLAGS += --perf-path="$(PERF)"
|
||||
endif
|
||||
|
||||
# alternative bench geometries (defaults to NOR flash)
|
||||
ifdef BENCH_NOR
|
||||
BENCHFLAGS += -DDISK_GEOMETRY=0
|
||||
endif
|
||||
ifdef BENCH_NAND
|
||||
BENCHFLAGS += -DDISK_GEOMETRY=1
|
||||
endif
|
||||
|
||||
# this is a bit of a hack, but we want to make sure the BUILDDIR
|
||||
# directory structure is correct before we run any commands
|
||||
ifneq ($(BUILDDIR),.)
|
||||
|
||||
Reference in New Issue
Block a user