All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] cc-tool: new package
@ 2015-04-27 13:42 Marcin Bis
  2015-04-27 15:31 ` Thomas Petazzoni
  0 siblings, 1 reply; 12+ messages in thread
From: Marcin Bis @ 2015-04-27 13:42 UTC (permalink / raw)
  To: buildroot

cc-tool provides support for Texas Instruments CC Debugger

Signed-off-by: Marcin Bis <marcin@bis.org.pl>
---
 package/Config.in            |  1 +
 package/cc-tool/Config.in    | 21 +++++++++++++++++++++
 package/cc-tool/cc-tool.hash |  3 +++
 package/cc-tool/cc-tool.mk   | 13 +++++++++++++
 4 files changed, 38 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

diff --git a/package/Config.in b/package/Config.in
index 4e20e4d..12767d5 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -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"
diff --git a/package/cc-tool/Config.in b/package/cc-tool/Config.in
new file mode 100644
index 0000000..f62200d
--- /dev/null
+++ b/package/cc-tool/Config.in
@@ -0,0 +1,21 @@
+config BR2_PACKAGE_CC_TOOL
+	bool "cc-tool"
+	depends on BR2_INSTALL_LIBSTDCPP
+	depends on BR2_TOOLCHAIN_HAS_THREADS
+	depends on BR2_LARGEFILE
+	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++, largefile, threads"
+	depends on !BR2_INSTALL_LIBSTDCPP || !BR2_LARGEFILE || !BR2_TOOLCHAIN_HAS_THREADS
diff --git a/package/cc-tool/cc-tool.hash b/package/cc-tool/cc-tool.hash
new file mode 100644
index 0000000..81844ee
--- /dev/null
+++ b/package/cc-tool/cc-tool.hash
@@ -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
diff --git a/package/cc-tool/cc-tool.mk b/package/cc-tool/cc-tool.mk
new file mode 100644
index 0000000..9a6ee6e
--- /dev/null
+++ b/package/cc-tool/cc-tool.mk
@@ -0,0 +1,13 @@
+################################################################################
+#
+# 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
+
+$(eval $(autotools-package))
-- 
1.9.1

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

* [Buildroot] [PATCH] cc-tool: new package
  2015-04-27 13:42 [Buildroot] [PATCH] cc-tool: new package Marcin Bis
@ 2015-04-27 15:31 ` Thomas Petazzoni
  2015-04-27 19:46   ` Marcin Bis
  0 siblings, 1 reply; 12+ messages in thread
From: Thomas Petazzoni @ 2015-04-27 15:31 UTC (permalink / raw)
  To: buildroot

Dear Marcin Bis,

Thanks for this contribution! See some comment sbelow.

On Mon, 27 Apr 2015 15:42:09 +0200, Marcin Bis wrote:
> cc-tool provides support for Texas Instruments CC Debugger
> 
> Signed-off-by: Marcin Bis <marcin@bis.org.pl>

It is not entirely clear: is it a tool you run on your target device,
or on your host/development machine?

Your package is for the target, but I would intuitively expect a
debugger to run on the host/development machine. How does it work?

> diff --git a/package/cc-tool/Config.in b/package/cc-tool/Config.in
> new file mode 100644
> index 0000000..f62200d
> --- /dev/null
> +++ b/package/cc-tool/Config.in
> @@ -0,0 +1,21 @@
> +config BR2_PACKAGE_CC_TOOL
> +	bool "cc-tool"
> +	depends on BR2_INSTALL_LIBSTDCPP
> +	depends on BR2_TOOLCHAIN_HAS_THREADS
> +	depends on BR2_LARGEFILE
> +	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

So you're selecting libusb and boost here.

> +	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++, largefile, threads"
> +	depends on !BR2_INSTALL_LIBSTDCPP || !BR2_LARGEFILE || !BR2_TOOLCHAIN_HAS_THREADS
> diff --git a/package/cc-tool/cc-tool.hash b/package/cc-tool/cc-tool.hash
> new file mode 100644
> index 0000000..81844ee
> --- /dev/null
> +++ b/package/cc-tool/cc-tool.hash
> @@ -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
> diff --git a/package/cc-tool/cc-tool.mk b/package/cc-tool/cc-tool.mk
> new file mode 100644
> index 0000000..9a6ee6e
> --- /dev/null
> +++ b/package/cc-tool/cc-tool.mk
> @@ -0,0 +1,13 @@
> +################################################################################
> +#
> +# 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

But you don't depend on them anywhere here. So you are not guaranteed
that they will be built before cc-tool.

> +
> +$(eval $(autotools-package))

Other than that, looks good. I've checked the license info, it looks
good to me. The configure script doesn't provide any option for
optional things, so it looks alright.

Thanks!

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

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

* [Buildroot] [PATCH] cc-tool: new package
  2015-04-27 15:31 ` Thomas Petazzoni
@ 2015-04-27 19:46   ` Marcin Bis
  2015-04-27 19:50     ` [Buildroot] [PATCH v2] " Marcin Bis
  2015-04-27 21:10     ` [Buildroot] [PATCH] " Thomas Petazzoni
  0 siblings, 2 replies; 12+ messages in thread
From: Marcin Bis @ 2015-04-27 19:46 UTC (permalink / raw)
  To: buildroot

Hi Thomas,

Thank you for comments.

On 04/27/2015 05:31 PM, Thomas Petazzoni wrote:
> Dear Marcin Bis,
>
> Thanks for this contribution! See some comment sbelow.
>
> On Mon, 27 Apr 2015 15:42:09 +0200, Marcin Bis wrote:
>> cc-tool provides support for Texas Instruments CC Debugger
>>
>> Signed-off-by: Marcin Bis <marcin@bis.org.pl>
>
> It is not entirely clear: is it a tool you run on your target device,
> or on your host/development machine?
>
> Your package is for the target, but I would intuitively expect a
> debugger to run on the host/development machine. How does it work?

cc-tool is used for interacting with Texas Instrument's Debugger and 
Programmer for RF System-on-Chips.
http://www.ti.com/tool/cc-debugger

The device is used for programming (and debugging) firmware on various 
TI Low Power RF System-on-Chips (based on 8051 microcontrolers).

I am using it for re-flashing such chips from ARM-based embedded devices 
(running Buildroot generated os) - so I put it under "tools for target" 
category.

TI chips do not have sufficient resources to run Linux on them, so 
adding cc-tool as a host tools in Buildroot does not make sense (in my 
opinion) - the tool has no use on Buildroot generated images.

>> diff --git a/package/cc-tool/Config.in b/package/cc-tool/Config.in
>> new file mode 100644
>> index 0000000..f62200d
>> --- /dev/null
>> +++ b/package/cc-tool/Config.in
>> @@ -0,0 +1,21 @@
>> +config BR2_PACKAGE_CC_TOOL
>> +	bool "cc-tool"
>> +	depends on BR2_INSTALL_LIBSTDCPP
>> +	depends on BR2_TOOLCHAIN_HAS_THREADS
>> +	depends on BR2_LARGEFILE
>> +	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
>
> So you're selecting libusb and boost here.
>
>> +	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++, largefile, threads"
>> +	depends on !BR2_INSTALL_LIBSTDCPP || !BR2_LARGEFILE || !BR2_TOOLCHAIN_HAS_THREADS
>> diff --git a/package/cc-tool/cc-tool.hash b/package/cc-tool/cc-tool.hash
>> new file mode 100644
>> index 0000000..81844ee
>> --- /dev/null
>> +++ b/package/cc-tool/cc-tool.hash
>> @@ -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
>> diff --git a/package/cc-tool/cc-tool.mk b/package/cc-tool/cc-tool.mk
>> new file mode 100644
>> index 0000000..9a6ee6e
>> --- /dev/null
>> +++ b/package/cc-tool/cc-tool.mk
>> @@ -0,0 +1,13 @@
>> +################################################################################
>> +#
>> +# 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
>
> But you don't depend on them anywhere here. So you are not guaranteed
> that they will be built before cc-tool.

Fixing this.

>> +
>> +$(eval $(autotools-package))
>
> Other than that, looks good. I've checked the license info, it looks
> good to me. The configure script doesn't provide any option for
> optional things, so it looks alright.
>
> Thanks!
>
> Thomas
>

-- 
   Marcin Bis

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

* [Buildroot] [PATCH v2] cc-tool: new package
  2015-04-27 19:46   ` Marcin Bis
@ 2015-04-27 19:50     ` Marcin Bis
  2015-04-28  3:28       ` Baruch Siach
  2015-04-27 21:10     ` [Buildroot] [PATCH] " Thomas Petazzoni
  1 sibling, 1 reply; 12+ messages in thread
From: Marcin Bis @ 2015-04-27 19:50 UTC (permalink / raw)
  To: buildroot

cc-tool provides support for Texas Instruments CC Debugger

Signed-off-by: Marcin Bis <marcin@bis.org.pl>
---
 package/Config.in            |  1 +
 package/cc-tool/Config.in    | 21 +++++++++++++++++++++
 package/cc-tool/cc-tool.hash |  3 +++
 package/cc-tool/cc-tool.mk   | 14 ++++++++++++++
 4 files changed, 39 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

diff --git a/package/Config.in b/package/Config.in
index 4e20e4d..12767d5 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -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"
diff --git a/package/cc-tool/Config.in b/package/cc-tool/Config.in
new file mode 100644
index 0000000..f62200d
--- /dev/null
+++ b/package/cc-tool/Config.in
@@ -0,0 +1,21 @@
+config BR2_PACKAGE_CC_TOOL
+	bool "cc-tool"
+	depends on BR2_INSTALL_LIBSTDCPP
+	depends on BR2_TOOLCHAIN_HAS_THREADS
+	depends on BR2_LARGEFILE
+	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++, largefile, threads"
+	depends on !BR2_INSTALL_LIBSTDCPP || !BR2_LARGEFILE || !BR2_TOOLCHAIN_HAS_THREADS
diff --git a/package/cc-tool/cc-tool.hash b/package/cc-tool/cc-tool.hash
new file mode 100644
index 0000000..81844ee
--- /dev/null
+++ b/package/cc-tool/cc-tool.hash
@@ -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
diff --git a/package/cc-tool/cc-tool.mk b/package/cc-tool/cc-tool.mk
new file mode 100644
index 0000000..0612fd0
--- /dev/null
+++ b/package/cc-tool/cc-tool.mk
@@ -0,0 +1,14 @@
+################################################################################
+#
+# 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
+
+$(eval $(autotools-package))
-- 
1.9.1

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

* [Buildroot] [PATCH] cc-tool: new package
  2015-04-27 19:46   ` Marcin Bis
  2015-04-27 19:50     ` [Buildroot] [PATCH v2] " Marcin Bis
@ 2015-04-27 21:10     ` Thomas Petazzoni
  2015-04-28  7:35       ` Marcin Bis
  1 sibling, 1 reply; 12+ messages in thread
From: Thomas Petazzoni @ 2015-04-27 21:10 UTC (permalink / raw)
  To: buildroot

Dear Marcin Bis,

On Mon, 27 Apr 2015 21:46:26 +0200, Marcin Bis wrote:

> cc-tool is used for interacting with Texas Instrument's Debugger and 
> Programmer for RF System-on-Chips.
> http://www.ti.com/tool/cc-debugger
> 
> The device is used for programming (and debugging) firmware on various 
> TI Low Power RF System-on-Chips (based on 8051 microcontrolers).
> 
> I am using it for re-flashing such chips from ARM-based embedded devices 
> (running Buildroot generated os) - so I put it under "tools for target" 
> category.

Ok.

> TI chips do not have sufficient resources to run Linux on them, so 
> adding cc-tool as a host tools in Buildroot does not make sense (in my 
> opinion) - the tool has no use on Buildroot generated images.

This is not what a host tools is. A host tool runs on your PC, i.e
where you do the Buildroot build. For sure your PC has sufficient
resources to run cc-tool.

Thanks,

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

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

* [Buildroot] [PATCH v2] cc-tool: new package
  2015-04-27 19:50     ` [Buildroot] [PATCH v2] " Marcin Bis
@ 2015-04-28  3:28       ` Baruch Siach
  2015-04-28  7:44         ` [Buildroot] [PATCH v3] " Marcin Bis
  0 siblings, 1 reply; 12+ messages in thread
From: Baruch Siach @ 2015-04-28  3:28 UTC (permalink / raw)
  To: buildroot

Hi Marcin,

On Mon, Apr 27, 2015 at 09:50:16PM +0200, Marcin Bis wrote:
> diff --git a/package/cc-tool/Config.in b/package/cc-tool/Config.in
> new file mode 100644
> index 0000000..f62200d
> --- /dev/null
> +++ b/package/cc-tool/Config.in
> @@ -0,0 +1,21 @@
> +config BR2_PACKAGE_CC_TOOL
> +	bool "cc-tool"
> +	depends on BR2_INSTALL_LIBSTDCPP
> +	depends on BR2_TOOLCHAIN_HAS_THREADS
> +	depends on BR2_LARGEFILE

LFS support is now mandatory in Buildroot. Please remove.

> +	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++, largefile, threads"
> +	depends on !BR2_INSTALL_LIBSTDCPP || !BR2_LARGEFILE || !BR2_TOOLCHAIN_HAS_THREADS

Ditto.

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] 12+ messages in thread

* [Buildroot] [PATCH] cc-tool: new package
  2015-04-27 21:10     ` [Buildroot] [PATCH] " Thomas Petazzoni
@ 2015-04-28  7:35       ` Marcin Bis
  2015-04-28  8:02         ` Thomas Petazzoni
  0 siblings, 1 reply; 12+ messages in thread
From: Marcin Bis @ 2015-04-28  7:35 UTC (permalink / raw)
  To: buildroot

Hi Thoams,

On 04/27/2015 11:10 PM, Thomas Petazzoni wrote:
> Dear Marcin Bis,
>
> On Mon, 27 Apr 2015 21:46:26 +0200, Marcin Bis wrote:
>
>> cc-tool is used for interacting with Texas Instrument's Debugger and
>> Programmer for RF System-on-Chips.
>> http://www.ti.com/tool/cc-debugger
>>
>> The device is used for programming (and debugging) firmware on various
>> TI Low Power RF System-on-Chips (based on 8051 microcontrolers).
>>
>> I am using it for re-flashing such chips from ARM-based embedded devices
>> (running Buildroot generated os) - so I put it under "tools for target"
>> category.
>
> Ok.
>
>> TI chips do not have sufficient resources to run Linux on them, so
>> adding cc-tool as a host tools in Buildroot does not make sense (in my
>> opinion) - the tool has no use on Buildroot generated images.
>
> This is not what a host tools is. A host tool runs on your PC, i.e
> where you do the Buildroot build. For sure your PC has sufficient
> resources to run cc-tool.

As I understand, host-tools are intended for doing something with images 
generated by Buildroot e.g. flashing, generating fs images etc.

cc-tool does not fall under this category.
It is some how similar to openocd, but openocd can be used to debug 
bootloader/Linux kernel running on some SoC-s (so it perfectly makes 
sense here).
TI chips, which cc-tool talks to - are not able to run Linux at all.

Of course cc-tool can be added to Buildroot as a host tool too.
I can prepare the patch if you want.

My particular need at the moment is to have it as a tool for target.
>
> Thanks,
>
> Thomas
>

-- 
   Marcin Bis

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

* [Buildroot] [PATCH v3] cc-tool: new package
  2015-04-28  3:28       ` Baruch Siach
@ 2015-04-28  7:44         ` Marcin Bis
  2015-04-28  9:01           ` Baruch Siach
  0 siblings, 1 reply; 12+ messages in thread
From: Marcin Bis @ 2015-04-28  7:44 UTC (permalink / raw)
  To: buildroot

cc-tool provides support for Texas Instruments CC Debugger

Signed-off-by: Marcin Bis <marcin@bis.org.pl>
---
 package/Config.in            |  1 +
 package/cc-tool/Config.in    | 20 ++++++++++++++++++++
 package/cc-tool/cc-tool.hash |  3 +++
 package/cc-tool/cc-tool.mk   | 14 ++++++++++++++
 4 files changed, 38 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

diff --git a/package/Config.in b/package/Config.in
index 4e20e4d..12767d5 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -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"
diff --git a/package/cc-tool/Config.in b/package/cc-tool/Config.in
new file mode 100644
index 0000000..be41de6
--- /dev/null
+++ b/package/cc-tool/Config.in
@@ -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++, largefile, threads"
+	depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS
diff --git a/package/cc-tool/cc-tool.hash b/package/cc-tool/cc-tool.hash
new file mode 100644
index 0000000..81844ee
--- /dev/null
+++ b/package/cc-tool/cc-tool.hash
@@ -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
diff --git a/package/cc-tool/cc-tool.mk b/package/cc-tool/cc-tool.mk
new file mode 100644
index 0000000..0612fd0
--- /dev/null
+++ b/package/cc-tool/cc-tool.mk
@@ -0,0 +1,14 @@
+################################################################################
+#
+# 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
+
+$(eval $(autotools-package))
-- 
1.9.1

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

* [Buildroot] [PATCH] cc-tool: new package
  2015-04-28  7:35       ` Marcin Bis
@ 2015-04-28  8:02         ` Thomas Petazzoni
  0 siblings, 0 replies; 12+ messages in thread
From: Thomas Petazzoni @ 2015-04-28  8:02 UTC (permalink / raw)
  To: buildroot

Dear Marcin Bis,

On Tue, 28 Apr 2015 09:35:54 +0200, Marcin Bis wrote:

> > This is not what a host tools is. A host tool runs on your PC, i.e
> > where you do the Buildroot build. For sure your PC has sufficient
> > resources to run cc-tool.
> 
> As I understand, host-tools are intended for doing something with images 
> generated by Buildroot e.g. flashing, generating fs images etc.

Right.

> cc-tool does not fall under this category.
> It is some how similar to openocd, but openocd can be used to debug 
> bootloader/Linux kernel running on some SoC-s (so it perfectly makes 
> sense here).

Indeed.

> TI chips, which cc-tool talks to - are not able to run Linux at all.

Ok, so what you mean is that those TI chips are typically not connected
to the development PC directly, but are generally connected to the
embedded system that runs Buildroot.

> Of course cc-tool can be added to Buildroot as a host tool too.
> I can prepare the patch if you want.

Nope, if you don't use it, don't do it. I'm fine with a target package
after the explanations you provided.

Thanks!

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

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

* [Buildroot] [PATCH v3] cc-tool: new package
  2015-04-28  7:44         ` [Buildroot] [PATCH v3] " Marcin Bis
@ 2015-04-28  9:01           ` Baruch Siach
  2015-04-28  9:19             ` [Buildroot] [PATCHv4] " Marcin Bis
  0 siblings, 1 reply; 12+ messages in thread
From: Baruch Siach @ 2015-04-28  9:01 UTC (permalink / raw)
  To: buildroot

Hi Marcin,

On Tue, Apr 28, 2015 at 09:44:32AM +0200, Marcin Bis wrote:
> cc-tool provides support for Texas Instruments CC Debugger
> 
> Signed-off-by: Marcin Bis <marcin@bis.org.pl>
> ---

[snip]

> +comment "cc-tool needs a toolchain w/ C++, largefile, threads"
> +	depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS

The comment text doesn't match the list of dependencies. Please remove 
"largefile".

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] 12+ messages in thread

* [Buildroot] [PATCHv4] cc-tool: new package
  2015-04-28  9:01           ` Baruch Siach
@ 2015-04-28  9:19             ` Marcin Bis
  2015-05-02 19:00               ` Arnout Vandecappelle
  0 siblings, 1 reply; 12+ messages in thread
From: Marcin Bis @ 2015-04-28  9:19 UTC (permalink / raw)
  To: buildroot

cc-tool provides support for Texas Instruments CC Debugger

Signed-off-by: Marcin Bis <marcin@bis.org.pl>
---
 package/Config.in            |  1 +
 package/cc-tool/Config.in    | 20 ++++++++++++++++++++
 package/cc-tool/cc-tool.hash |  3 +++
 package/cc-tool/cc-tool.mk   | 14 ++++++++++++++
 4 files changed, 38 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

diff --git a/package/Config.in b/package/Config.in
index 4e20e4d..12767d5 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -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"
diff --git a/package/cc-tool/Config.in b/package/cc-tool/Config.in
new file mode 100644
index 0000000..5087f4a
--- /dev/null
+++ b/package/cc-tool/Config.in
@@ -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
diff --git a/package/cc-tool/cc-tool.hash b/package/cc-tool/cc-tool.hash
new file mode 100644
index 0000000..81844ee
--- /dev/null
+++ b/package/cc-tool/cc-tool.hash
@@ -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
diff --git a/package/cc-tool/cc-tool.mk b/package/cc-tool/cc-tool.mk
new file mode 100644
index 0000000..0612fd0
--- /dev/null
+++ b/package/cc-tool/cc-tool.mk
@@ -0,0 +1,14 @@
+################################################################################
+#
+# 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
+
+$(eval $(autotools-package))
-- 
1.9.1

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

* [Buildroot] [PATCHv4] cc-tool: new package
  2015-04-28  9:19             ` [Buildroot] [PATCHv4] " Marcin Bis
@ 2015-05-02 19:00               ` Arnout Vandecappelle
  0 siblings, 0 replies; 12+ messages in thread
From: Arnout Vandecappelle @ 2015-05-02 19:00 UTC (permalink / raw)
  To: buildroot

On 28/04/15 11:19, Marcin Bis wrote:
> cc-tool provides support for Texas Instruments CC Debugger
> 
> Signed-off-by: Marcin Bis <marcin@bis.org.pl>

 Looks good, just one small but important issue: the configure script thinks it
discovers boot in /usr/local (or in /usr if the host system has it there), and
adds /usr/local/lib to the library path.

 I've made a modification that avoids that and I'll repost.

 Regards,
 Arnout

> ---
>  package/Config.in            |  1 +
>  package/cc-tool/Config.in    | 20 ++++++++++++++++++++
>  package/cc-tool/cc-tool.hash |  3 +++
>  package/cc-tool/cc-tool.mk   | 14 ++++++++++++++
>  4 files changed, 38 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
> 
> diff --git a/package/Config.in b/package/Config.in
> index 4e20e4d..12767d5 100644
> --- a/package/Config.in
> +++ b/package/Config.in
> @@ -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"
> diff --git a/package/cc-tool/Config.in b/package/cc-tool/Config.in
> new file mode 100644
> index 0000000..5087f4a
> --- /dev/null
> +++ b/package/cc-tool/Config.in
> @@ -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
> diff --git a/package/cc-tool/cc-tool.hash b/package/cc-tool/cc-tool.hash
> new file mode 100644
> index 0000000..81844ee
> --- /dev/null
> +++ b/package/cc-tool/cc-tool.hash
> @@ -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
> diff --git a/package/cc-tool/cc-tool.mk b/package/cc-tool/cc-tool.mk
> new file mode 100644
> index 0000000..0612fd0
> --- /dev/null
> +++ b/package/cc-tool/cc-tool.mk
> @@ -0,0 +1,14 @@
> +################################################################################
> +#
> +# 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
> +
> +$(eval $(autotools-package))
> 


-- 
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
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] 12+ messages in thread

end of thread, other threads:[~2015-05-02 19:00 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-27 13:42 [Buildroot] [PATCH] cc-tool: new package Marcin Bis
2015-04-27 15:31 ` Thomas Petazzoni
2015-04-27 19:46   ` Marcin Bis
2015-04-27 19:50     ` [Buildroot] [PATCH v2] " Marcin Bis
2015-04-28  3:28       ` Baruch Siach
2015-04-28  7:44         ` [Buildroot] [PATCH v3] " Marcin Bis
2015-04-28  9:01           ` Baruch Siach
2015-04-28  9:19             ` [Buildroot] [PATCHv4] " Marcin Bis
2015-05-02 19:00               ` Arnout Vandecappelle
2015-04-27 21:10     ` [Buildroot] [PATCH] " Thomas Petazzoni
2015-04-28  7:35       ` Marcin Bis
2015-04-28  8:02         ` Thomas Petazzoni

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.