Skip to contentSkip to conversation

xc3sprog: new package

PATCH New julien.boibessot at free.fr 2 participants 2 messages Feb 19, 2015 – Mar 19, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xc3sprog: new package

From: Julien Boibessot <[email protected]>

These tools can be useful on Host during development and on target for BR based production testbench for example.
Both usage were tested at Armadeus Systems.

---
 package/Config.in               |    1 +
 package/Config.in.host          |    1 +
 package/xc3sprog/Config.in      |   19 +++++++++++++++++++
 package/xc3sprog/Config.in.host |   12 ++++++++++++
 package/xc3sprog/xc3sprog.mk    |   15 +++++++++++++++
 5 files changed, 48 insertions(+)
 create mode 100644 package/xc3sprog/Config.in
 create mode 100644 package/xc3sprog/Config.in.host
 create mode 100644 package/xc3sprog/xc3sprog.mk
package/Config.in +1 -0
index d19b37f..9316d17 100644
@@ -391,6 +391,7 @@ endif
 	source "package/usbutils/Config.in"
 	source "package/w_scan/Config.in"
 	source "package/wipe/Config.in"
+	source "package/xc3sprog/Config.in"
 	source "package/xorriso/Config.in"
 endmenu
 
package/Config.in.host +1 -0
index 94981ad..11351b0 100644
@@ -25,5 +25,6 @@ menu "Host utilities"
 	source "package/sunxi-tools/Config.in.host"
 	source "package/uboot-tools/Config.in.host"
 	source "package/util-linux/Config.in.host"
+	source "package/xc3sprog/Config.in.host"
 
 endmenu
package/xc3sprog/Config.in new file +19 -0
new file mode 100644
index 0000000..41ed939
@@ -0,0 +1,19 @@
+config BR2_PACKAGE_XC3SPROG
+	bool "xc3sprog"
+	depends on BR2_INSTALL_LIBSTDCPP
+	depends on BR2_TOOLCHAIN_HAS_THREADS # libftdi
+	depends on BR2_USE_WCHAR # FILE
+	select BR2_PACKAGE_LIBFTDI
+	help
+	  xc3sprog is a suite of utilities for programming Xilinx FPGAs, CPLDs,
+	  and EEPROMs with the Xilinx Parallel Cable and other JTAG adapters
+	  under Linux (xc3sprog, xc2c_warp, readdna, bitparse, jedecparse,
+	  srecparse, detectchain).
+
+	  xc3sprog depends on libftdi and so will auto-select it.
+
+	  http://xc3sprog.sourceforge.net/
+
+comment "xc3sprog needs a toolchain w/ C++, threads, wchar"
+	depends on !(BR2_INSTALL_LIBSTDCPP && BR2_TOOLCHAIN_HAS_THREADS \
+		&& BR2_USE_WCHAR)
package/xc3sprog/Config.in.host new file +12 -0
new file mode 100644
index 0000000..29a8b78
@@ -0,0 +1,12 @@
+config BR2_PACKAGE_HOST_XC3SPROG
+	bool "host xc3sprog"
+	select BR2_PACKAGE_HOST_LIBFTDI
+	help
+	  xc3sprog is a suite of utilities for programming Xilinx FPGAs, CPLDs,
+	  and EEPROMs with the Xilinx Parallel Cable and other JTAG adapters
+	  under Linux (xc3sprog, xc2c_warp, readdna, bitparse, jedecparse,
+	  srecparse, detectchain).
+
+	  xc3sprog depends on libftdi and so will auto-select it.
+
+	  http://xc3sprog.sourceforge.net/
package/xc3sprog/xc3sprog.mk new file +15 -0
new file mode 100644
index 0000000..1dcfeb3
@@ -0,0 +1,15 @@
+################################################################################
+#
+# xc3sprog
+#
+################################################################################
+
+XC3SPROG_VERSION = 772
+XC3SPROG_SITE = https://svn.code.sf.net/p/xc3sprog/code/trunk
+XC3SPROG_SITE_METHOD = svn
+X3CSPROG_LICENSE = GPLv2+
+X3CSPROG_LICENSE_FILES = COPYING
+X3CSPROG_DEPENDENCIES = libftdi host-pkgconf
+
+$(eval $(cmake-package))
+$(eval $(host-cmake-package))
Signature · 1 line
1.7.9.5
#1 lore raw

PATCH 1/1 xc3sprog: new package

Julien, All,

On 2015-02-19 10:52 +0100, julien.boibessot at free.fr spake thusly:

Quoted 7 lines

From: Julien Boibessot <[email protected]>

These tools can be useful on Host during development and on target for BR based production testbench for example.
Both usage were tested at Armadeus Systems.

[--SNIP--]

package/xc3sprog/Config.in line 5

Quoted 11 lines
package/xc3sprog/Config.in new file +5 -0
new file mode 100644
index 0000000..41ed939
@@ -0,0 +1,19 @@
+config BR2_PACKAGE_XC3SPROG
+	bool "xc3sprog"
+	depends on BR2_INSTALL_LIBSTDCPP
+	depends on BR2_TOOLCHAIN_HAS_THREADS # libftdi
+	depends on BR2_USE_WCHAR # FILE
                             ^^^^^^

What does that mean? 'FILE' is not usual as a comment for a dependency. Did you mean the 'file' package? If so you're not selecting it...

package/xc3sprog/Config.in line 6

Quoted 1 line
package/xc3sprog/Config.in new file +1 -0
+	select BR2_PACKAGE_LIBFTDI

Is it possible to use libftdi1 instead of libftdi?

(warning: if so, libftdi1 is not yet a host-package.)

package/xc3sprog/Config.in line 13

Quoted 7 lines
package/xc3sprog/Config.in new file +7 -0
+	help
+	  xc3sprog is a suite of utilities for programming Xilinx FPGAs, CPLDs,
+	  and EEPROMs with the Xilinx Parallel Cable and other JTAG adapters
+	  under Linux (xc3sprog, xc2c_warp, readdna, bitparse, jedecparse,
+	  srecparse, detectchain).
+
+	  xc3sprog depends on libftdi and so will auto-select it.

That last sentence is not needed.

Quoted 11 lines
package/xc3sprog/Config.in new file +5 -0
+	  http://xc3sprog.sourceforge.net/
+
+comment "xc3sprog needs a toolchain w/ C++, threads, wchar"
+	depends on !(BR2_INSTALL_LIBSTDCPP && BR2_TOOLCHAIN_HAS_THREADS \
+		&& BR2_USE_WCHAR)
package/xc3sprog/Config.in.host new file +0 -0
new file mode 100644
index 0000000..29a8b78

package/xc3sprog/Config.in.host line 10

Quoted 10 lines
package/xc3sprog/Config.in.host new file +10 -0
@@ -0,0 +1,12 @@
+config BR2_PACKAGE_HOST_XC3SPROG
+	bool "host xc3sprog"
+	select BR2_PACKAGE_HOST_LIBFTDI
+	help
+	  xc3sprog is a suite of utilities for programming Xilinx FPGAs, CPLDs,
+	  and EEPROMs with the Xilinx Parallel Cable and other JTAG adapters
+	  under Linux (xc3sprog, xc2c_warp, readdna, bitparse, jedecparse,
+	  srecparse, detectchain).
+
+	  xc3sprog depends on libftdi and so will auto-select it.

Ditto: last sentence not needed.

Regards,
Yann E. MORIN.

Quoted 29 lines
package/xc3sprog/Config.in.host new file +1 -0
+	  http://xc3sprog.sourceforge.net/
package/xc3sprog/xc3sprog.mk new file +15 -0
new file mode 100644
index 0000000..1dcfeb3
@@ -0,0 +1,15 @@
+################################################################################
+#
+# xc3sprog
+#
+################################################################################
+
+XC3SPROG_VERSION = 772
+XC3SPROG_SITE = https://svn.code.sf.net/p/xc3sprog/code/trunk
+XC3SPROG_SITE_METHOD = svn
+X3CSPROG_LICENSE = GPLv2+
+X3CSPROG_LICENSE_FILES = COPYING
+X3CSPROG_DEPENDENCIES = libftdi host-pkgconf
+
+$(eval $(cmake-package))
+$(eval $(host-cmake-package))
Signature · 6 lines
1.7.9.5

_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot
Signature · 6 lines
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'