From: Juergen Beisert <jbe@pengutronix.de>
To: ptxdist@pengutronix.de
Subject: [ptxdist] [PATCH 2/2] PPP: another package which needs the Linux kernel version
Date: Tue, 4 Feb 2014 10:58:34 +0100 [thread overview]
Message-ID: <1391507914-1659-3-git-send-email-jbe@pengutronix.de> (raw)
In-Reply-To: <1391507914-1659-1-git-send-email-jbe@pengutronix.de>
Signed-off-by: Juergen Beisert <jbe@pengutronix.de>
---
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
prev parent reply other threads:[~2014-02-04 9:58 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-04 9:58 [ptxdist] [PATCH] PPP: some fixes Juergen Beisert
2014-02-04 9:58 ` [ptxdist] [PATCH 1/2] PPP: fix config variable to do the right thing Juergen Beisert
2014-02-04 9:58 ` Juergen Beisert [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1391507914-1659-3-git-send-email-jbe@pengutronix.de \
--to=jbe@pengutronix.de \
--cc=ptxdist@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox