mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH] ofono: new package
@ 2021-06-09 21:53 Roland Hieber
  2021-06-16 10:36 ` [ptxdist] [APPLIED] " Michael Olbrich
  0 siblings, 1 reply; 2+ messages in thread
From: Roland Hieber @ 2021-06-09 21:53 UTC (permalink / raw)
  To: ptxdist; +Cc: Roland Hieber

Signed-off-by: Roland Hieber <rhi@pengutronix.de>
---
 .../usr/lib/udev/rules.d/96-ofono.rules       |  1 +
 rules/ofono.in                                | 31 +++++++
 rules/ofono.make                              | 93 +++++++++++++++++++
 3 files changed, 125 insertions(+)
 create mode 100644 projectroot/usr/lib/udev/rules.d/96-ofono.rules
 create mode 100644 rules/ofono.in
 create mode 100644 rules/ofono.make

diff --git a/projectroot/usr/lib/udev/rules.d/96-ofono.rules b/projectroot/usr/lib/udev/rules.d/96-ofono.rules
new file mode 100644
index 000000000000..8b137891791f
--- /dev/null
+++ b/projectroot/usr/lib/udev/rules.d/96-ofono.rules
@@ -0,0 +1 @@
+
diff --git a/rules/ofono.in b/rules/ofono.in
new file mode 100644
index 000000000000..2b39c26fc1a5
--- /dev/null
+++ b/rules/ofono.in
@@ -0,0 +1,31 @@
+## SECTION=networking
+
+menuconfig OFONO
+	tristate
+	prompt "ofono                         "
+	select GLIB
+	select UDEV
+	select DBUS
+	select BLUEZ		if OFONO_BLUETOOTH
+	select PYTHON3		if OFONO_TESTS
+	help
+	  oFono provides a mobile telephony (GSM/UMTS) application development
+	  framework that includes consistent, minimal, and easy to use complete
+	  APIs. It includes a high-level D-Bus API for use by telephony
+	  applications of any license. oFono also includes a low-level plug-in
+	  API for integrating with open source as well as third party telephony
+	  stacks, cellular modems, and storage back ends.
+
+if OFONO
+
+config OFONO_BLUETOOTH
+	bool
+	prompt "bluetooth support"
+
+config OFONO_TESTS
+	bool
+	prompt "install test programs"
+	help
+	  The test programs will be installed to /usr/lib/ofono/test.
+
+endif
diff --git a/rules/ofono.make b/rules/ofono.make
new file mode 100644
index 000000000000..83b2177b1721
--- /dev/null
+++ b/rules/ofono.make
@@ -0,0 +1,93 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2021 by Roland Hieber, Pengutronix <rhi@pengutronix.de>
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_OFONO) += ofono
+
+#
+# Paths and names
+#
+OFONO_VERSION		:= 1.32
+OFONO_MD5		:= 7496b3b89ab84bfb4ccfc26cda3fdf5e
+OFONO			:= ofono-$(OFONO_VERSION)
+OFONO_SUFFIX		:= tar.xz
+OFONO_URL		:= $(call ptx/mirror, KERNEL, network/ofono/$(OFONO).$(OFONO_SUFFIX))
+OFONO_SOURCE		:= $(SRCDIR)/$(OFONO).$(OFONO_SUFFIX)
+OFONO_DIR		:= $(BUILDDIR)/$(OFONO)
+OFONO_LICENSE		:= GPL-2.0-only AND GPL-2.0-or-later AND LGPL-2.1-or-later
+OFONO_LICENSE_FILES	:= \
+	file://COPYING;md5=eb723b61539feef013de476e68b5c50a \
+	file://src/main.c;startline=7;endline=18;md5=cd0127f490f549377abc525c09d2673a \
+	file://btio/btio.c;startline=9;endline=21;md5=eecbd02555c55f436075d7cca5c93d29 \
+	file://gdbus/mainloop.c;startline=8;endline=20;md5=eecbd02555c55f436075d7cca5c93d29 \
+	file://ell/main.c;startline=7;endline=19;md5=165042f5afe0b75cb88eebd3658d7927 \
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+#
+# autoconf
+#
+OFONO_CONF_TOOL	:= autoconf
+OFONO_CONF_OPT	:= \
+	$(CROSS_AUTOCONF_USR) \
+	--enable-optimization \
+	--disable-debug \
+	--disable-pie \
+	--$(call ptx/endis, PTXCONF_OFONO_TESTS)-test \
+	--disable-tools \
+	--disable-dundee \
+	--enable-udev \
+	--enable-atmodem \
+	--enable-cdmamodem \
+	--enable-phonesim \
+	--enable-isimodem \
+	--enable-rilmodem \
+	--enable-qmimodem \
+	--enable-mbimmodem \
+	--$(call ptx/endis, PTXCONF_OFONO_BLUETOOTH)-bluetooth \
+	--disable-bluez4 \
+	--disable-provision \
+	--disable-upower \
+	--disable-external-ell \
+	--enable-datafiles
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/ofono.targetinstall:
+	@$(call targetinfo)
+
+	@$(call install_init, ofono)
+	@$(call install_fixup, ofono,PRIORITY,optional)
+	@$(call install_fixup, ofono,SECTION,base)
+	@$(call install_fixup, ofono,AUTHOR,"Roland Hieber, Pengutronix <rhi@pengutronix.de>")
+	@$(call install_fixup, ofono,DESCRIPTION,missing)
+
+	@$(call install_copy, ofono, 0, 0, 0755, -, /usr/sbin/ofonod)
+
+	@$(call install_alternative, ofono, 0, 0, 0644, /etc/dbus-1/system.d/ofono.conf)
+	@$(call install_alternative, ofono, 0, 0, 0644, /etc/ofono/phonesim.conf)
+	@$(call install_alternative, ofono, 0, 0, 0644, /usr/lib/udev/rules.d/96-ofono.rules)
+
+ifdef PTXCONF_INITMETHOD_SYSTEMD
+	@$(call install_alternative, ofono, 0, 0, 0644, /usr/lib/systemd/system/ofono.service)
+endif
+
+ifdef PTXCONF_OFONO_TESTS
+	@$(call install_tree, ofono, 0, 0, -, /usr/lib/ofono/test)
+endif
+	@$(call install_finish, ofono)
+
+	@$(call touch)
+
+# vim: syntax=make
-- 
2.29.2


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de


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

* Re: [ptxdist] [APPLIED] ofono: new package
  2021-06-09 21:53 [ptxdist] [PATCH] ofono: new package Roland Hieber
@ 2021-06-16 10:36 ` Michael Olbrich
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Olbrich @ 2021-06-16 10:36 UTC (permalink / raw)
  To: ptxdist; +Cc: Roland Hieber

Thanks, applied as 83c3ed2bc6e739dc9720de700c32242943be8a6f.

Michael

[sent from post-receive hook]

On Wed, 16 Jun 2021 12:36:00 +0200, Roland Hieber <rhi@pengutronix.de> wrote:
> Signed-off-by: Roland Hieber <rhi@pengutronix.de>
> Message-Id: <20210609215336.22744-1-rhi@pengutronix.de>
> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
> 
> diff --git a/projectroot/usr/lib/udev/rules.d/96-ofono.rules b/projectroot/usr/lib/udev/rules.d/96-ofono.rules
> new file mode 100644
> index 000000000000..8b137891791f
> --- /dev/null
> +++ b/projectroot/usr/lib/udev/rules.d/96-ofono.rules
> @@ -0,0 +1 @@
> +
> diff --git a/rules/ofono.in b/rules/ofono.in
> new file mode 100644
> index 000000000000..2b39c26fc1a5
> --- /dev/null
> +++ b/rules/ofono.in
> @@ -0,0 +1,31 @@
> +## SECTION=networking
> +
> +menuconfig OFONO
> +	tristate
> +	prompt "ofono                         "
> +	select GLIB
> +	select UDEV
> +	select DBUS
> +	select BLUEZ		if OFONO_BLUETOOTH
> +	select PYTHON3		if OFONO_TESTS
> +	help
> +	  oFono provides a mobile telephony (GSM/UMTS) application development
> +	  framework that includes consistent, minimal, and easy to use complete
> +	  APIs. It includes a high-level D-Bus API for use by telephony
> +	  applications of any license. oFono also includes a low-level plug-in
> +	  API for integrating with open source as well as third party telephony
> +	  stacks, cellular modems, and storage back ends.
> +
> +if OFONO
> +
> +config OFONO_BLUETOOTH
> +	bool
> +	prompt "bluetooth support"
> +
> +config OFONO_TESTS
> +	bool
> +	prompt "install test programs"
> +	help
> +	  The test programs will be installed to /usr/lib/ofono/test.
> +
> +endif
> diff --git a/rules/ofono.make b/rules/ofono.make
> new file mode 100644
> index 000000000000..83b2177b1721
> --- /dev/null
> +++ b/rules/ofono.make
> @@ -0,0 +1,93 @@
> +# -*-makefile-*-
> +#
> +# Copyright (C) 2021 by Roland Hieber, Pengutronix <rhi@pengutronix.de>
> +#
> +# For further information about the PTXdist project and license conditions
> +# see the README file.
> +#
> +
> +#
> +# We provide this package
> +#
> +PACKAGES-$(PTXCONF_OFONO) += ofono
> +
> +#
> +# Paths and names
> +#
> +OFONO_VERSION		:= 1.32
> +OFONO_MD5		:= 7496b3b89ab84bfb4ccfc26cda3fdf5e
> +OFONO			:= ofono-$(OFONO_VERSION)
> +OFONO_SUFFIX		:= tar.xz
> +OFONO_URL		:= $(call ptx/mirror, KERNEL, network/ofono/$(OFONO).$(OFONO_SUFFIX))
> +OFONO_SOURCE		:= $(SRCDIR)/$(OFONO).$(OFONO_SUFFIX)
> +OFONO_DIR		:= $(BUILDDIR)/$(OFONO)
> +OFONO_LICENSE		:= GPL-2.0-only AND GPL-2.0-or-later AND LGPL-2.1-or-later
> +OFONO_LICENSE_FILES	:= \
> +	file://COPYING;md5=eb723b61539feef013de476e68b5c50a \
> +	file://src/main.c;startline=7;endline=18;md5=cd0127f490f549377abc525c09d2673a \
> +	file://btio/btio.c;startline=9;endline=21;md5=eecbd02555c55f436075d7cca5c93d29 \
> +	file://gdbus/mainloop.c;startline=8;endline=20;md5=eecbd02555c55f436075d7cca5c93d29 \
> +	file://ell/main.c;startline=7;endline=19;md5=165042f5afe0b75cb88eebd3658d7927 \
> +
> +# ----------------------------------------------------------------------------
> +# Prepare
> +# ----------------------------------------------------------------------------
> +
> +#
> +# autoconf
> +#
> +OFONO_CONF_TOOL	:= autoconf
> +OFONO_CONF_OPT	:= \
> +	$(CROSS_AUTOCONF_USR) \
> +	--enable-optimization \
> +	--disable-debug \
> +	--disable-pie \
> +	--$(call ptx/endis, PTXCONF_OFONO_TESTS)-test \
> +	--disable-tools \
> +	--disable-dundee \
> +	--enable-udev \
> +	--enable-atmodem \
> +	--enable-cdmamodem \
> +	--enable-phonesim \
> +	--enable-isimodem \
> +	--enable-rilmodem \
> +	--enable-qmimodem \
> +	--enable-mbimmodem \
> +	--$(call ptx/endis, PTXCONF_OFONO_BLUETOOTH)-bluetooth \
> +	--disable-bluez4 \
> +	--disable-provision \
> +	--disable-upower \
> +	--disable-external-ell \
> +	--enable-datafiles
> +
> +# ----------------------------------------------------------------------------
> +# Target-Install
> +# ----------------------------------------------------------------------------
> +
> +$(STATEDIR)/ofono.targetinstall:
> +	@$(call targetinfo)
> +
> +	@$(call install_init, ofono)
> +	@$(call install_fixup, ofono,PRIORITY,optional)
> +	@$(call install_fixup, ofono,SECTION,base)
> +	@$(call install_fixup, ofono,AUTHOR,"Roland Hieber, Pengutronix <rhi@pengutronix.de>")
> +	@$(call install_fixup, ofono,DESCRIPTION,missing)
> +
> +	@$(call install_copy, ofono, 0, 0, 0755, -, /usr/sbin/ofonod)
> +
> +	@$(call install_alternative, ofono, 0, 0, 0644, /etc/dbus-1/system.d/ofono.conf)
> +	@$(call install_alternative, ofono, 0, 0, 0644, /etc/ofono/phonesim.conf)
> +	@$(call install_alternative, ofono, 0, 0, 0644, /usr/lib/udev/rules.d/96-ofono.rules)
> +
> +ifdef PTXCONF_INITMETHOD_SYSTEMD
> +	@$(call install_alternative, ofono, 0, 0, 0644, /usr/lib/systemd/system/ofono.service)
> +endif
> +
> +ifdef PTXCONF_OFONO_TESTS
> +	@$(call install_tree, ofono, 0, 0, -, /usr/lib/ofono/test)
> +endif
> +	@$(call install_finish, ofono)
> +
> +	@$(call touch)
> +
> +# vim: syntax=make

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de


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

end of thread, other threads:[~2021-06-16 10:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-09 21:53 [ptxdist] [PATCH] ofono: new package Roland Hieber
2021-06-16 10:36 ` [ptxdist] [APPLIED] " Michael Olbrich

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