From: Markus Niebel <niebelm@tqsc.de>
To: ptxdist@pengutronix.de
Cc: m.olbrich@pengutronix.de, Markus Niebel <Markus.Niebel@tq-group.com>
Subject: [ptxdist] [PATCH v2 1/2] host-system-bc: add new host-system package
Date: Thu, 9 Mar 2017 10:00:56 +0100 [thread overview]
Message-ID: <1489050057-15317-2-git-send-email-niebelm@tqsc.de> (raw)
In-Reply-To: <1489050057-15317-1-git-send-email-niebelm@tqsc.de>
From: Markus Niebel <Markus.Niebel@tq-group.com>
Signed-off-by: Markus Niebel <Markus.Niebel@tq-group.com>
---
rules/host-system-bc.in | 6 ++++++
rules/host-system-bc.make | 28 ++++++++++++++++++++++++++++
2 files changed, 34 insertions(+)
create mode 100644 rules/host-system-bc.in
create mode 100644 rules/host-system-bc.make
diff --git a/rules/host-system-bc.in b/rules/host-system-bc.in
new file mode 100644
index 0000000..4234792
--- /dev/null
+++ b/rules/host-system-bc.in
@@ -0,0 +1,6 @@
+## SECTION=hosttools_noprompt
+## SECTION=hosttools_platform
+
+config HOST_SYSTEM_BC
+ tristate
+
diff --git a/rules/host-system-bc.make b/rules/host-system-bc.make
new file mode 100644
index 0000000..5396f1a
--- /dev/null
+++ b/rules/host-system-bc.make
@@ -0,0 +1,28 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2017 by Markus Niebel <Markus Niebel@tq-group.com>
+#
+# See CREDITS for details about who has contributed to this project.
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_HOST_SYSTEM_BC) += host-system-bc
+HOST_SYSTEM_BC_LICENSE := ignore
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/host-system-bc.prepare:
+ @$(call targetinfo)
+ @echo "Checking for bc ..."
+ @bc --version >/dev/null 2>&1 || \
+ ptxd_bailout "'bc' not found! Please install.";
+ @$(call touch)
+
+# vim: syntax=make
--
1.9.1
_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
next prev parent reply other threads:[~2017-03-09 9:00 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-09 9:00 [ptxdist] [PATCH v2 0/2] fix kernel build dep from bc Markus Niebel
2017-03-09 9:00 ` Markus Niebel [this message]
2017-03-09 9:00 ` [ptxdist] [PATCH v2 2/2] kernel: depend kernel on having bc installed Markus Niebel
2017-03-10 9:41 ` Michael Olbrich
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=1489050057-15317-2-git-send-email-niebelm@tqsc.de \
--to=niebelm@tqsc.de \
--cc=Markus.Niebel@tq-group.com \
--cc=m.olbrich@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