diff options
author | Bernhard Walle <bernhard@bwalle.de> | 2012-03-22 09:19:46 +0100 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2012-03-23 08:33:48 +0100 |
commit | c921a4950f316a50d3e610f82209a209d87d01fb (patch) | |
tree | fea9d8b87ca86380d69fe7f73d98322d1c2ac101 /rules/flashbench.make | |
parent | 094bd30fd631d4f3bedcbc1c304ef0585a7352e5 (diff) | |
download | ptxdist-c921a4950f316a50d3e610f82209a209d87d01fb.tar.gz ptxdist-c921a4950f316a50d3e610f82209a209d87d01fb.tar.xz |
flashbench: Fix error when flashbench is not selected
When flashbench is not selected in "ptxdist menuconfig", then
$(PTXCONF_FLASHBENCH_MAX_BUFSIZE) is undefined. In that case, the expr
call fails.
Fix the problem by delaying the evaluation of FLASHBENCH_MAKE_OPT until
it's really needed, i.e. when flashbench has been selected.
Signed-off-by: Bernhard Walle <bernhard@bwalle.de>
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'rules/flashbench.make')
-rw-r--r-- | rules/flashbench.make | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/rules/flashbench.make b/rules/flashbench.make index fcb669ef9..39bdfb608 100644 --- a/rules/flashbench.make +++ b/rules/flashbench.make @@ -31,7 +31,10 @@ FLASHBENCH_LICENSE := GPL v2 FLASHBENCH_CONF_TOOL := NO FLASHBENCH_MAKE_ENV := $(CROSS_ENV) -FLASHBENCH_MAKE_OPT := CC=$(CROSS_CC) \ + +# Use '=' instaed of ':=' because $(PTXCONF_FLASHBENCH_MAX_BUFSIZE) is not defined +# when flashbench is not selected to be built. +FLASHBENCH_MAKE_OPT = CC=$(CROSS_CC) \ EXTRA_CFLAGS=-DMAX_BUFSIZE=$(shell expr 1024 \* 1024 \* $(PTXCONF_FLASHBENCH_MAX_BUFSIZE)) # ---------------------------------------------------------------------------- |