All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [pull request v2] Pull request for branch for-2012.02/host-tools
@ 2011-12-29 17:40 Thomas Petazzoni
  2011-12-29 17:40 ` [Buildroot] [PATCH 1/7] Add basic config infrastructure for host utilities Thomas Petazzoni
                   ` (7 more replies)
  0 siblings, 8 replies; 17+ messages in thread
From: Thomas Petazzoni @ 2011-12-29 17:40 UTC (permalink / raw)
  To: buildroot

Hello,

This is the second posting of this patch set that allows some host
utilities to be visible in menuconfig, when those host utilities are
not simply build dependencies, but might also be directly interesting
for the user (image creation utilities, device programming utilities,
etc.).

A first posting was done on October, 1st 2011, and the general idea
and implementation received positive comments from Luca Ceresoli and
Thomas De Schampheleire.

Changes since v1:

 * Fix a commit log, as per the comment from Luca Ceresoli

 * Add the SAM-BA utility from Atmel as another host utility. This
   tool can be used from the development machine to reflash a virgin
   AT91-based device, through USB or serial.

Regards,

Thomas

The following changes since commit ef3fe1bef6581c66af3858d540343e011cb9fdd6:

  cdrkit: bump to version 1.1.11 and adjust style (2011-12-21 23:02:31 +0100)

are available in the git repository at:
  http://free-electrons.com/~thomas/buildroot.git for-2012.02/host-tools

Thomas Petazzoni (7):
      Add basic config infrastructure for host utilities
      uboot-tools: expose host package in menuconfig
      libftdi: add host variant
      libusb-compat: add host variant
      libusb: add host variant
      openocd: add host variant
      sam-ba: new package with host variant only

 Config.in                              |    2 ++
 package/Config.in.host                 |    7 +++++++
 package/libftdi/libftdi.mk             |    3 +++
 package/libusb-compat/libusb-compat.mk |    4 ++++
 package/libusb/libusb.mk               |    3 +++
 package/openocd/Config.in.host         |    6 ++++++
 package/openocd/openocd.mk             |   10 ++++++++++
 package/sam-ba/Config.in.host          |    6 ++++++
 package/sam-ba/sam-ba.mk               |   23 +++++++++++++++++++++++
 package/uboot-tools/Config.in.host     |    6 ++++++
 10 files changed, 70 insertions(+), 0 deletions(-)
 create mode 100644 package/Config.in.host
 create mode 100644 package/openocd/Config.in.host
 create mode 100644 package/sam-ba/Config.in.host
 create mode 100644 package/sam-ba/sam-ba.mk
 create mode 100644 package/uboot-tools/Config.in.host

Thanks,
-- 
Thomas Petazzoni

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

* [Buildroot] [PATCH 1/7] Add basic config infrastructure for host utilities
  2011-12-29 17:40 [Buildroot] [pull request v2] Pull request for branch for-2012.02/host-tools Thomas Petazzoni
@ 2011-12-29 17:40 ` Thomas Petazzoni
  2011-12-29 17:40 ` [Buildroot] [PATCH 2/7] uboot-tools: expose host package in menuconfig Thomas Petazzoni
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 17+ messages in thread
From: Thomas Petazzoni @ 2011-12-29 17:40 UTC (permalink / raw)
  To: buildroot

Most of the host packages don't have to be exposed to the user as they
are only used as build dependencies of target packages.

However, some host utilities, such as flashing utilities, image
creation programs, specific debuggers, might be useful and should be
presented to the user.

Therefore, we have a new global menu, which lists those host
utilities. These utilities are described in package/*/Config.in.host
files, which will be sourced by package/Config.in.host.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
 Config.in              |    2 ++
 package/Config.in.host |    3 +++
 2 files changed, 5 insertions(+), 0 deletions(-)
 create mode 100644 package/Config.in.host

diff --git a/Config.in b/Config.in
index ab77ef3..8579a63 100644
--- a/Config.in
+++ b/Config.in
@@ -371,6 +371,8 @@ source "target/generic/Config.in"
 
 source "package/Config.in"
 
+source "package/Config.in.host"
+
 source "fs/Config.in"
 
 source "boot/Config.in"
diff --git a/package/Config.in.host b/package/Config.in.host
new file mode 100644
index 0000000..54f6a59
--- /dev/null
+++ b/package/Config.in.host
@@ -0,0 +1,3 @@
+menu "Host utilities"
+
+endmenu
-- 
1.7.4.1

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

* [Buildroot] [PATCH 2/7] uboot-tools: expose host package in menuconfig
  2011-12-29 17:40 [Buildroot] [pull request v2] Pull request for branch for-2012.02/host-tools Thomas Petazzoni
  2011-12-29 17:40 ` [Buildroot] [PATCH 1/7] Add basic config infrastructure for host utilities Thomas Petazzoni
@ 2011-12-29 17:40 ` Thomas Petazzoni
  2011-12-29 17:40 ` [Buildroot] [PATCH 3/7] libftdi: add host variant Thomas Petazzoni
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 17+ messages in thread
From: Thomas Petazzoni @ 2011-12-29 17:40 UTC (permalink / raw)
  To: buildroot

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
 package/Config.in.host             |    2 ++
 package/uboot-tools/Config.in.host |    6 ++++++
 2 files changed, 8 insertions(+), 0 deletions(-)
 create mode 100644 package/uboot-tools/Config.in.host

diff --git a/package/Config.in.host b/package/Config.in.host
index 54f6a59..b8f8aab 100644
--- a/package/Config.in.host
+++ b/package/Config.in.host
@@ -1,3 +1,5 @@
 menu "Host utilities"
 
+source "package/uboot-tools/Config.in.host"
+
 endmenu
diff --git a/package/uboot-tools/Config.in.host b/package/uboot-tools/Config.in.host
new file mode 100644
index 0000000..7a844e9
--- /dev/null
+++ b/package/uboot-tools/Config.in.host
@@ -0,0 +1,6 @@
+config BR2_PACKAGE_HOST_UBOOT_TOOLS
+	bool "host u-boot tools"
+	help
+	  Companion tools for Das U-Boot bootloader.
+
+	  http://www.denx.de/wiki/U-Boot/WebHome
-- 
1.7.4.1

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

* [Buildroot] [PATCH 3/7] libftdi: add host variant
  2011-12-29 17:40 [Buildroot] [pull request v2] Pull request for branch for-2012.02/host-tools Thomas Petazzoni
  2011-12-29 17:40 ` [Buildroot] [PATCH 1/7] Add basic config infrastructure for host utilities Thomas Petazzoni
  2011-12-29 17:40 ` [Buildroot] [PATCH 2/7] uboot-tools: expose host package in menuconfig Thomas Petazzoni
@ 2011-12-29 17:40 ` Thomas Petazzoni
  2011-12-29 17:40 ` [Buildroot] [PATCH 4/7] libusb-compat: " Thomas Petazzoni
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 17+ messages in thread
From: Thomas Petazzoni @ 2011-12-29 17:40 UTC (permalink / raw)
  To: buildroot

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
 package/libftdi/libftdi.mk |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/package/libftdi/libftdi.mk b/package/libftdi/libftdi.mk
index 55481d9..2c0afe7 100644
--- a/package/libftdi/libftdi.mk
+++ b/package/libftdi/libftdi.mk
@@ -20,4 +20,7 @@ else
 LIBFDTI_CONF_OPT += --disable-libftdipp
 endif
 
+HOST_LIBFTDI_DEPENDENCIES = host-libusb-compat host-libusb
+
 $(eval $(call AUTOTARGETS))
+$(eval $(call AUTOTARGETS,host))
-- 
1.7.4.1

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

* [Buildroot] [PATCH 4/7] libusb-compat: add host variant
  2011-12-29 17:40 [Buildroot] [pull request v2] Pull request for branch for-2012.02/host-tools Thomas Petazzoni
                   ` (2 preceding siblings ...)
  2011-12-29 17:40 ` [Buildroot] [PATCH 3/7] libftdi: add host variant Thomas Petazzoni
@ 2011-12-29 17:40 ` Thomas Petazzoni
  2011-12-29 17:40 ` [Buildroot] [PATCH 5/7] libusb: " Thomas Petazzoni
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 17+ messages in thread
From: Thomas Petazzoni @ 2011-12-29 17:40 UTC (permalink / raw)
  To: buildroot

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
 package/libusb-compat/libusb-compat.mk |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/package/libusb-compat/libusb-compat.mk b/package/libusb-compat/libusb-compat.mk
index e39cdd8..99e7716 100644
--- a/package/libusb-compat/libusb-compat.mk
+++ b/package/libusb-compat/libusb-compat.mk
@@ -18,4 +18,8 @@ endef
 
 LIBUSB_COMPAT_POST_INSTALL_STAGING_HOOKS+=LIBUSB_COMPAT_FIXUP_CONFIG
 
+HOST_LIBUSB_COMPAT_DEPENDENCIES = host-pkg-config host-libusb
+
 $(eval $(call AUTOTARGETS))
+$(eval $(call AUTOTARGETS,host))
+
-- 
1.7.4.1

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

* [Buildroot] [PATCH 5/7] libusb: add host variant
  2011-12-29 17:40 [Buildroot] [pull request v2] Pull request for branch for-2012.02/host-tools Thomas Petazzoni
                   ` (3 preceding siblings ...)
  2011-12-29 17:40 ` [Buildroot] [PATCH 4/7] libusb-compat: " Thomas Petazzoni
@ 2011-12-29 17:40 ` Thomas Petazzoni
  2011-12-29 17:40 ` [Buildroot] [PATCH 6/7] openocd: " Thomas Petazzoni
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 17+ messages in thread
From: Thomas Petazzoni @ 2011-12-29 17:40 UTC (permalink / raw)
  To: buildroot

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
 package/libusb/libusb.mk |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/package/libusb/libusb.mk b/package/libusb/libusb.mk
index af75f5f..b3ca353 100644
--- a/package/libusb/libusb.mk
+++ b/package/libusb/libusb.mk
@@ -10,4 +10,7 @@ LIBUSB_DEPENDENCIES = host-pkg-config
 LIBUSB_INSTALL_STAGING = YES
 LIBUSB_INSTALL_TARGET = YES
 
+HOST_LIBUSB_DEPENDENCIES = host-pkg-config
+
 $(eval $(call AUTOTARGETS))
+$(eval $(call AUTOTARGETS,host))
-- 
1.7.4.1

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

* [Buildroot] [PATCH 6/7] openocd: add host variant
  2011-12-29 17:40 [Buildroot] [pull request v2] Pull request for branch for-2012.02/host-tools Thomas Petazzoni
                   ` (4 preceding siblings ...)
  2011-12-29 17:40 ` [Buildroot] [PATCH 5/7] libusb: " Thomas Petazzoni
@ 2011-12-29 17:40 ` Thomas Petazzoni
  2012-01-02 13:13   ` Thomas De Schampheleire
  2011-12-29 17:40 ` [Buildroot] [PATCH 7/7] sam-ba: new package with host variant only Thomas Petazzoni
  2011-12-30 21:44 ` [Buildroot] [pull request v2] Pull request for branch for-2012.02/host-tools Luca Ceresoli
  7 siblings, 1 reply; 17+ messages in thread
From: Thomas Petazzoni @ 2011-12-29 17:40 UTC (permalink / raw)
  To: buildroot

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
 package/Config.in.host         |    1 +
 package/openocd/Config.in.host |    6 ++++++
 package/openocd/openocd.mk     |   10 ++++++++++
 3 files changed, 17 insertions(+), 0 deletions(-)
 create mode 100644 package/openocd/Config.in.host

diff --git a/package/Config.in.host b/package/Config.in.host
index b8f8aab..6499eb5 100644
--- a/package/Config.in.host
+++ b/package/Config.in.host
@@ -1,5 +1,6 @@
 menu "Host utilities"
 
 source "package/uboot-tools/Config.in.host"
+source "package/openocd/Config.in.host"
 
 endmenu
diff --git a/package/openocd/Config.in.host b/package/openocd/Config.in.host
new file mode 100644
index 0000000..2380942
--- /dev/null
+++ b/package/openocd/Config.in.host
@@ -0,0 +1,6 @@
+config BR2_PACKAGE_HOST_OPENOCD
+	bool "host openocd"
+	help
+	  OpenOCD - Open On-Chip Debugger
+
+	  http://openocd.berlios.de/web/
diff --git a/package/openocd/openocd.mk b/package/openocd/openocd.mk
index 5f61367..d79b33b 100644
--- a/package/openocd/openocd.mk
+++ b/package/openocd/openocd.mk
@@ -29,4 +29,14 @@ ifeq ($(BR2_PACKAGE_OPENOCD_VSLLINK),y)
 OPENOCD_CONF_OPT += --enable-vsllink
 endif
 
+HOST_OPENOCD_DEPENDENCIES = host-libusb-compat host-libftdi
+
+HOST_OPENOCD_CONF_OPT = 	\
+	--disable-doxygen-html 	\
+	--enable-dummy 		\
+	--enable-ft2232_libftdi \
+	--enable-jlink 		\
+	--enable-vsllink
+
 $(eval $(call AUTOTARGETS))
+$(eval $(call AUTOTARGETS,host))
-- 
1.7.4.1

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

* [Buildroot] [PATCH 7/7] sam-ba: new package with host variant only
  2011-12-29 17:40 [Buildroot] [pull request v2] Pull request for branch for-2012.02/host-tools Thomas Petazzoni
                   ` (5 preceding siblings ...)
  2011-12-29 17:40 ` [Buildroot] [PATCH 6/7] openocd: " Thomas Petazzoni
@ 2011-12-29 17:40 ` Thomas Petazzoni
  2012-01-02 13:25   ` Alexandre Belloni
  2011-12-30 21:44 ` [Buildroot] [pull request v2] Pull request for branch for-2012.02/host-tools Luca Ceresoli
  7 siblings, 1 reply; 17+ messages in thread
From: Thomas Petazzoni @ 2011-12-29 17:40 UTC (permalink / raw)
  To: buildroot

sam-ba is a tool needed to reprogram AT91-based systems using an USB
connection or a serial port connection.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
 package/Config.in.host        |    1 +
 package/sam-ba/Config.in.host |    6 ++++++
 package/sam-ba/sam-ba.mk      |   23 +++++++++++++++++++++++
 3 files changed, 30 insertions(+), 0 deletions(-)
 create mode 100644 package/sam-ba/Config.in.host
 create mode 100644 package/sam-ba/sam-ba.mk

diff --git a/package/Config.in.host b/package/Config.in.host
index 6499eb5..21e2a11 100644
--- a/package/Config.in.host
+++ b/package/Config.in.host
@@ -2,5 +2,6 @@ menu "Host utilities"
 
 source "package/uboot-tools/Config.in.host"
 source "package/openocd/Config.in.host"
+source "package/sam-ba/Config.in.host"
 
 endmenu
diff --git a/package/sam-ba/Config.in.host b/package/sam-ba/Config.in.host
new file mode 100644
index 0000000..1e46c30
--- /dev/null
+++ b/package/sam-ba/Config.in.host
@@ -0,0 +1,6 @@
+config BR2_PACKAGE_HOST_SAM_BA
+	bool "host sam-ba"
+	help
+	  Atmel SAM-BA? software provides an open set of tools for
+	  programming the Atmel SAM3, SAM7 and SAM9 ARM-based
+	  microcontrollers.
diff --git a/package/sam-ba/sam-ba.mk b/package/sam-ba/sam-ba.mk
new file mode 100644
index 0000000..bdad695
--- /dev/null
+++ b/package/sam-ba/sam-ba.mk
@@ -0,0 +1,23 @@
+SAM_BA_SITE    = http://www.atmel.com/dyn/resources/prod_documents/
+SAM_BA_VERSION = 2.10
+SAM_BA_SOURCE  = sam-ba_$(SAM_BA_VERSION).zip
+
+define HOST_SAM_BA_EXTRACT_CMDS
+        unzip -d $(BUILD_DIR) $(DL_DIR)/$(SAM_BA_SOURCE)
+        mv $(BUILD_DIR)/sam-ba_cdc_linux/* $(@D)
+        rmdir $(BUILD_DIR)/sam-ba_cdc_linux/
+endef
+
+# Since it's a prebuilt application and it does not conform to the
+# usual Unix hierarchy, we install it in $(HOST_DIR)/opt/sam-ba and
+# then create a symbolic link from $(HOST_DIR)/usr/bin to the
+# application binary, for easier usage.
+
+define HOST_SAM_BA_INSTALL_CMDS
+	mkdir -p $(HOST_DIR)/opt/sam-ba/
+	cp -a $(@D)/* $(HOST_DIR)/opt/sam-ba/
+	ln -s ../../opt/sam-ba/sam-ba $(HOST_DIR)/usr/bin/sam-ba
+endef
+
+$(eval $(call GENTARGETS,host))
+
-- 
1.7.4.1

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

* [Buildroot] [pull request v2] Pull request for branch for-2012.02/host-tools
  2011-12-29 17:40 [Buildroot] [pull request v2] Pull request for branch for-2012.02/host-tools Thomas Petazzoni
                   ` (6 preceding siblings ...)
  2011-12-29 17:40 ` [Buildroot] [PATCH 7/7] sam-ba: new package with host variant only Thomas Petazzoni
@ 2011-12-30 21:44 ` Luca Ceresoli
  2012-01-02 13:15   ` Thomas De Schampheleire
  7 siblings, 1 reply; 17+ messages in thread
From: Luca Ceresoli @ 2011-12-30 21:44 UTC (permalink / raw)
  To: buildroot

Thomas Petazzoni wrote:
> Hello,
>
> This is the second posting of this patch set that allows some host
> utilities to be visible in menuconfig, when those host utilities are
> not simply build dependencies, but might also be directly interesting
> for the user (image creation utilities, device programming utilities,
> etc.).
>
> A first posting was done on October, 1st 2011, and the general idea
> and implementation received positive comments from Luca Ceresoli and
> Thomas De Schampheleire.
>
> Changes since v1:
>
>   * Fix a commit log, as per the comment from Luca Ceresoli
>
>   * Add the SAM-BA utility from Atmel as another host utility. This
>     tool can be used from the development machine to reflash a virgin
>     AT91-based device, through USB or serial.
>
> Regards,
>
> Thomas

For the entire series:
Acked-by: Luca Ceresoli <luca@lucaceresoli.net>

Luca

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

* [Buildroot] [PATCH 6/7] openocd: add host variant
  2011-12-29 17:40 ` [Buildroot] [PATCH 6/7] openocd: " Thomas Petazzoni
@ 2012-01-02 13:13   ` Thomas De Schampheleire
  2012-01-03 20:46     ` Thomas Petazzoni
  0 siblings, 1 reply; 17+ messages in thread
From: Thomas De Schampheleire @ 2012-01-02 13:13 UTC (permalink / raw)
  To: buildroot

On Thu, Dec 29, 2011 at 6:40 PM, Thomas Petazzoni <
thomas.petazzoni@free-electrons.com> wrote:

> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
> ---
>  package/Config.in.host         |    1 +
>  package/openocd/Config.in.host |    6 ++++++
>  package/openocd/openocd.mk     |   10 ++++++++++
>  3 files changed, 17 insertions(+), 0 deletions(-)
>  create mode 100644 package/openocd/Config.in.host
>
> diff --git a/package/Config.in.host b/package/Config.in.host
> index b8f8aab..6499eb5 100644
> --- a/package/Config.in.host
> +++ b/package/Config.in.host
> @@ -1,5 +1,6 @@
>  menu "Host utilities"
>
>  source "package/uboot-tools/Config.in.host"
> +source "package/openocd/Config.in.host"
>

Shouldn't we be ordering this alphabetically?


>
>  endmenu
> diff --git a/package/openocd/Config.in.host
> b/package/openocd/Config.in.host
> new file mode 100644
> index 0000000..2380942
> --- /dev/null
> +++ b/package/openocd/Config.in.host
> @@ -0,0 +1,6 @@
> +config BR2_PACKAGE_HOST_OPENOCD
> +       bool "host openocd"
> +       help
> +         OpenOCD - Open On-Chip Debugger
> +
> +         http://openocd.berlios.de/web/
> diff --git a/package/openocd/openocd.mk b/package/openocd/openocd.mk
> index 5f61367..d79b33b 100644
> --- a/package/openocd/openocd.mk
> +++ b/package/openocd/openocd.mk
> @@ -29,4 +29,14 @@ ifeq ($(BR2_PACKAGE_OPENOCD_VSLLINK),y)
>  OPENOCD_CONF_OPT += --enable-vsllink
>  endif
>
> +HOST_OPENOCD_DEPENDENCIES = host-libusb-compat host-libftdi
> +
> +HOST_OPENOCD_CONF_OPT =        \
> +       --disable-doxygen-html  \
> +       --enable-dummy          \
> +       --enable-ft2232_libftdi \
> +       --enable-jlink          \
> +       --enable-vsllink
> +
>  $(eval $(call AUTOTARGETS))
> +$(eval $(call AUTOTARGETS,host))
> --
> 1.7.4.1
>
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20120102/7400a762/attachment.html>

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

* [Buildroot] [pull request v2] Pull request for branch for-2012.02/host-tools
  2011-12-30 21:44 ` [Buildroot] [pull request v2] Pull request for branch for-2012.02/host-tools Luca Ceresoli
@ 2012-01-02 13:15   ` Thomas De Schampheleire
  0 siblings, 0 replies; 17+ messages in thread
From: Thomas De Schampheleire @ 2012-01-02 13:15 UTC (permalink / raw)
  To: buildroot

On Fri, Dec 30, 2011 at 10:44 PM, Luca Ceresoli <luca@lucaceresoli.net>wrote:

> Thomas Petazzoni wrote:
>
>> Hello,
>>
>> This is the second posting of this patch set that allows some host
>> utilities to be visible in menuconfig, when those host utilities are
>> not simply build dependencies, but might also be directly interesting
>> for the user (image creation utilities, device programming utilities,
>> etc.).
>>
>> A first posting was done on October, 1st 2011, and the general idea
>> and implementation received positive comments from Luca Ceresoli and
>> Thomas De Schampheleire.
>>
>> Changes since v1:
>>
>>  * Fix a commit log, as per the comment from Luca Ceresoli
>>
>>  * Add the SAM-BA utility from Atmel as another host utility. This
>>    tool can be used from the development machine to reflash a virgin
>>    AT91-based device, through USB or serial.
>>
>> Regards,
>>
>> Thomas
>>
>
> For the entire series:
> Acked-by: Luca Ceresoli <luca@lucaceresoli.net>
>

Aside from the alphabetical ordering in package/Config.in.host:
Acked-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20120102/1e357cc1/attachment.html>

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

* [Buildroot] [PATCH 7/7] sam-ba: new package with host variant only
  2011-12-29 17:40 ` [Buildroot] [PATCH 7/7] sam-ba: new package with host variant only Thomas Petazzoni
@ 2012-01-02 13:25   ` Alexandre Belloni
  2012-01-02 13:29     ` Thomas Petazzoni
  0 siblings, 1 reply; 17+ messages in thread
From: Alexandre Belloni @ 2012-01-02 13:25 UTC (permalink / raw)
  To: buildroot

Shouldn't we go further and provide scripts to flash the boards using
the
default addresses used in at91bootstrap and u-boot ?

On Thu, 2011-12-29 at 18:40 +0100, Thomas Petazzoni wrote:

> sam-ba is a tool needed to reprogram AT91-based systems using an USB
> connection or a serial port connection.
> 
> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
> ---
>  package/Config.in.host        |    1 +
>  package/sam-ba/Config.in.host |    6 ++++++
>  package/sam-ba/sam-ba.mk      |   23 +++++++++++++++++++++++
>  3 files changed, 30 insertions(+), 0 deletions(-)
>  create mode 100644 package/sam-ba/Config.in.host
>  create mode 100644 package/sam-ba/sam-ba.mk
> 
> diff --git a/package/Config.in.host b/package/Config.in.host
> index 6499eb5..21e2a11 100644
> --- a/package/Config.in.host
> +++ b/package/Config.in.host
> @@ -2,5 +2,6 @@ menu "Host utilities"
>  
>  source "package/uboot-tools/Config.in.host"
>  source "package/openocd/Config.in.host"
> +source "package/sam-ba/Config.in.host"
>  
>  endmenu
> diff --git a/package/sam-ba/Config.in.host b/package/sam-ba/Config.in.host
> new file mode 100644
> index 0000000..1e46c30
> --- /dev/null
> +++ b/package/sam-ba/Config.in.host
> @@ -0,0 +1,6 @@
> +config BR2_PACKAGE_HOST_SAM_BA
> +	bool "host sam-ba"
> +	help
> +	  Atmel SAM-BA? software provides an open set of tools for
> +	  programming the Atmel SAM3, SAM7 and SAM9 ARM-based
> +	  microcontrollers.
> diff --git a/package/sam-ba/sam-ba.mk b/package/sam-ba/sam-ba.mk
> new file mode 100644
> index 0000000..bdad695
> --- /dev/null
> +++ b/package/sam-ba/sam-ba.mk
> @@ -0,0 +1,23 @@
> +SAM_BA_SITE    = http://www.atmel.com/dyn/resources/prod_documents/
> +SAM_BA_VERSION = 2.10
> +SAM_BA_SOURCE  = sam-ba_$(SAM_BA_VERSION).zip
> +
> +define HOST_SAM_BA_EXTRACT_CMDS
> +        unzip -d $(BUILD_DIR) $(DL_DIR)/$(SAM_BA_SOURCE)
> +        mv $(BUILD_DIR)/sam-ba_cdc_linux/* $(@D)
> +        rmdir $(BUILD_DIR)/sam-ba_cdc_linux/
> +endef
> +
> +# Since it's a prebuilt application and it does not conform to the
> +# usual Unix hierarchy, we install it in $(HOST_DIR)/opt/sam-ba and
> +# then create a symbolic link from $(HOST_DIR)/usr/bin to the
> +# application binary, for easier usage.
> +
> +define HOST_SAM_BA_INSTALL_CMDS
> +	mkdir -p $(HOST_DIR)/opt/sam-ba/
> +	cp -a $(@D)/* $(HOST_DIR)/opt/sam-ba/
> +	ln -s ../../opt/sam-ba/sam-ba $(HOST_DIR)/usr/bin/sam-ba
> +endef
> +
> +$(eval $(call GENTARGETS,host))
> +


-- 
Alexandre Belloni

Adeneo Embedded
Adetel Group

2, ch. du Ruisseau - 69134 Ecully, France

www.adeneo-embedded.com
 




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20120102/0a701ad3/attachment.html>

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

* [Buildroot] [PATCH 7/7] sam-ba: new package with host variant only
  2012-01-02 13:25   ` Alexandre Belloni
@ 2012-01-02 13:29     ` Thomas Petazzoni
  2012-01-12 23:13       ` Arnout Vandecappelle
  0 siblings, 1 reply; 17+ messages in thread
From: Thomas Petazzoni @ 2012-01-02 13:29 UTC (permalink / raw)
  To: buildroot

Hello Alexandre,

Le Mon, 02 Jan 2012 14:25:35 +0100,
Alexandre Belloni <abelloni@adeneo-embedded.com> a ?crit :

> Shouldn't we go further and provide scripts to flash the boards using
> the
> default addresses used in at91bootstrap and u-boot ?

Indeed, that would be the next step to improve the board support for
AT91 evaluation boards. You are welcome to contribute patches :-)

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

* [Buildroot] [PATCH 6/7] openocd: add host variant
  2012-01-02 13:13   ` Thomas De Schampheleire
@ 2012-01-03 20:46     ` Thomas Petazzoni
  0 siblings, 0 replies; 17+ messages in thread
From: Thomas Petazzoni @ 2012-01-03 20:46 UTC (permalink / raw)
  To: buildroot

Le Mon, 2 Jan 2012 14:13:51 +0100,
Thomas De Schampheleire <patrickdepinguin+buildroot@gmail.com> a ?crit :

> >  source "package/uboot-tools/Config.in.host"
> > +source "package/openocd/Config.in.host"
> 
> Shouldn't we be ordering this alphabetically?

Correct, thanks! I fixed it (and for sam-ba as well), and pushed a new
version on my public repository. I'll wait for other comments (if any)
before sending a new v3, unless Peter pulls the branch in the mean time.

Thanks!

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

* [Buildroot] [PATCH 7/7] sam-ba: new package with host variant only
  2012-01-02 13:29     ` Thomas Petazzoni
@ 2012-01-12 23:13       ` Arnout Vandecappelle
  2012-01-13  8:25         ` Thomas Petazzoni
  0 siblings, 1 reply; 17+ messages in thread
From: Arnout Vandecappelle @ 2012-01-12 23:13 UTC (permalink / raw)
  To: buildroot

On Monday 02 January 2012 14:29:59 Thomas Petazzoni wrote:
> Hello Alexandre,
> 
> Le Mon, 02 Jan 2012 14:25:35 +0100,
> Alexandre Belloni <abelloni@adeneo-embedded.com> a ?crit :
> 
> > Shouldn't we go further and provide scripts to flash the boards using
> > the
> > default addresses used in at91bootstrap and u-boot ?
> 
> Indeed, that would be the next step to improve the board support for
> AT91 evaluation boards. You are welcome to contribute patches :-)

 Buildroot is missing post-image scripting in general.  You will typically
want to package the kernel and rootfs in a compressed and signed image that
can be distributed and installed on the target.  Or during development, you
would like to untar it to the nfsroot.

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

* [Buildroot] [PATCH 7/7] sam-ba: new package with host variant only
  2012-01-12 23:13       ` Arnout Vandecappelle
@ 2012-01-13  8:25         ` Thomas Petazzoni
  2012-01-13  9:29           ` Arnout Vandecappelle
  0 siblings, 1 reply; 17+ messages in thread
From: Thomas Petazzoni @ 2012-01-13  8:25 UTC (permalink / raw)
  To: buildroot

Le Fri, 13 Jan 2012 00:13:13 +0100,
Arnout Vandecappelle <arnout@mind.be> a ?crit :

>  Buildroot is missing post-image scripting in general.  You will
> typically want to package the kernel and rootfs in a compressed and
> signed image that can be distributed and installed on the target.  Or
> during development, you would like to untar it to the nfsroot.

For one project, I have added a post-image script hook, like we have
for post-build. I've used it to generate a firmware image in a special
format, bundling the kernel image and the root filesystem image.

Does it make sense to submit such a feature?

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

* [Buildroot] [PATCH 7/7] sam-ba: new package with host variant only
  2012-01-13  8:25         ` Thomas Petazzoni
@ 2012-01-13  9:29           ` Arnout Vandecappelle
  0 siblings, 0 replies; 17+ messages in thread
From: Arnout Vandecappelle @ 2012-01-13  9:29 UTC (permalink / raw)
  To: buildroot

On Friday 13 January 2012 09:25:45 Thomas Petazzoni wrote:
> Le Fri, 13 Jan 2012 00:13:13 +0100,
> Arnout Vandecappelle <arnout@mind.be> a ?crit :
> 
> >  Buildroot is missing post-image scripting in general.  You will
> > typically want to package the kernel and rootfs in a compressed and
> > signed image that can be distributed and installed on the target.  Or
> > during development, you would like to untar it to the nfsroot.
> 
> For one project, I have added a post-image script hook, like we have
> for post-build. I've used it to generate a firmware image in a special
> format, bundling the kernel image and the root filesystem image.
> 
> Does it make sense to submit such a feature?

 It most certainly does.

 Myself, I have already created six scripts like that...  So I guess I'm
better placed to refactor some commonalities out of them :-)  Now if I only
had the time to do it... (I'm still catching up on the buildroot mailing list
of end of December...)

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

end of thread, other threads:[~2012-01-13  9:29 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-12-29 17:40 [Buildroot] [pull request v2] Pull request for branch for-2012.02/host-tools Thomas Petazzoni
2011-12-29 17:40 ` [Buildroot] [PATCH 1/7] Add basic config infrastructure for host utilities Thomas Petazzoni
2011-12-29 17:40 ` [Buildroot] [PATCH 2/7] uboot-tools: expose host package in menuconfig Thomas Petazzoni
2011-12-29 17:40 ` [Buildroot] [PATCH 3/7] libftdi: add host variant Thomas Petazzoni
2011-12-29 17:40 ` [Buildroot] [PATCH 4/7] libusb-compat: " Thomas Petazzoni
2011-12-29 17:40 ` [Buildroot] [PATCH 5/7] libusb: " Thomas Petazzoni
2011-12-29 17:40 ` [Buildroot] [PATCH 6/7] openocd: " Thomas Petazzoni
2012-01-02 13:13   ` Thomas De Schampheleire
2012-01-03 20:46     ` Thomas Petazzoni
2011-12-29 17:40 ` [Buildroot] [PATCH 7/7] sam-ba: new package with host variant only Thomas Petazzoni
2012-01-02 13:25   ` Alexandre Belloni
2012-01-02 13:29     ` Thomas Petazzoni
2012-01-12 23:13       ` Arnout Vandecappelle
2012-01-13  8:25         ` Thomas Petazzoni
2012-01-13  9:29           ` Arnout Vandecappelle
2011-12-30 21:44 ` [Buildroot] [pull request v2] Pull request for branch for-2012.02/host-tools Luca Ceresoli
2012-01-02 13:15   ` Thomas De Schampheleire

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.