mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH v2 0/2] fix kernel build dep from bc
@ 2017-03-09  9:00 Markus Niebel
  2017-03-09  9:00 ` [ptxdist] [PATCH v2 1/2] host-system-bc: add new host-system package Markus Niebel
  2017-03-09  9:00 ` [ptxdist] [PATCH v2 2/2] kernel: depend kernel on having bc installed Markus Niebel
  0 siblings, 2 replies; 4+ messages in thread
From: Markus Niebel @ 2017-03-09  9:00 UTC (permalink / raw)
  To: ptxdist; +Cc: m.olbrich, Markus Niebel

From: Markus Niebel <Markus.Niebel@tq-group.com>

kernel versions newer than 3.10 have bc as build dependency
add a new host-system-bc package and let kernel select this package

Markus Niebel (2):
  host-system-bc: add new host-system package
  kernel: depend kernel on having bc installed

 platforms/kernel.in |  1 +
 rules/host-bc.in    |  6 ++++++
 rules/host-bc.make  | 17 +++++++++++++++++
 3 files changed, 24 insertions(+)
 create mode 100644 rules/host-bc.in
 create mode 100644 rules/host-bc.make

-- 

Changes for v2:
- use host-system logic as suggested by Michael Olbrich
- depend kernel on HOST_SYSTEM_BC 

1.9.1


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [ptxdist] [PATCH v2 1/2] host-system-bc: add new host-system package
  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
  2017-03-09  9:00 ` [ptxdist] [PATCH v2 2/2] kernel: depend kernel on having bc installed Markus Niebel
  1 sibling, 0 replies; 4+ messages in thread
From: Markus Niebel @ 2017-03-09  9:00 UTC (permalink / raw)
  To: ptxdist; +Cc: m.olbrich, Markus Niebel

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [ptxdist] [PATCH v2 2/2] kernel: depend kernel on having bc installed
  2017-03-09  9:00 [ptxdist] [PATCH v2 0/2] fix kernel build dep from bc Markus Niebel
  2017-03-09  9:00 ` [ptxdist] [PATCH v2 1/2] host-system-bc: add new host-system package Markus Niebel
@ 2017-03-09  9:00 ` Markus Niebel
  2017-03-10  9:41   ` Michael Olbrich
  1 sibling, 1 reply; 4+ messages in thread
From: Markus Niebel @ 2017-03-09  9:00 UTC (permalink / raw)
  To: ptxdist; +Cc: m.olbrich, Markus Niebel

From: Markus Niebel <Markus.Niebel@tq-group.com>

This is needed to build kernels newer than 3.10.
Select new host-bc rule for kernel target to
make sure bc is there before compiling kernel

Signed-off-by: Markus Niebel <Markus.Niebel@tq-group.com>
---
 platforms/kernel.in | 1 +
 1 file changed, 1 insertion(+)

diff --git a/platforms/kernel.in b/platforms/kernel.in
index fd1c492..8b16739 100644
--- a/platforms/kernel.in
+++ b/platforms/kernel.in
@@ -8,6 +8,7 @@ menuconfig KERNEL
 	select HOST_XZ			if KERNEL_XZ
 	select HOST_LZOP		if KERNEL_LZOP
 	select HOST_LIBKMOD		if KERNEL_MODULES
+	select HOST_SYSTEM_BC
 	prompt "Linux kernel                  "
 
 if KERNEL
-- 
1.9.1


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [ptxdist] [PATCH v2 2/2] kernel: depend kernel on having bc installed
  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
  0 siblings, 0 replies; 4+ messages in thread
From: Michael Olbrich @ 2017-03-10  9:41 UTC (permalink / raw)
  To: ptxdist

On Thu, Mar 09, 2017 at 10:00:57AM +0100, Markus Niebel wrote:
> From: Markus Niebel <Markus.Niebel@tq-group.com>
> 
> This is needed to build kernels newer than 3.10.
> Select new host-bc rule for kernel target to
> make sure bc is there before compiling kernel
> 
> Signed-off-by: Markus Niebel <Markus.Niebel@tq-group.com>

Thanks, both applied,

Michael

> ---
>  platforms/kernel.in | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/platforms/kernel.in b/platforms/kernel.in
> index fd1c492..8b16739 100644
> --- a/platforms/kernel.in
> +++ b/platforms/kernel.in
> @@ -8,6 +8,7 @@ menuconfig KERNEL
>  	select HOST_XZ			if KERNEL_XZ
>  	select HOST_LZOP		if KERNEL_LZOP
>  	select HOST_LIBKMOD		if KERNEL_MODULES
> +	select HOST_SYSTEM_BC
>  	prompt "Linux kernel                  "
>  
>  if KERNEL
> -- 
> 1.9.1
> 
> 
> _______________________________________________
> ptxdist mailing list
> ptxdist@pengutronix.de

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-03-10  9:41 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-09  9:00 [ptxdist] [PATCH v2 0/2] fix kernel build dep from bc Markus Niebel
2017-03-09  9:00 ` [ptxdist] [PATCH v2 1/2] host-system-bc: add new host-system package Markus Niebel
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox