Skip to contentSkip to conversation

cc-tool: new package

PATCH New Arnout Vandecappelle (Essensium/Mind) 2 participants 2 messages May 2, 2015 – May 3, 2015

lore
Share & tools
lore
#0 lore raw

PATCH v5 1/1 cc-tool: new package

From: Marcin Bis <[email protected]>

cc-tool provides support for Texas Instruments CC Debugger

[Arnout: avoid adding /usr/local to library path]

---
v5: point to boost explicitly to avoid /usr/local/ in the library path.
Discovered thanks to BR_COMPILER_PARANOID_UNSAFE_PATH, thank you for that!

---
 package/Config.in            |  1 +
 package/cc-tool/Config.in    | 20 ++++++++++++++++++++
 package/cc-tool/cc-tool.hash |  3 +++
 package/cc-tool/cc-tool.mk   | 17 +++++++++++++++++
 4 files changed, 41 insertions(+)
 create mode 100644 package/cc-tool/Config.in
 create mode 100644 package/cc-tool/cc-tool.hash
 create mode 100644 package/cc-tool/cc-tool.mk
package/Config.in +1 -0
index 45e8f83..ad21925 100644
@@ -316,6 +316,7 @@ endmenu
 	source "package/avrdude/Config.in"
 	source "package/bcache-tools/Config.in"
 	source "package/biosdevname/Config.in"
+	source "package/cc-tool/Config.in"
 	source "package/cdrkit/Config.in"
 	source "package/cryptsetup/Config.in"
 	source "package/cwiid/Config.in"
package/cc-tool/Config.in new file +20 -0
new file mode 100644
index 0000000..5087f4a
@@ -0,0 +1,20 @@
+config BR2_PACKAGE_CC_TOOL
+	bool "cc-tool"
+	depends on BR2_INSTALL_LIBSTDCPP
+	depends on BR2_TOOLCHAIN_HAS_THREADS
+	select BR2_PACKAGE_LIBUSB
+	select BR2_PACKAGE_BOOST
+	select BR2_PACKAGE_BOOST_PROGRAM_OPTIONS
+	select BR2_PACKAGE_BOOST_SYSTEM
+	select BR2_PACKAGE_BOOST_REGEX
+	select BR2_PACKAGE_BOOST_FILESYSTEM
+	select BR2_PACKAGE_BOOST_SIGNALS
+	help
+	  cc-tool provides support for Texas Instruments CC Debugger
+	  for Linux OS in order to program 8051-based System-On-Chip
+	  devices: CC254x CC253x CC243x CC251x CC111x
+
+	  http://sourceforge.net/projects/cctool/
+
+comment "cc-tool needs a toolchain w/ C++, threads"
+	depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS
package/cc-tool/cc-tool.hash new file +3 -0
new file mode 100644
index 0000000..81844ee
@@ -0,0 +1,3 @@
+# From http://sourceforge.net/projects/cctool/files/
+sha1 f313e55f019ea5338438633f5b5e689b699343e1  cc-tool-0.26-src.tgz
+md5 26960676f3e6264e612c299fbf8ec5ea  cc-tool-0.26-src.tgz
package/cc-tool/cc-tool.mk new file +17 -0
new file mode 100644
index 0000000..7312bd3
@@ -0,0 +1,17 @@
+################################################################################
+#
+# cc-tool
+#
+################################################################################
+
+CC_TOOL_VERSION = 0.26
+CC_TOOL_SITE = http://downloads.sourceforge.net/project/cctool
+CC_TOOL_SOURCE = cc-tool-$(CC_TOOL_VERSION)-src.tgz
+CC_TOOL_LICENSE = GPLv2
+CC_TOOL_LICENSE_FILES = COPYING
+CC_TOOL_DEPENDENCIES = boost libusb
+
+# Configure script "discovers" boost in /usr/local if not given explicitly
+CC_TOOL_CONF_OPTS = --with-boost=$(STAGING_DIR)/usr
+
+$(eval $(autotools-package))
Signature · 1 line
2.1.4
#1 lore raw

PATCH v5 1/1 cc-tool: new package

Dear Arnout Vandecappelle (Essensium/Mind),

Quoted 11 lines · Arnout Vandecappelle (Essensium/Mind)

From: Marcin Bis <[email protected]>

cc-tool provides support for Texas Instruments CC Debugger

[Arnout: avoid adding /usr/local to library path]

---
v5: point to boost explicitly to avoid /usr/local/ in the library path.
Discovered thanks to BR_COMPILER_PARANOID_UNSAFE_PATH, thank you for that!

Quoted 9 lines
---
 package/Config.in            |  1 +
 package/cc-tool/Config.in    | 20 ++++++++++++++++++++
 package/cc-tool/cc-tool.hash |  3 +++
 package/cc-tool/cc-tool.mk   | 17 +++++++++++++++++
 4 files changed, 41 insertions(+)
 create mode 100644 package/cc-tool/Config.in
 create mode 100644 package/cc-tool/cc-tool.hash
 create mode 100644 package/cc-tool/cc-tool.mk

Applied, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com