From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from smtprelay05.ispgateway.de ([80.67.31.97]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1SA4rT-0008JT-MQ for ptxdist@pengutronix.de; Tue, 20 Mar 2012 20:36:52 +0100 Received: from [93.104.149.103] (helo=localhost) by smtprelay05.ispgateway.de with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.68) (envelope-from ) id 1SA4rT-0003Ai-9u for ptxdist@pengutronix.de; Tue, 20 Mar 2012 20:36:51 +0100 From: Bernhard Walle Date: Tue, 20 Mar 2012 20:36:47 +0100 Message-Id: <1332272207-80692-1-git-send-email-bernhard@bwalle.de> In-Reply-To: <201203202028.39620.jbe@pengutronix.de> References: <201203202028.39620.jbe@pengutronix.de> Subject: [ptxdist] [PATCH] flashbench: Fix error when flashbench is not selected 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 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 --- 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)) # ---------------------------------------------------------------------------- -- 1.7.9.4 -- ptxdist mailing list ptxdist@pengutronix.de