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 1W2cKy-0004IH-9Z for ptxdist@pengutronix.de; Mon, 13 Jan 2014 08:53:32 +0100 From: =?iso-8859-15?q?J=FCrgen_Beisert?= Date: Mon, 13 Jan 2014 08:56:05 +0100 References: <201312201241.12949.jbe@pengutronix.de> In-Reply-To: <201312201241.12949.jbe@pengutronix.de> MIME-Version: 1.0 Content-Disposition: inline Message-Id: <201401130856.05369.jbe@pengutronix.de> Subject: [ptxdist] [PATCH] Bridge-utils requires a kernel version to build 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 bridge-utils' 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/bridge-utils.make b/rules/bridge-utils.make index 9de1c16..f4b1402 100644 --- a/rules/bridge-utils.make +++ b/rules/bridge-utils.make @@ -40,6 +40,16 @@ BRIDGE_UTILS_AUTOCONF :=3D \ $(CROSS_AUTOCONF_USR) \ --with-linux-headers=3D$(KERNEL_HEADERS_DIR) = +ifdef PTXCONF_BRIDGE_UTILS +ifeq ($(KERNEL_HEADER_VERSION),) + $(warning ########################### ERROR #############################= #####) + $(warning # Linux kernel version required in order to make bridge-utils w= ork #) + $(warning # Define a platform kernel or the kernel headers = #) + $(warning ###############################################################= #####) + $(error ) +endif +endif + # ------------------------------------------------------------------------= ---- # Target-Install # ------------------------------------------------------------------------= ---- -- = 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