Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/2] package: add libftdi support
@ 2011-08-09 17:39 Jean-Christophe PLAGNIOL-VILLARD
  2011-08-09 17:39 ` [Buildroot] [PATCH 2/2] package: add openocd support Jean-Christophe PLAGNIOL-VILLARD
  2011-09-11  9:15 ` [Buildroot] [PATCH 1/2] package: add libftdi support Peter Korsgaard
  0 siblings, 2 replies; 18+ messages in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2011-08-09 17:39 UTC (permalink / raw)
  To: buildroot

needed by openocd

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Cc: Nicolas Ferre <nicolas.ferre@atmel.com>
Cc: Patrice Vilchez <patrice.vilchez@atmel.com>
---
 package/Config.in                                  |    1 +
 package/libftdi/Config.in                          |   18 ++++++++
 .../libftdi/libftdi-0.19-01_pkgconfig_libusb.patch |   47 ++++++++++++++++++++
 package/libftdi/libftdi.mk                         |   23 ++++++++++
 4 files changed, 89 insertions(+), 0 deletions(-)
 create mode 100644 package/libftdi/Config.in
 create mode 100644 package/libftdi/libftdi-0.19-01_pkgconfig_libusb.patch
 create mode 100644 package/libftdi/libftdi.mk

diff --git a/package/Config.in b/package/Config.in
index 7112e05..1747620 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -301,6 +301,7 @@ menu "Hardware handling"
 source "package/libaio/Config.in"
 source "package/libraw1394/Config.in"
 source "package/tslib/Config.in"
+source "package/libftdi/Config.in"
 source "package/libhid/Config.in"
 source "package/libiqrf/Config.in"
 source "package/libusb/Config.in"
diff --git a/package/libftdi/Config.in b/package/libftdi/Config.in
new file mode 100644
index 0000000..6cedc34
--- /dev/null
+++ b/package/libftdi/Config.in
@@ -0,0 +1,18 @@
+config BR2_PACKAGE_LIBFTDI
+	bool "libftdi"
+	select BR2_PACKAGE_LIBUSB
+	select BR2_PACKAGE_LIBUSB_COMPAT
+	help
+	  Userspace access to FTDI USB interface chips
+
+	  http://www.intra2net.com/en/developer/libftdi/index.php
+
+if BR2_PACKAGE_LIBFTDI
+
+config BR2_PACKAGE_LIBTFDI_CPP
+	depends on BR2_INSTALL_LIBSTDCPP
+	bool "C++ Binding"
+	help
+	  C++ Binding
+
+endif # BR2_PACKAGE_LIBFTDI
diff --git a/package/libftdi/libftdi-0.19-01_pkgconfig_libusb.patch b/package/libftdi/libftdi-0.19-01_pkgconfig_libusb.patch
new file mode 100644
index 0000000..389291d
--- /dev/null
+++ b/package/libftdi/libftdi-0.19-01_pkgconfig_libusb.patch
@@ -0,0 +1,47 @@
+---
+ configure.in |   35 +++++++++++------------------------
+ 1 file changed, 11 insertions(+), 24 deletions(-)
+
+--- a/configure.in
++++ b/configure.in
+@@ -8,30 +8,17 @@
+ AM_PROG_LIBTOOL
+ AC_PROG_CXX
+ 
+-dnl check for libusb-config
+-AC_CHECK_TOOL(HAVELIBUSB, libusb-config)
+-
+-if test ! -z "$HAVELIBUSB"; then
+-   LIBUSB_CFLAGS=`$HAVELIBUSB --cflags`
+-   LIBUSB_LIBS=`$HAVELIBUSB --libs`
+-
+-   CFLAGS="$CFLAGS $LIBUSB_CFLAGS"
+-   LIBS="$LIBS $LIBUSB_LIBS"
+-else
+-   AC_MSG_ERROR([*** libusb-config not found. You need a working libusb installation.])
+-fi
+-
+-dnl check for version of libusb
+-AC_MSG_CHECKING([if libusb version is >= 0.1.7])
+-libusb_version_needed="1007"
+-libusb_version=`$HAVELIBUSB --version | sed -e "s/libusb //" | awk 'BEGIN { FS = "."; } { printf "%d", ($''1 * 1000 + $''2) * 1000 + $''3;}'`
++dnl check for libusb
++PKG_CHECK_MODULES(LIBUSB, libusb >= 0.1.11)
++CFLAGS="$CFLAGS $LIBUSB_CFLAGS"
++LIBS="$LIBS $LIBUSB_LIBS"
+ 
+-if test $libusb_version -lt $libusb_version_needed; then
+-   AC_MSG_RESULT(no)
+-   AC_MSG_ERROR([*** libusb is too old ($libusb_version). You need a libusb installation newer or equal to 0.1.7.])
+-else
+-   AC_MSG_RESULT(yes)
+-fi
++dnl Check for recent pkg-config which supports Requires.private
++case `$PKG_CONFIG --version` in
++0.?|0.1[0-7]) PKGCONFIG_REQUIRES="Requires"; ;;
++*) PKGCONFIG_REQUIRES="Requires.private"; ;;
++esac
++AC_SUBST(PKGCONFIG_REQUIRES)
+ 
+ ENABLE_ASYNC_MODE=0
+ AC_ARG_WITH(async-mode,
diff --git a/package/libftdi/libftdi.mk b/package/libftdi/libftdi.mk
new file mode 100644
index 0000000..315fe16
--- /dev/null
+++ b/package/libftdi/libftdi.mk
@@ -0,0 +1,23 @@
+#############################################################
+#
+# libftdi
+#
+#############################################################
+LIBFTDI_VERSION = 0.19
+LIBFTDI_SOURCE = libftdi-$(LIBFTDI_VERSION).tar.gz
+LIBFTDI_SITE = http://www.intra2net.com/en/developer/libftdi/download/
+LIBFTDI_DEPENDENCIES = libusb-compat libusb
+LIBFTDI_INSTALL_STAGING = YES
+
+LIBFTDI_AUTORECONF = YES
+
+LIBFDTI_CONF_OPT = --without-examples
+
+# configure detect it automaticaly so we need to force it
+ifeq ($(BR2_PACKAGE_LIBTFDI_CPP),y)
+LIBFDTI_CONF_OPT += --enable-libftdipp
+else
+LIBFDTI_CONF_OPT += --disable-libftdipp
+endif
+
+$(eval $(call AUTOTARGETS,package,libftdi))
-- 
1.7.5.4

^ permalink raw reply related	[flat|nested] 18+ messages in thread
* [Buildroot] [PATCH 1/2] package: add jimtcl support
@ 2011-04-30 13:42 Jean-Christophe PLAGNIOL-VILLARD
  2011-04-30 13:42 ` [Buildroot] [PATCH 2/2] package: add openocd support Jean-Christophe PLAGNIOL-VILLARD
  0 siblings, 1 reply; 18+ messages in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2011-04-30 13:42 UTC (permalink / raw)
  To: buildroot

you will download it via git
and can specify which repos and/or which commit

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Cc: Nicolas Ferre <nicolas.ferre@atmel.com>
Cc: Patrice Vilchez <patrice.vilchez@atmel.com>
---
 package/Config.in        |    1 +
 package/jimtcl/Config.in |   65 ++++++++++++++++++++++++++++++++++++++++++++++
 package/jimtcl/jimtcl.mk |   30 +++++++++++++++++++++
 3 files changed, 96 insertions(+), 0 deletions(-)
 create mode 100644 package/jimtcl/Config.in
 create mode 100644 package/jimtcl/jimtcl.mk

diff --git a/package/Config.in b/package/Config.in
index 76b2076..cd89892 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -231,6 +231,7 @@ source "package/php/Config.in"
 source "package/python/Config.in"
 source "package/ruby/Config.in"
 source "package/tcl/Config.in"
+source "package/jimtcl/Config.in"
 endmenu
 
 menu "Libraries"
diff --git a/package/jimtcl/Config.in b/package/jimtcl/Config.in
new file mode 100644
index 0000000..7847d19
--- /dev/null
+++ b/package/jimtcl/Config.in
@@ -0,0 +1,65 @@
+menuconfig BR2_PACKAGE_JIMTCL
+	bool "jimtcl"
+	help
+	  Small footprint implementation of Tcl programming language
+
+	  http://jim.berlios.de/
+
+if BR2_PACKAGE_JIMTCL
+
+choice
+	prompt "JIMTCL Version"
+	default BR2_TARGET_JIMTCL_GIT
+	help
+	  Select the specific jimtcl version you want to use
+
+config BR2_TARGET_JIMTCL_GIT
+	bool "Official git"
+
+config BR2_TARGET_JIMTCL_GIT_CUSTOM
+	bool "Custom"
+
+endchoice
+
+if BR2_TARGET_JIMTCL_GIT_CUSTOM
+
+config BR2_TARGET_JIMTCL_CUSTOM_GIT_LOCATION
+	string "URL of custom jimtcl git"
+
+endif
+
+choice
+	prompt "jimtcl Version"
+	default BR2_TARGET_JIMTCL_2011.01
+	help
+	  Select the specific jimtcl version you want to use
+
+config BR2_TARGET_JIMTCL_0_70
+	bool "0.70"
+
+config BR2_TARGET_JIMTCL_0_63
+	bool "0.63"
+
+config BR2_TARGET_JIMTCL_0_51
+	bool "0.51"
+
+config BR2_TARGET_JIMTCL_CUSTOM
+	bool "Custom"
+
+endchoice
+
+config BR2_TARGET_JIMTCL_VERSION
+	string
+	default "0.70"		if BR2_TARGET_JIMTCL_0_70
+	default "0.63"		if BR2_TARGET_JIMTCL_0_63
+	default "0.51"		if BR2_TARGET_JIMTCL_0_51
+	default "custom"	if BR2_TARGET_JIMTCL_VERSION_CUSTOM
+
+if BR2_TARGET_JIMTCL_VERSION_CUSTOM
+
+config BR2_TARGET_JIMTCL_CUSTOM_COMMIT
+	string "URL of custom jimtcl commit"
+
+endif
+
+endif
diff --git a/package/jimtcl/jimtcl.mk b/package/jimtcl/jimtcl.mk
new file mode 100644
index 0000000..d4f4c52
--- /dev/null
+++ b/package/jimtcl/jimtcl.mk
@@ -0,0 +1,30 @@
+#############################################################
+#
+# jimtcl
+#
+#############################################################
+JIMTCL_VERSION:=$(call qstrip,$(BR2_TARGET_JIMTCL_VERSION))
+JIMTCL_SITE_METHOD:=git
+DL_TOOLS_DEPENDENCIES += git
+
+ifneq ($(BR2_TARGET_JIMTCL_CUSTOM_GIT_LOCATION),)
+JIMTCL_SITE:=$(call qstrip,$(BR2_TARGET_JIMTCL_CUSTOM_GIT_LOCATION))
+else
+JIMTCL_SITE:=http://repo.or.cz/r/jimtcl.git
+endif
+
+ifeq ($(JIMTCL_VERSION),custom)
+JIMTCL_VERSION=$(call qstrip,$(BR2_TARGET_JIMTCL_CUSTOM_COMMIT))
+endif
+
+# Force it as the version can be a name such as HEAD
+JIMTCL_DL_VERSION=$(OPENOCD_VERSION)
+
+JIMTCL_INSTALL_STAGING = YES
+JIMTCL_INSTALL_TARGET = NO
+
+OPENOCD_AUTORECONF = YES
+
+JIMTCL_INSTALL_STAGING_OPT= DESTDIR=$(STAGING_DIR)/usr install
+
+$(eval $(call AUTOTARGETS,package,jimtcl))
-- 
1.7.4.1

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

end of thread, other threads:[~2011-09-21 20:59 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-09 17:39 [Buildroot] [PATCH 1/2] package: add libftdi support Jean-Christophe PLAGNIOL-VILLARD
2011-08-09 17:39 ` [Buildroot] [PATCH 2/2] package: add openocd support Jean-Christophe PLAGNIOL-VILLARD
2011-08-15 13:54   ` Jean-Christophe PLAGNIOL-VILLARD
2011-08-17 10:57   ` Thomas Petazzoni
2011-08-17 17:32     ` Jean-Christophe PLAGNIOL-VILLARD
2011-09-11  9:17   ` Peter Korsgaard
2011-09-17 19:37     ` Jean-Christophe PLAGNIOL-VILLARD
2011-09-17 19:52   ` [Buildroot] [PATCH 2/2 v2] " Jean-Christophe PLAGNIOL-VILLARD
2011-09-18  9:31     ` Peter Korsgaard
2011-09-18 10:22       ` Jean-Christophe PLAGNIOL-VILLARD
2011-09-18 11:05         ` Peter Korsgaard
2011-09-20 11:18           ` Jean-Christophe PLAGNIOL-VILLARD
2011-09-20 11:19     ` [Buildroot] [PATCH 2/2 v3] " Jean-Christophe PLAGNIOL-VILLARD
2011-09-21 20:59       ` Peter Korsgaard
2011-09-11  9:15 ` [Buildroot] [PATCH 1/2] package: add libftdi support Peter Korsgaard
  -- strict thread matches above, loose matches on Subject: below --
2011-04-30 13:42 [Buildroot] [PATCH 1/2] package: add jimtcl support Jean-Christophe PLAGNIOL-VILLARD
2011-04-30 13:42 ` [Buildroot] [PATCH 2/2] package: add openocd support Jean-Christophe PLAGNIOL-VILLARD
2011-05-01 16:20   ` Peter Korsgaard
2011-05-01 16:45     ` Jean-Christophe PLAGNIOL-VILLARD

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