From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-ee0-f44.google.com ([74.125.83.44]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1S9iiS-0007I7-GJ for ptxdist@pengutronix.de; Mon, 19 Mar 2012 20:58:05 +0100 Received: by eeke51 with SMTP id e51so3067777eek.31 for ; Mon, 19 Mar 2012 12:57:56 -0700 (PDT) From: Remy Bohmer Date: Mon, 19 Mar 2012 20:57:50 +0100 Message-Id: <1332187070-7282-1-git-send-email-linux@bohmer.net> Subject: [ptxdist] [PATCH] [flashbench] Fix syntax error in case FLASHBENCH_MAX_BUFSIZE not defined Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de This error occurs in case PTXCONF_FLASHBENCH_MAX_BUFSIZE is not defined: $ ptxdist get expr: syntax error make: Nothing to be done for `get'. Change-Id: I1978d62b8781dbd5090b8a47b8fd8b944e6c79dc Signed-off-by: Remy Bohmer --- rules/flashbench.make | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/rules/flashbench.make b/rules/flashbench.make index fcb669e..b312979 100644 --- a/rules/flashbench.make +++ b/rules/flashbench.make @@ -31,8 +31,14 @@ FLASHBENCH_LICENSE := GPL v2 FLASHBENCH_CONF_TOOL := NO FLASHBENCH_MAKE_ENV := $(CROSS_ENV) + +ifdef PTXCONF_FLASHBENCH_MAX_BUFSIZE +FLASHBENCH_MAX_BUFSIZE := $(PTXCONF_FLASHBENCH_MAX_BUFSIZE) +else +FLASHBENCH_MAX_BUFSIZE := 1 +endif FLASHBENCH_MAKE_OPT := CC=$(CROSS_CC) \ - EXTRA_CFLAGS=-DMAX_BUFSIZE=$(shell expr 1024 \* 1024 \* $(PTXCONF_FLASHBENCH_MAX_BUFSIZE)) + EXTRA_CFLAGS=-DMAX_BUFSIZE=$(shell expr 1024 \* 1024 \* $(FLASHBENCH_MAX_BUFSIZE)) # ---------------------------------------------------------------------------- # Install -- 1.7.5.4 -- ptxdist mailing list ptxdist@pengutronix.de