* [Buildroot] [PATCH 1/2] pcsc-lite: new package
@ 2012-09-18 12:15 Waldemar Rymarkiewicz
2012-09-18 12:19 ` [Buildroot] [PATCH 2/2] ccid: " Waldemar Rymarkiewicz
` (2 more replies)
0 siblings, 3 replies; 7+ messages in thread
From: Waldemar Rymarkiewicz @ 2012-09-18 12:15 UTC (permalink / raw)
To: buildroot
Middleware to access a smart card using SCard API (PC/SC).
http://pcsclite.alioth.debian.org/
Signed-off-by: Waldemar Rymarkiewicz <waldemar.rymarkiewicz@tieto.com>
---
package/Config.in | 1 +
package/pcsc-lite/Config.in | 6 ++++++
package/pcsc-lite/pcsc-lite.mk | 13 +++++++++++++
3 files changed, 20 insertions(+)
create mode 100644 package/pcsc-lite/Config.in
create mode 100644 package/pcsc-lite/pcsc-lite.mk
diff --git a/package/Config.in b/package/Config.in
index a4e0b2c..dcc84b6 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -395,6 +395,7 @@ source "package/libusb/Config.in"
source "package/libusb-compat/Config.in"
source "package/libv4l/Config.in"
source "package/mtdev/Config.in"
+source "package/pcsc-lite/Config.in"
endmenu
menu "Javascript"
diff --git a/package/pcsc-lite/Config.in b/package/pcsc-lite/Config.in
new file mode 100644
index 0000000..7c26427
--- /dev/null
+++ b/package/pcsc-lite/Config.in
@@ -0,0 +1,6 @@
+config BR2_PACKAGE_PCSC_LITE
+ bool "pcsc-lite"
+ help
+ Middleware to accesss smart card using SCard API (PC/SC).
+
+ http://pcsclite.alioth.debian.org/
diff --git a/package/pcsc-lite/pcsc-lite.mk b/package/pcsc-lite/pcsc-lite.mk
new file mode 100644
index 0000000..eb807f0
--- /dev/null
+++ b/package/pcsc-lite/pcsc-lite.mk
@@ -0,0 +1,13 @@
+##########################################################
+#
+# PCSC-Lite
+#
+# ########################################################
+PCSC_LITE_VERSION = 1.8.6
+PCSC_LITE_SOURCE = pcsc-lite-$(PCSC_LITE_VERSION).tar.bz2
+PCSC_LITE_SITE = https://alioth.debian.org/frs/download.php/3757
+PCSC_LITE_INSTALL_STAGING = YES
+PCSC_LITE_CONF_OPT = --disable-libudev --enable-libusb
+PCSC_LITE_DEPENDENCIES = libusb
+
+$(eval $(call autotools-package))
--
1.7.10
^ permalink raw reply related [flat|nested] 7+ messages in thread* [Buildroot] [PATCH 2/2] ccid: new package
2012-09-18 12:15 [Buildroot] [PATCH 1/2] pcsc-lite: new package Waldemar Rymarkiewicz
@ 2012-09-18 12:19 ` Waldemar Rymarkiewicz
2012-09-18 14:22 ` Thomas Petazzoni
2012-09-18 14:20 ` [Buildroot] [PATCH 1/2] pcsc-lite: " Thomas Petazzoni
2012-09-18 21:18 ` Arnout Vandecappelle
2 siblings, 1 reply; 7+ messages in thread
From: Waldemar Rymarkiewicz @ 2012-09-18 12:19 UTC (permalink / raw)
To: buildroot
PC/SC driver for USB CCID smart card readers.
http://pcsclite.alioth.debian.org/ccid.html
Signed-off-by: Waldemar Rymarkiewicz <waldemar.rymarkiewicz@tieto.com>
---
package/Config.in | 1 +
package/ccid/Config.in | 7 +++++++
package/ccid/ccid.mk | 12 ++++++++++++
3 files changed, 20 insertions(+)
create mode 100644 package/ccid/Config.in
create mode 100644 package/ccid/ccid.mk
diff --git a/package/Config.in b/package/Config.in
index dcc84b6..a0fb593 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -382,6 +382,7 @@ source "package/zxing/Config.in"
endmenu
menu "Hardware handling"
+source "package/ccid/Config.in"
source "package/libaio/Config.in"
source "package/libraw1394/Config.in"
source "package/tslib/Config.in"
diff --git a/package/ccid/Config.in b/package/ccid/Config.in
new file mode 100644
index 0000000..b9bf0b2
--- /dev/null
+++ b/package/ccid/Config.in
@@ -0,0 +1,7 @@
+config BR2_PACKAGE_CCID
+ bool "ccid"
+ select BR2_PACKAGE_PCSC_LITE
+ help
+ PC/SC driver for USB CCID smart card readers
+
+ http://pcsclite.alioth.debian.org/ccid.html
diff --git a/package/ccid/ccid.mk b/package/ccid/ccid.mk
new file mode 100644
index 0000000..a79f5ca
--- /dev/null
+++ b/package/ccid/ccid.mk
@@ -0,0 +1,12 @@
+##########################################################
+#
+# CCID
+#
+# ########################################################
+CCID_VERSION = 1.4.7
+CCID_SOURCE = ccid-$(CCID_VERSION).tar.bz2
+CCID_SITE = https://alioth.debian.org/frs/download.php/3730
+CCID_INSTALL_STAGING = YES
+CCID_DEPENDENCIES = pcsc-lite libusb
+
+$(eval $(call autotools-package))
--
1.7.10
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [Buildroot] [PATCH 2/2] ccid: new package
2012-09-18 12:19 ` [Buildroot] [PATCH 2/2] ccid: " Waldemar Rymarkiewicz
@ 2012-09-18 14:22 ` Thomas Petazzoni
2012-09-19 7:49 ` Waldemar.Rymarkiewicz at tieto.com
0 siblings, 1 reply; 7+ messages in thread
From: Thomas Petazzoni @ 2012-09-18 14:22 UTC (permalink / raw)
To: buildroot
Dear Waldemar Rymarkiewicz,
On Tue, 18 Sep 2012 14:19:32 +0200, Waldemar Rymarkiewicz wrote:
> --- /dev/null
> +++ b/package/ccid/Config.in
> @@ -0,0 +1,7 @@
> +config BR2_PACKAGE_CCID
> + bool "ccid"
> + select BR2_PACKAGE_PCSC_LITE
depends on BR2_TOOLCHAIN_HAS_THREADS # libusb
> + help
> + PC/SC driver for USB CCID smart card readers
> +
> + http://pcsclite.alioth.debian.org/ccid.html
comment "ccid needs a toolchain with thread support"
depends on !BR2_TOOLCHAIN_HAS_THREADS
> +CCID_DEPENDENCIES = pcsc-lite libusb
Does ccid directly uses libusb, or does it only use it through
pcsc-lite? If the latter, then it would be better not to have libusb
amongst the dependencies 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] 7+ messages in thread
* [Buildroot] [PATCH 1/2] pcsc-lite: new package
2012-09-18 12:15 [Buildroot] [PATCH 1/2] pcsc-lite: new package Waldemar Rymarkiewicz
2012-09-18 12:19 ` [Buildroot] [PATCH 2/2] ccid: " Waldemar Rymarkiewicz
@ 2012-09-18 14:20 ` Thomas Petazzoni
2012-09-18 21:18 ` Arnout Vandecappelle
2 siblings, 0 replies; 7+ messages in thread
From: Thomas Petazzoni @ 2012-09-18 14:20 UTC (permalink / raw)
To: buildroot
Dear Waldemar Rymarkiewicz,
On Tue, 18 Sep 2012 14:15:37 +0200, Waldemar Rymarkiewicz wrote:
> Middleware to access a smart card using SCard API (PC/SC).
>
> http://pcsclite.alioth.debian.org/
>
> Signed-off-by: Waldemar Rymarkiewicz <waldemar.rymarkiewicz@tieto.com>
> ---
> package/Config.in | 1 +
> package/pcsc-lite/Config.in | 6 ++++++
> package/pcsc-lite/pcsc-lite.mk | 13 +++++++++++++
> 3 files changed, 20 insertions(+)
> create mode 100644 package/pcsc-lite/Config.in
> create mode 100644 package/pcsc-lite/pcsc-lite.mk
>
> diff --git a/package/Config.in b/package/Config.in
> index a4e0b2c..dcc84b6 100644
> --- a/package/Config.in
> +++ b/package/Config.in
> @@ -395,6 +395,7 @@ source "package/libusb/Config.in"
> source "package/libusb-compat/Config.in"
> source "package/libv4l/Config.in"
> source "package/mtdev/Config.in"
> +source "package/pcsc-lite/Config.in"
> endmenu
>
> menu "Javascript"
> diff --git a/package/pcsc-lite/Config.in b/package/pcsc-lite/Config.in
> new file mode 100644
> index 0000000..7c26427
> --- /dev/null
> +++ b/package/pcsc-lite/Config.in
> @@ -0,0 +1,6 @@
> +config BR2_PACKAGE_PCSC_LITE
> + bool "pcsc-lite"
Since you depend on libusb, you must add:
select BR2_PACKAGE_LIBUSB
depends on BR2_TOOLCHAIN_HAS_THREADS # libusb
> + help
> + Middleware to accesss smart card using SCard API (PC/SC).
> +
> + http://pcsclite.alioth.debian.org/
And here:
comment "pcsc-lite needs a toolchain with thread support"
depends on !BR2_TOOLCHAIN_HAS_THREADS
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] 7+ messages in thread
* [Buildroot] [PATCH 1/2] pcsc-lite: new package
2012-09-18 12:15 [Buildroot] [PATCH 1/2] pcsc-lite: new package Waldemar Rymarkiewicz
2012-09-18 12:19 ` [Buildroot] [PATCH 2/2] ccid: " Waldemar Rymarkiewicz
2012-09-18 14:20 ` [Buildroot] [PATCH 1/2] pcsc-lite: " Thomas Petazzoni
@ 2012-09-18 21:18 ` Arnout Vandecappelle
2012-09-19 12:54 ` Waldemar.Rymarkiewicz at tieto.com
2 siblings, 1 reply; 7+ messages in thread
From: Arnout Vandecappelle @ 2012-09-18 21:18 UTC (permalink / raw)
To: buildroot
On 09/18/12 14:15, Waldemar Rymarkiewicz wrote:
> +PCSC_LITE_CONF_OPT = --disable-libudev --enable-libusb
> +PCSC_LITE_DEPENDENCIES = libusb
IIRC, libusb is really optional for pcsc-lite. You can use a
construct like:
ifeq ($(BR2_PACKAGE_LIBUSB),y)
PCSC_LITE_CONF_OPT += --enable-libusb
PCSC_LITE_DEPENDENCIES += libusb
else
PCSC_LITE_CONF_OPT += --disable-libusb
endif
And maybe similarly for udev.
Your mileage may vary, though. And I think the HAS_THREADS may
still be needed for pcsc-lite itself.
Regards,
Arnout
--
Arnout Vandecappelle arnout at mind be
Senior Embedded Software Architect +32-16-286540
Essensium/Mind http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint: 7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2012-09-19 12:54 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-18 12:15 [Buildroot] [PATCH 1/2] pcsc-lite: new package Waldemar Rymarkiewicz
2012-09-18 12:19 ` [Buildroot] [PATCH 2/2] ccid: " Waldemar Rymarkiewicz
2012-09-18 14:22 ` Thomas Petazzoni
2012-09-19 7:49 ` Waldemar.Rymarkiewicz at tieto.com
2012-09-18 14:20 ` [Buildroot] [PATCH 1/2] pcsc-lite: " Thomas Petazzoni
2012-09-18 21:18 ` Arnout Vandecappelle
2012-09-19 12:54 ` Waldemar.Rymarkiewicz at tieto.com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox