Hi,

2012/3/20 Bernhard Walle <[email protected]>:
> 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 <[email protected]>
> ---
>  rules/flashbench.make |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/rules/flashbench.make b/rules/flashbench.make
> index fcb669e..0ef52d1 100644
> --- a/rules/flashbench.make
> +++ b/rules/flashbench.make
> @@ -31,7 +31,7 @@ FLASHBENCH_LICENSE    := GPL v2
>
>  FLASHBENCH_CONF_TOOL   := NO
>  FLASHBENCH_MAKE_ENV    := $(CROSS_ENV)
> -FLASHBENCH_MAKE_OPT    := CC=$(CROSS_CC) \
> +FLASHBENCH_MAKE_OPT    = CC=$(CROSS_CC) \
>        EXTRA_CFLAGS=-DMAX_BUFSIZE=$(shell expr 1024 \* 1024 \* 
> $(PTXCONF_FLASHBENCH_MAX_BUFSIZE))

Acked-by: Remy Bohmer <[email protected]>

Kind regards,

Remy

-- 
ptxdist mailing list
[email protected]

Reply via email to