summaryrefslogtreecommitdiffstats
path: root/rules/ppp.make
diff options
context:
space:
mode:
authorJuergen Beisert <jbe@pengutronix.de>2014-02-04 10:58:34 +0100
committerMichael Olbrich <m.olbrich@pengutronix.de>2014-02-04 16:49:26 +0100
commit213eec65ac1d0f295f0af5dd71861c7bf8482180 (patch)
tree23b59124c1149e2c3df4b42a6092d79040f0b6f0 /rules/ppp.make
parentcec9d25492114fa104c396a93cb7d75cbaaf3b2c (diff)
downloadptxdist-213eec65ac1d0f295f0af5dd71861c7bf8482180.tar.gz
ptxdist-213eec65ac1d0f295f0af5dd71861c7bf8482180.tar.xz
PPP: another package which needs the Linux kernel version
Signed-off-by: Juergen Beisert <jbe@pengutronix.de> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'rules/ppp.make')
-rw-r--r--rules/ppp.make16
1 files changed, 14 insertions, 2 deletions
diff --git a/rules/ppp.make b/rules/ppp.make
index f9c591754..304589ce2 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