From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from dude.hi.pengutronix.de ([2001:6f8:1178:2:21e:67ff:fe11:9c5c]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1WAcm5-0002IV-SC for ptxdist@pengutronix.de; Tue, 04 Feb 2014 10:58:37 +0100 Received: from jbe by dude.hi.pengutronix.de with local (Exim 4.82) (envelope-from ) id 1WAcm5-0006Go-Qm for ptxdist@pengutronix.de; Tue, 04 Feb 2014 10:58:37 +0100 From: Juergen Beisert Date: Tue, 4 Feb 2014 10:58:34 +0100 Message-Id: <1391507914-1659-3-git-send-email-jbe@pengutronix.de> In-Reply-To: <1391507914-1659-1-git-send-email-jbe@pengutronix.de> References: <1391507914-1659-1-git-send-email-jbe@pengutronix.de> Subject: [ptxdist] [PATCH 2/2] PPP: another package which needs the Linux kernel version 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 Signed-off-by: Juergen Beisert --- rules/ppp.make | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/rules/ppp.make b/rules/ppp.make index f9c5917..304589c 100644 --- a/rules/ppp.make +++ b/rules/ppp.make @@ -31,10 +31,22 @@ PPP_LICENSE := BSD,GPLv2 # Prepare # ---------------------------------------------------------------------------- +PPP_KERNEL_VERSION := $(if $(KERNEL_HEADER_VERSION),$(KERNEL_HEADER_VERSION),$(KERNEL_VERSION)) + +ifdef PTXCONF_PPP +ifeq ($(PPP_KERNEL_VERSION),) + $(warning ######################### ERROR ###########################) + $(warning # Linux kernel version required in order to make ppp work #) + $(warning # Define a platform kernel or the kernel headers #) + $(warning ###########################################################) + $(error ) +endif +endif + PPP_CONF_ENV := \ TARGET_OS=Linux \ - TARGET_OS_VER=$(KERNEL_HEADER_VERSION) \ - TARGET_OS_ARCH=$(KERNEL_HEADER_ARCH) \ + TARGET_OS_VER=$(PPP_KERNEL_VERSION) \ + TARGET_OS_ARCH=$(GENERIC_KERNEL_ARCH) PPP_MAKE_ENV := $(CROSS_ENV) PPP_MAKE_PAR := NO -- 1.8.5.3 -- ptxdist mailing list ptxdist@pengutronix.de