From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from thebe.hi.pengutronix.de ([2001:6f8:1178:2:5e26:aff:fe2b:7cc4]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1VtyPx-0001a2-Ol for ptxdist@pengutronix.de; Fri, 20 Dec 2013 12:38:57 +0100 From: =?iso-8859-15?q?J=FCrgen_Beisert?= Date: Fri, 20 Dec 2013 12:41:12 +0100 MIME-Version: 1.0 Content-Disposition: inline Message-Id: <201312201241.12949.jbe@pengutronix.de> Subject: [ptxdist] [PATCH] Valgrind requires a kernel version to work Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: quoted-printable Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de Until a kernel version is defined the Valgrind's prepare stage fails. As this failure is due to an incomplete project configuration, add a more = helpful error message how to resolve it. Signed-off-by: Juergen Beisert diff --git a/rules/valgrind.make b/rules/valgrind.make index 6ee7dd9..5869e47 100644 --- a/rules/valgrind.make +++ b/rules/valgrind.make @@ -45,6 +45,16 @@ VALGRIND_ENV :=3D \ $(CROSS_ENV) \ valgrind_cv_sys_kernel_version=3D$(VALGRIND_KERNEL_VERSION) = +ifdef PTXCONF_VALGRIND +ifeq ($(VALGRIND_KERNEL_VERSION),) + $(warning ######################### ERROR ###############################= #) + $(warning # Linux kernel version required in order to make valgrind work = #) + $(warning # Define a platform kernel or the kernel headers = #) + $(warning ###############################################################= #) + $(error ) +endif +endif + # # autoconf # -- = Pengutronix e.K. =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0| Juergen Beisert =A0 =A0 =A0 =A0 =A0 =A0 | Linux Solutions for Science and Industry =A0 =A0 =A0| http://www.pengutroni= x.de/ | -- = ptxdist mailing list ptxdist@pengutronix.de