* [Buildroot] [PATCH] libqmi: new package
@ 2013-06-18 10:22 Patrick Ziegler
2013-06-18 12:06 ` Thomas Petazzoni
0 siblings, 1 reply; 3+ messages in thread
From: Patrick Ziegler @ 2013-06-18 10:22 UTC (permalink / raw)
To: buildroot
libqmi is a glib-based library for talking to WWAN modems and devices which
speak the Qualcomm MSM Interface (QMI) protocol.
Signed-off-by: Patrick Ziegler <patrick.ziegler@fh-kl.de>
---
package/Config.in | 1 +
package/libqmi/Config.in | 6 ++++++
package/libqmi/libqmi.mk | 24 ++++++++++++++++++++++++
3 files changed, 31 insertions(+)
create mode 100644 package/libqmi/Config.in
create mode 100644 package/libqmi/libqmi.mk
diff --git a/package/Config.in b/package/Config.in
index 5b066dc..426004b 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -484,6 +484,7 @@ source "package/libhid/Config.in"
source "package/libiqrf/Config.in"
source "package/libnfc/Config.in"
source "package/libnfc-llcp/Config.in"
+source "package/libqmi/Config.in"
source "package/libserial/Config.in"
source "package/libusb/Config.in"
source "package/libusb-compat/Config.in"
diff --git a/package/libqmi/Config.in b/package/libqmi/Config.in
new file mode 100644
index 0000000..d15025d
--- /dev/null
+++ b/package/libqmi/Config.in
@@ -0,0 +1,6 @@
+config BR2_PACKAGE_LIBQMI
+ bool "libqmi"
+ select BR2_PACKAGE_LIBGLIB2
+ help
+ libqmi is a glib-based library for talking to WWAN modems and devices
+ which speak the Qualcomm MSM Interface (QMI) protocol.
diff --git a/package/libqmi/libqmi.mk b/package/libqmi/libqmi.mk
new file mode 100644
index 0000000..b343eba
--- /dev/null
+++ b/package/libqmi/libqmi.mk
@@ -0,0 +1,24 @@
+################################################################################
+#
+# libqmi
+#
+################################################################################
+
+LIBQMI_VERSION = 1.4.0
+LIBQMI_SITE = http://cgit.freedesktop.org/libqmi/snapshot/
+LIBQMI_SOURCE = libqmi-$(LIBQMI_VERSION).tar.gz
+LIBQMI_LICENSE = LGPLv2+ (library), GPLv2+ (programs)
+LIBQMI_LICENSE_FILES = COPYING
+LIBQMI_INSTALL_STAGING = YES
+LIBQMI_AUTORECONF = YES
+
+LIBQMI_DEPENDENCIES += libglib2
+
+define LIBQMI_CREATE_GTK_DOC_MAKE
+ $(RM) $(@D)/gtk-doc.make
+ echo -e "EXTRA_DIST =\nCLEANFILES =" > $(@D)/gtk-doc.make
+endef
+
+LIBQMI_POST_PATCH_HOOKS += LIBQMI_CREATE_GTK_DOC_MAKE
+
+$(eval $(autotools-package))
--
1.8.1.2
--
Dipl.-Inf. (FH) Patrick Ziegler
University Of Applied Sciences
Kaiserslautern
Amerikastrasse 1
D-66482 Zweibruecken
Germany
Phone: +49 631 3724 5526
Mail: patrick.ziegler at fh-kl.de
PGP KeyID 0xB4796B8C
http://www.fh-kl.de
http://www.fh-kl.de/fachbereiche/imst/iuk-knowhow.html
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH] libqmi: new package
2013-06-18 10:22 [Buildroot] [PATCH] libqmi: new package Patrick Ziegler
@ 2013-06-18 12:06 ` Thomas Petazzoni
2013-06-18 14:27 ` Patrick Ziegler
0 siblings, 1 reply; 3+ messages in thread
From: Thomas Petazzoni @ 2013-06-18 12:06 UTC (permalink / raw)
To: buildroot
Dear Patrick Ziegler,
On Tue, 18 Jun 2013 12:22:51 +0200, Patrick Ziegler wrote:
> +config BR2_PACKAGE_LIBQMI
> + bool "libqmi"
> + select BR2_PACKAGE_LIBGLIB2
You need to propagate the "depends on" that libglib2 has, i.e WCHAR.
> + help
> + libqmi is a glib-based library for talking to WWAN modems and devices
> + which speak the Qualcomm MSM Interface (QMI) protocol.
Upstream URL missing.
> +LIBQMI_VERSION = 1.4.0
> +LIBQMI_SITE = http://cgit.freedesktop.org/libqmi/snapshot/
> +LIBQMI_SOURCE = libqmi-$(LIBQMI_VERSION).tar.gz
This is the default, so you could remove this line.
> +LIBQMI_LICENSE = LGPLv2+ (library), GPLv2+ (programs)
> +LIBQMI_LICENSE_FILES = COPYING
> +LIBQMI_INSTALL_STAGING = YES
> +LIBQMI_AUTORECONF = YES
It would be good to have a comment that explains why autoreconf is
needed, i.e "The tarball is a Git snapshot, doesn't contain the
genrated configure script and Makefile" or something like this.
> +LIBQMI_DEPENDENCIES += libglib2
You could use a = here.
Best regards,
Thomas
--
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH] libqmi: new package
2013-06-18 12:06 ` Thomas Petazzoni
@ 2013-06-18 14:27 ` Patrick Ziegler
0 siblings, 0 replies; 3+ messages in thread
From: Patrick Ziegler @ 2013-06-18 14:27 UTC (permalink / raw)
To: buildroot
Dear Thomas Petazzoni,
On 18.06.2013 14:06, Thomas Petazzoni wrote:
>
> On Tue, 18 Jun 2013 12:22:51 +0200, Patrick Ziegler wrote:
>
>> +config BR2_PACKAGE_LIBQMI
>> + bool "libqmi"
>> + select BR2_PACKAGE_LIBGLIB2
>
> You need to propagate the "depends on" that libglib2 has, i.e WCHAR.
>
>> + help
>> + libqmi is a glib-based library for talking to WWAN modems and devices
>> + which speak the Qualcomm MSM Interface (QMI) protocol.
>
> Upstream URL missing.
>
>> +LIBQMI_VERSION = 1.4.0
>> +LIBQMI_SITE = http://cgit.freedesktop.org/libqmi/snapshot/
>> +LIBQMI_SOURCE = libqmi-$(LIBQMI_VERSION).tar.gz
>
> This is the default, so you could remove this line.
>
>> +LIBQMI_LICENSE = LGPLv2+ (library), GPLv2+ (programs)
>> +LIBQMI_LICENSE_FILES = COPYING
>> +LIBQMI_INSTALL_STAGING = YES
>> +LIBQMI_AUTORECONF = YES
>
> It would be good to have a comment that explains why autoreconf is
> needed, i.e "The tarball is a Git snapshot, doesn't contain the
> genrated configure script and Makefile" or something like this.
>
>> +LIBQMI_DEPENDENCIES += libglib2
>
> You could use a = here.
>
thanks for having a look on this patch.
While I was searching for the best upstream URL, I've found a better source tarball that doesn't need autoreconf.
I will update my patch and resend.
Best regards
Patrick
--
Dipl.-Inf. (FH) Patrick Ziegler
University Of Applied Sciences
Kaiserslautern
Amerikastrasse 1
D-66482 Zweibruecken
Germany
Phone: +49 631 3724 5526
Mail: patrick.ziegler at fh-kl.de
PGP KeyID 0xB4796B8C
http://www.fh-kl.de
http://www.fh-kl.de/fachbereiche/imst/iuk-knowhow.html
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-06-18 14:27 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-18 10:22 [Buildroot] [PATCH] libqmi: new package Patrick Ziegler
2013-06-18 12:06 ` Thomas Petazzoni
2013-06-18 14:27 ` Patrick Ziegler
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox