diff options
author | Juergen Beisert <jbe@pengutronix.de> | 2014-02-04 10:58:34 +0100 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2014-02-04 16:49:26 +0100 |
commit | 213eec65ac1d0f295f0af5dd71861c7bf8482180 (patch) | |
tree | 23b59124c1149e2c3df4b42a6092d79040f0b6f0 /rules/ppp.make | |
parent | cec9d25492114fa104c396a93cb7d75cbaaf3b2c (diff) | |
download | ptxdist-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.make | 16 |
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 |