* [Buildroot] [PATCH 1/2] libphidget: new package for controlling Phidgets USB devices
@ 2014-08-26 20:28 Jonathan Ben-Avraham
2014-08-26 20:28 ` [Buildroot] [PATCH 2/2] phidgetwebservice: new package Jonathan Ben-Avraham
2014-08-26 20:38 ` [Buildroot] [PATCH 1/2] libphidget: new package for controlling Phidgets USB devices Baruch Siach
0 siblings, 2 replies; 5+ messages in thread
From: Jonathan Ben-Avraham @ 2014-08-26 20:28 UTC (permalink / raw)
To: buildroot
Signed-off-by: Jonathan Ben-Avraham <yba@tkos.co.il>
---
package/Config.in | 1 +
package/libphidget/Config.in | 25 +++++++++++++++++++++++++
package/libphidget/libphidget.mk | 18 ++++++++++++++++++
3 files changed, 44 insertions(+)
create mode 100644 package/libphidget/Config.in
create mode 100644 package/libphidget/libphidget.mk
diff --git a/package/Config.in b/package/Config.in
index 4520ba6..1088f5a 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -676,6 +676,7 @@ menu "Hardware handling"
source "package/libsoc/Config.in"
source "package/libusb/Config.in"
source "package/libusb-compat/Config.in"
+ source "package/libphidget/Config.in"
source "package/libv4l/Config.in"
source "package/libxkbcommon/Config.in"
source "package/mtdev/Config.in"
diff --git a/package/libphidget/Config.in b/package/libphidget/Config.in
new file mode 100644
index 0000000..dcd6854
--- /dev/null
+++ b/package/libphidget/Config.in
@@ -0,0 +1,25 @@
+config BR2_PACKAGE_LIBPHIDGET
+ bool "libphidget"
+ depends on BR2_TOOLCHAIN_HAS_THREADS # libusb
+ select BR2_PACKAGE_LIBUSB
+ help
+ The libphidget library provides an API for controlling Phidgets
+ USB devices. The library translates API function calls to libusb
+ function calls to control attached Phidgets devices that provide
+ GPIO's, DAC's, accelerometers, servo motors, and other capabilities
+ either singly or on combo devices.
+
+ To use libphidget for controlling locally attached devices you
+ need to set up the userspace USB device tree /dev/bus/usb. See
+ file udev/99-phidgets.rules.
+
+ The libphidget library also contains an API for sending commands
+ to a local or remote phidgetwebservice using HTTP. The
+ phidgetwebservice then translates HTTP requests to libphidget API
+ function calls to control locally attached Phidgets devices.
+
+ http://phidgets.com/
+
+comment "libphidget needs a toolchain w/ threads"
+ depends on !BR2_TOOLCHAIN_HAS_THREADS
+
diff --git a/package/libphidget/libphidget.mk b/package/libphidget/libphidget.mk
new file mode 100644
index 0000000..55547d5
--- /dev/null
+++ b/package/libphidget/libphidget.mk
@@ -0,0 +1,18 @@
+################################################################################
+#
+# libphidget
+#
+################################################################################
+
+LIBPHIDGET_VERSION = 2.1.8.20140319
+LIBPHIDGET_SOURCE = libphidget_$(LIBPHIDGET_VERSION).tar.gz
+LIBPHIDGET_SITE = http://www.phidgets.com/downloads/libraries/
+LIBPHIDGET_DEPENDENCIES = libusb
+LIBPHIDGET_CONF_OPT = --disable-ldconfig
+LIBPHIDGET_INSTALL_STAGING = YES
+LIBPHIDGET_INSTALL_STAGING_OPT = DESTDIR=$(STAGING_DIR) install
+LIBPHIDGET_INSTALL_TARGET_OPT = DESTDIR=$(TARGET_DIR) install
+LIBPHIDGET_LICENSE = LGPLv3
+LIBPHIDGET_LICENSE_FILES = COPYING
+
+$(eval $(autotools-package))
--
1.7.10.4
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [Buildroot] [PATCH 2/2] phidgetwebservice: new package
2014-08-26 20:28 [Buildroot] [PATCH 1/2] libphidget: new package for controlling Phidgets USB devices Jonathan Ben-Avraham
@ 2014-08-26 20:28 ` Jonathan Ben-Avraham
2014-08-26 20:47 ` Baruch Siach
2014-08-26 20:38 ` [Buildroot] [PATCH 1/2] libphidget: new package for controlling Phidgets USB devices Baruch Siach
1 sibling, 1 reply; 5+ messages in thread
From: Jonathan Ben-Avraham @ 2014-08-26 20:28 UTC (permalink / raw)
To: buildroot
Signed-off-by: Jonathan Ben-Avraham <yba@tkos.co.il>
---
package/Config.in | 1 +
package/phidgetwebservice/Config.in | 15 +++++++++++++++
package/phidgetwebservice/phidgetwebservice.mk | 14 ++++++++++++++
3 files changed, 30 insertions(+)
create mode 100644 package/phidgetwebservice/Config.in
create mode 100644 package/phidgetwebservice/phidgetwebservice.mk
diff --git a/package/Config.in b/package/Config.in
index 1088f5a..f86207c 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -677,6 +677,7 @@ menu "Hardware handling"
source "package/libusb/Config.in"
source "package/libusb-compat/Config.in"
source "package/libphidget/Config.in"
+ source "package/phidgetwebservice/Config.in"
source "package/libv4l/Config.in"
source "package/libxkbcommon/Config.in"
source "package/mtdev/Config.in"
diff --git a/package/phidgetwebservice/Config.in b/package/phidgetwebservice/Config.in
new file mode 100644
index 0000000..01e7b11
--- /dev/null
+++ b/package/phidgetwebservice/Config.in
@@ -0,0 +1,15 @@
+config BR2_PACKAGE_PHIDGETWEBSERVICE
+ bool "phidgetwebservice"
+ depends on BR2_PACKAGE_LIBPHIDGET
+ help
+ phidgetwebservice (the Phidget WebService) provides an HTTP
+ front-end to the libphidget device control API. This provides
+ an alternative to the libphidget C linkage interface for
+ controlling locally attached Phidgets USB devices and it also
+ allows you to control Phidget USB devices remotely when the host
+ running the phidgetwebservice has an exposed network interface.
+
+ The phidgetwebservice client program uses the libphidget HTTP
+ functions to send commands to the phidgetwebservice.
+
+ http://phidgets.com/
diff --git a/package/phidgetwebservice/phidgetwebservice.mk b/package/phidgetwebservice/phidgetwebservice.mk
new file mode 100644
index 0000000..64dfca4
--- /dev/null
+++ b/package/phidgetwebservice/phidgetwebservice.mk
@@ -0,0 +1,14 @@
+################################################################################
+#
+# phidgetwebservice
+#
+################################################################################
+
+PHIDGETWEBSERVICE_VERSION = 2.1.8.20140319
+PHIDGETWEBSERVICE_SOURCE = phidgetwebservice_$(PHIDGETWEBSERVICE_VERSION).tar.gz
+PHIDGETWEBSERVICE_SITE = http://www.phidgets.com/downloads/libraries/
+PHIDGETWEBSERVICE_DEPENDENCIES = libphidget
+PHIDGETWEBSERVICE_LICENSE = LGPLv3
+PHIDGETWEBSERVICE_LICENSE_FILES = COPYING
+
+$(eval $(autotools-package))
--
1.7.10.4
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [Buildroot] [PATCH 1/2] libphidget: new package for controlling Phidgets USB devices
2014-08-26 20:28 [Buildroot] [PATCH 1/2] libphidget: new package for controlling Phidgets USB devices Jonathan Ben-Avraham
2014-08-26 20:28 ` [Buildroot] [PATCH 2/2] phidgetwebservice: new package Jonathan Ben-Avraham
@ 2014-08-26 20:38 ` Baruch Siach
1 sibling, 0 replies; 5+ messages in thread
From: Baruch Siach @ 2014-08-26 20:38 UTC (permalink / raw)
To: buildroot
Hi Yonatan,
On Tue, Aug 26, 2014 at 11:28:06PM +0300, Jonathan Ben-Avraham wrote:
>
> Signed-off-by: Jonathan Ben-Avraham <yba@tkos.co.il>
> ---
[snip]
> diff --git a/package/libphidget/libphidget.mk
> b/package/libphidget/libphidget.mk
> new file mode 100644
> index 0000000..55547d5
> --- /dev/null
> +++ b/package/libphidget/libphidget.mk
> @@ -0,0 +1,18 @@
> +################################################################################
> +#
> +# libphidget
> +#
> +################################################################################
> +
> +LIBPHIDGET_VERSION = 2.1.8.20140319
> +LIBPHIDGET_SOURCE = libphidget_$(LIBPHIDGET_VERSION).tar.gz
> +LIBPHIDGET_SITE = http://www.phidgets.com/downloads/libraries/
> +LIBPHIDGET_DEPENDENCIES = libusb
> +LIBPHIDGET_CONF_OPT = --disable-ldconfig
> +LIBPHIDGET_INSTALL_STAGING = YES
> +LIBPHIDGET_INSTALL_STAGING_OPT = DESTDIR=$(STAGING_DIR) install
> +LIBPHIDGET_INSTALL_TARGET_OPT = DESTDIR=$(TARGET_DIR) install
These two are the default.
baruch
> +LIBPHIDGET_LICENSE = LGPLv3
> +LIBPHIDGET_LICENSE_FILES = COPYING
> +
> +$(eval $(autotools-package))
--
http://baruch.siach.name/blog/ ~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] [PATCH 2/2] phidgetwebservice: new package
2014-08-26 20:28 ` [Buildroot] [PATCH 2/2] phidgetwebservice: new package Jonathan Ben-Avraham
@ 2014-08-26 20:47 ` Baruch Siach
2014-08-27 12:32 ` Jonathan Ben Avraham
0 siblings, 1 reply; 5+ messages in thread
From: Baruch Siach @ 2014-08-26 20:47 UTC (permalink / raw)
To: buildroot
Hi Yonatan,
On Tue, Aug 26, 2014 at 11:28:07PM +0300, Jonathan Ben-Avraham wrote:
>
> Signed-off-by: Jonathan Ben-Avraham <yba@tkos.co.il>
> ---
[snip]
> diff --git a/package/phidgetwebservice/Config.in b/package/phidgetwebservice/Config.in
> new file mode 100644
> index 0000000..01e7b11
> --- /dev/null
> +++ b/package/phidgetwebservice/Config.in
> @@ -0,0 +1,15 @@
> +config BR2_PACKAGE_PHIDGETWEBSERVICE
> + bool "phidgetwebservice"
> + depends on BR2_PACKAGE_LIBPHIDGET
For non obvious dependencies the general rule is that you 'select' that
dependency. See http://buildroot.net/downloads/manual/manual.html under
"Choosing depends on or select". Note that you must also copy here the
dependencies of selected packages, in this case threads support.
> + help
> + phidgetwebservice (the Phidget WebService) provides an HTTP
This line should be indented like the rest, tab + two spaces.
> + front-end to the libphidget device control API. This provides
> + an alternative to the libphidget C linkage interface for
> + controlling locally attached Phidgets USB devices and it also
> + allows you to control Phidget USB devices remotely when the host
> + running the phidgetwebservice has an exposed network interface.
> +
> + The phidgetwebservice client program uses the libphidget HTTP
> + functions to send commands to the phidgetwebservice.
> +
> + http://phidgets.com/
baruch
--
http://baruch.siach.name/blog/ ~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] [PATCH 2/2] phidgetwebservice: new package
2014-08-26 20:47 ` Baruch Siach
@ 2014-08-27 12:32 ` Jonathan Ben Avraham
0 siblings, 0 replies; 5+ messages in thread
From: Jonathan Ben Avraham @ 2014-08-27 12:32 UTC (permalink / raw)
To: buildroot
Hi Baruch,
Thanks for the help. I believe that I fixed these issues in v2 of the
patch that I submitted an hour ago.
- yba
On Tue, 26 Aug 2014, Baruch Siach wrote:
> Date: Tue, 26 Aug 2014 23:47:22 +0300
> From: Baruch Siach <baruch@tkos.co.il>
> To: Jonathan Ben-Avraham <yba@tkos.co.il>
> Cc: buildroot at busybox.net
> Subject: Re: [Buildroot] [PATCH 2/2] phidgetwebservice: new package
>
> Hi Yonatan,
>
> On Tue, Aug 26, 2014 at 11:28:07PM +0300, Jonathan Ben-Avraham wrote:
>>
>> Signed-off-by: Jonathan Ben-Avraham <yba@tkos.co.il>
>> ---
>
> [snip]
>
>> diff --git a/package/phidgetwebservice/Config.in b/package/phidgetwebservice/Config.in
>> new file mode 100644
>> index 0000000..01e7b11
>> --- /dev/null
>> +++ b/package/phidgetwebservice/Config.in
>> @@ -0,0 +1,15 @@
>> +config BR2_PACKAGE_PHIDGETWEBSERVICE
>> + bool "phidgetwebservice"
>> + depends on BR2_PACKAGE_LIBPHIDGET
>
> For non obvious dependencies the general rule is that you 'select' that
> dependency. See http://buildroot.net/downloads/manual/manual.html under
> "Choosing depends on or select". Note that you must also copy here the
> dependencies of selected packages, in this case threads support.
>
>> + help
>> + phidgetwebservice (the Phidget WebService) provides an HTTP
>
> This line should be indented like the rest, tab + two spaces.
>
>> + front-end to the libphidget device control API. This provides
>> + an alternative to the libphidget C linkage interface for
>> + controlling locally attached Phidgets USB devices and it also
>> + allows you to control Phidget USB devices remotely when the host
>> + running the phidgetwebservice has an exposed network interface.
>> +
>> + The phidgetwebservice client program uses the libphidget HTTP
>> + functions to send commands to the phidgetwebservice.
>> +
>> + http://phidgets.com/
>
> baruch
>
>
--
9590 8E58 D30D 1660 C349 673D B205 4FC4 B8F5 B7F9 ~. .~ Tk Open Systems
=}-------- Jonathan Ben-Avraham ("yba") ----------ooO--U--Ooo------------{=
mailto:yba at tkos.co.il tel:+972.52.486.3386 http://tkos.co.il skype:benavrhm
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2014-08-27 12:32 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-26 20:28 [Buildroot] [PATCH 1/2] libphidget: new package for controlling Phidgets USB devices Jonathan Ben-Avraham
2014-08-26 20:28 ` [Buildroot] [PATCH 2/2] phidgetwebservice: new package Jonathan Ben-Avraham
2014-08-26 20:47 ` Baruch Siach
2014-08-27 12:32 ` Jonathan Ben Avraham
2014-08-26 20:38 ` [Buildroot] [PATCH 1/2] libphidget: new package for controlling Phidgets USB devices Baruch Siach
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox