* [Buildroot] [pull request v3] Pull request for branch for-2012.02/host-tools
@ 2012-01-28 17:42 Thomas Petazzoni
2012-01-28 17:42 ` [Buildroot] [PATCH 1/7] Add basic config infrastructure for host utilities Thomas Petazzoni
` (6 more replies)
0 siblings, 7 replies; 18+ messages in thread
From: Thomas Petazzoni @ 2012-01-28 17:42 UTC (permalink / raw)
To: buildroot
Hello,
This is the third 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.).
Changes since v2 (posted on December, 28th 2011) :
* Ensured that the entries are sorted alphabetically
* Added Acked-by received by Buildroot contributors
* Rebased on current master
Changes since v1 (posted on October, 1st 2011) :
* 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 5796753b6b4caba703cf23f45f68b7715d1150a4:
mplayer: add optional vorbis dependency (2012-01-27 11:18:52 +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] 18+ messages in thread* [Buildroot] [PATCH 1/7] Add basic config infrastructure for host utilities
2012-01-28 17:42 [Buildroot] [pull request v3] Pull request for branch for-2012.02/host-tools Thomas Petazzoni
@ 2012-01-28 17:42 ` Thomas Petazzoni
2012-02-02 19:57 ` Peter Korsgaard
2012-01-28 17:42 ` [Buildroot] [PATCH 2/7] uboot-tools: expose host package in menuconfig Thomas Petazzoni
` (5 subsequent siblings)
6 siblings, 1 reply; 18+ messages in thread
From: Thomas Petazzoni @ 2012-01-28 17:42 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>
Acked-by: Luca Ceresoli <luca@lucaceresoli.net>
Acked-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.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] 18+ messages in thread* [Buildroot] [PATCH 1/7] Add basic config infrastructure for host utilities
2012-01-28 17:42 ` [Buildroot] [PATCH 1/7] Add basic config infrastructure for host utilities Thomas Petazzoni
@ 2012-02-02 19:57 ` Peter Korsgaard
0 siblings, 0 replies; 18+ messages in thread
From: Peter Korsgaard @ 2012-02-02 19:57 UTC (permalink / raw)
To: buildroot
>>>>> "Thomas" == Thomas Petazzoni <thomas.petazzoni@free-electrons.com> writes:
Thomas> Most of the host packages don't have to be exposed to the user as they
Thomas> are only used as build dependencies of target packages.
Thomas> However, some host utilities, such as flashing utilities, image
Thomas> creation programs, specific debuggers, might be useful and should be
Thomas> presented to the user.
Thomas> Therefore, we have a new global menu, which lists those host
Thomas> utilities. These utilities are described in package/*/Config.in.host
Thomas> files, which will be sourced by package/Config.in.host.
Committed, thanks.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 18+ messages in thread
* [Buildroot] [PATCH 2/7] uboot-tools: expose host package in menuconfig
2012-01-28 17:42 [Buildroot] [pull request v3] Pull request for branch for-2012.02/host-tools Thomas Petazzoni
2012-01-28 17:42 ` [Buildroot] [PATCH 1/7] Add basic config infrastructure for host utilities Thomas Petazzoni
@ 2012-01-28 17:42 ` Thomas Petazzoni
2012-02-02 19:57 ` Peter Korsgaard
2012-01-28 17:42 ` [Buildroot] [PATCH 3/7] libftdi: add host variant Thomas Petazzoni
` (4 subsequent siblings)
6 siblings, 1 reply; 18+ messages in thread
From: Thomas Petazzoni @ 2012-01-28 17:42 UTC (permalink / raw)
To: buildroot
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Acked-by: Luca Ceresoli <luca@lucaceresoli.net>
Acked-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.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] 18+ messages in thread* [Buildroot] [PATCH 3/7] libftdi: add host variant
2012-01-28 17:42 [Buildroot] [pull request v3] Pull request for branch for-2012.02/host-tools Thomas Petazzoni
2012-01-28 17:42 ` [Buildroot] [PATCH 1/7] Add basic config infrastructure for host utilities Thomas Petazzoni
2012-01-28 17:42 ` [Buildroot] [PATCH 2/7] uboot-tools: expose host package in menuconfig Thomas Petazzoni
@ 2012-01-28 17:42 ` Thomas Petazzoni
2012-02-02 19:57 ` Peter Korsgaard
2012-01-28 17:42 ` [Buildroot] [PATCH 4/7] libusb-compat: " Thomas Petazzoni
` (3 subsequent siblings)
6 siblings, 1 reply; 18+ messages in thread
From: Thomas Petazzoni @ 2012-01-28 17:42 UTC (permalink / raw)
To: buildroot
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Acked-by: Luca Ceresoli <luca@lucaceresoli.net>
Acked-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.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] 18+ messages in thread* [Buildroot] [PATCH 3/7] libftdi: add host variant
2012-01-28 17:42 ` [Buildroot] [PATCH 3/7] libftdi: add host variant Thomas Petazzoni
@ 2012-02-02 19:57 ` Peter Korsgaard
0 siblings, 0 replies; 18+ messages in thread
From: Peter Korsgaard @ 2012-02-02 19:57 UTC (permalink / raw)
To: buildroot
>>>>> "Thomas" == Thomas Petazzoni <thomas.petazzoni@free-electrons.com> writes:
Thomas> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Thomas> Acked-by: Luca Ceresoli <luca@lucaceresoli.net>
Thomas> Acked-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com>
Thomas> ---
Thomas> package/libftdi/libftdi.mk | 3 +++
Thomas> 1 files changed, 3 insertions(+), 0 deletions(-)
Thomas> diff --git a/package/libftdi/libftdi.mk b/package/libftdi/libftdi.mk
Thomas> index 55481d9..2c0afe7 100644
Thomas> --- a/package/libftdi/libftdi.mk
Thomas> +++ b/package/libftdi/libftdi.mk
Thomas> @@ -20,4 +20,7 @@ else
Thomas> LIBFDTI_CONF_OPT += --disable-libftdipp
Thomas> endif
Thomas> +HOST_LIBFTDI_DEPENDENCIES = host-libusb-compat host-libusb
This line is no longer needed, so I dropped it. Other than that it looks
fine - Committed, thanks.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 18+ messages in thread
* [Buildroot] [PATCH 4/7] libusb-compat: add host variant
2012-01-28 17:42 [Buildroot] [pull request v3] Pull request for branch for-2012.02/host-tools Thomas Petazzoni
` (2 preceding siblings ...)
2012-01-28 17:42 ` [Buildroot] [PATCH 3/7] libftdi: add host variant Thomas Petazzoni
@ 2012-01-28 17:42 ` Thomas Petazzoni
2012-02-02 20:00 ` Peter Korsgaard
2012-01-28 17:42 ` [Buildroot] [PATCH 5/7] libusb: " Thomas Petazzoni
` (2 subsequent siblings)
6 siblings, 1 reply; 18+ messages in thread
From: Thomas Petazzoni @ 2012-01-28 17:42 UTC (permalink / raw)
To: buildroot
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Acked-by: Luca Ceresoli <luca@lucaceresoli.net>
Acked-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.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] 18+ messages in thread* [Buildroot] [PATCH 4/7] libusb-compat: add host variant
2012-01-28 17:42 ` [Buildroot] [PATCH 4/7] libusb-compat: " Thomas Petazzoni
@ 2012-02-02 20:00 ` Peter Korsgaard
0 siblings, 0 replies; 18+ messages in thread
From: Peter Korsgaard @ 2012-02-02 20:00 UTC (permalink / raw)
To: buildroot
>>>>> "Thomas" == Thomas Petazzoni <thomas.petazzoni@free-electrons.com> writes:
Thomas> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Thomas> Acked-by: Luca Ceresoli <luca@lucaceresoli.net>
Thomas> Acked-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com>
Thomas> ---
Thomas> package/libusb-compat/libusb-compat.mk | 4 ++++
Thomas> 1 files changed, 4 insertions(+), 0 deletions(-)
Thomas> diff --git a/package/libusb-compat/libusb-compat.mk b/package/libusb-compat/libusb-compat.mk
Thomas> index e39cdd8..99e7716 100644
Thomas> --- a/package/libusb-compat/libusb-compat.mk
Thomas> +++ b/package/libusb-compat/libusb-compat.mk
Thomas> @@ -18,4 +18,8 @@ endef
Thomas> LIBUSB_COMPAT_POST_INSTALL_STAGING_HOOKS+=LIBUSB_COMPAT_FIXUP_CONFIG
Thomas> +HOST_LIBUSB_COMPAT_DEPENDENCIES = host-pkg-config host-libusb
I removed this one as well. This should go before the libftdi patch to
not break the build, so I reordered (same for libusb).
Committed, thanks.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 18+ messages in thread
* [Buildroot] [PATCH 5/7] libusb: add host variant
2012-01-28 17:42 [Buildroot] [pull request v3] Pull request for branch for-2012.02/host-tools Thomas Petazzoni
` (3 preceding siblings ...)
2012-01-28 17:42 ` [Buildroot] [PATCH 4/7] libusb-compat: " Thomas Petazzoni
@ 2012-01-28 17:42 ` Thomas Petazzoni
2012-02-02 20:02 ` Peter Korsgaard
2012-01-28 17:42 ` [Buildroot] [PATCH 6/7] openocd: " Thomas Petazzoni
2012-01-28 17:42 ` [Buildroot] [PATCH 7/7] sam-ba: new package with host variant only Thomas Petazzoni
6 siblings, 1 reply; 18+ messages in thread
From: Thomas Petazzoni @ 2012-01-28 17:42 UTC (permalink / raw)
To: buildroot
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Acked-by: Luca Ceresoli <luca@lucaceresoli.net>
Acked-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.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] 18+ messages in thread* [Buildroot] [PATCH 5/7] libusb: add host variant
2012-01-28 17:42 ` [Buildroot] [PATCH 5/7] libusb: " Thomas Petazzoni
@ 2012-02-02 20:02 ` Peter Korsgaard
0 siblings, 0 replies; 18+ messages in thread
From: Peter Korsgaard @ 2012-02-02 20:02 UTC (permalink / raw)
To: buildroot
>>>>> "Thomas" == Thomas Petazzoni <thomas.petazzoni@free-electrons.com> writes:
Thomas> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Thomas> Acked-by: Luca Ceresoli <luca@lucaceresoli.net>
Thomas> Acked-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com>
Thomas> ---
Thomas> package/libusb/libusb.mk | 3 +++
Thomas> 1 files changed, 3 insertions(+), 0 deletions(-)
Thomas> diff --git a/package/libusb/libusb.mk b/package/libusb/libusb.mk
Thomas> index af75f5f..b3ca353 100644
Thomas> --- a/package/libusb/libusb.mk
Thomas> +++ b/package/libusb/libusb.mk
Thomas> @@ -10,4 +10,7 @@ LIBUSB_DEPENDENCIES = host-pkg-config
Thomas> LIBUSB_INSTALL_STAGING = YES
Thomas> LIBUSB_INSTALL_TARGET = YES
Thomas> +HOST_LIBUSB_DEPENDENCIES = host-pkg-config
Same comments as libusb-compat. Committed, thanks.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 18+ messages in thread
* [Buildroot] [PATCH 6/7] openocd: add host variant
2012-01-28 17:42 [Buildroot] [pull request v3] Pull request for branch for-2012.02/host-tools Thomas Petazzoni
` (4 preceding siblings ...)
2012-01-28 17:42 ` [Buildroot] [PATCH 5/7] libusb: " Thomas Petazzoni
@ 2012-01-28 17:42 ` Thomas Petazzoni
2012-02-02 20:06 ` Peter Korsgaard
2012-01-28 17:42 ` [Buildroot] [PATCH 7/7] sam-ba: new package with host variant only Thomas Petazzoni
6 siblings, 1 reply; 18+ messages in thread
From: Thomas Petazzoni @ 2012-01-28 17:42 UTC (permalink / raw)
To: buildroot
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Acked-by: Luca Ceresoli <luca@lucaceresoli.net>
Acked-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.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..6bc828b 100644
--- a/package/Config.in.host
+++ b/package/Config.in.host
@@ -1,5 +1,6 @@
menu "Host utilities"
+source "package/openocd/Config.in.host"
source "package/uboot-tools/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] 18+ messages in thread* [Buildroot] [PATCH 7/7] sam-ba: new package with host variant only
2012-01-28 17:42 [Buildroot] [pull request v3] Pull request for branch for-2012.02/host-tools Thomas Petazzoni
` (5 preceding siblings ...)
2012-01-28 17:42 ` [Buildroot] [PATCH 6/7] openocd: " Thomas Petazzoni
@ 2012-01-28 17:42 ` Thomas Petazzoni
2012-02-02 20:14 ` Peter Korsgaard
6 siblings, 1 reply; 18+ messages in thread
From: Thomas Petazzoni @ 2012-01-28 17:42 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>
Acked-by: Luca Ceresoli <luca@lucaceresoli.net>
Acked-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.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 6bc828b..1f49e79 100644
--- a/package/Config.in.host
+++ b/package/Config.in.host
@@ -1,6 +1,7 @@
menu "Host utilities"
source "package/openocd/Config.in.host"
+source "package/sam-ba/Config.in.host"
source "package/uboot-tools/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..27ffd12
--- /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] 18+ messages in thread* [Buildroot] [PATCH 7/7] sam-ba: new package with host variant only
2012-01-28 17:42 ` [Buildroot] [PATCH 7/7] sam-ba: new package with host variant only Thomas Petazzoni
@ 2012-02-02 20:14 ` Peter Korsgaard
0 siblings, 0 replies; 18+ messages in thread
From: Peter Korsgaard @ 2012-02-02 20:14 UTC (permalink / raw)
To: buildroot
>>>>> "Thomas" == Thomas Petazzoni <thomas.petazzoni@free-electrons.com> writes:
Thomas> sam-ba is a tool needed to reprogram AT91-based systems using an USB
Thomas> connection or a serial port connection.
Thomas> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Thomas> Acked-by: Luca Ceresoli <luca@lucaceresoli.net>
Thomas> Acked-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com>
Thomas> ---
Thomas> package/Config.in.host | 1 +
Thomas> package/sam-ba/Config.in.host | 6 ++++++
Thomas> package/sam-ba/sam-ba.mk | 23 +++++++++++++++++++++++
Thomas> 3 files changed, 30 insertions(+), 0 deletions(-)
Thomas> create mode 100644 package/sam-ba/Config.in.host
Thomas> create mode 100644 package/sam-ba/sam-ba.mk
Thomas> diff --git a/package/Config.in.host b/package/Config.in.host
Thomas> index 6bc828b..1f49e79 100644
Thomas> --- a/package/Config.in.host
Thomas> +++ b/package/Config.in.host
Thomas> @@ -1,6 +1,7 @@
Thomas> menu "Host utilities"
Thomas> source "package/openocd/Config.in.host"
Thomas> +source "package/sam-ba/Config.in.host"
Thomas> source "package/uboot-tools/Config.in.host"
Thomas> endmenu
Thomas> diff --git a/package/sam-ba/Config.in.host b/package/sam-ba/Config.in.host
Thomas> new file mode 100644
Thomas> index 0000000..27ffd12
Thomas> --- /dev/null
Thomas> +++ b/package/sam-ba/Config.in.host
Thomas> @@ -0,0 +1,6 @@
Thomas> +config BR2_PACKAGE_HOST_SAM_BA
Thomas> + bool "host sam-ba"
Thomas> + help
Thomas> + Atmel SAM-BA software provides an open set of tools for
Thomas> + programming the Atmel SAM3, SAM7 and SAM9 ARM-based
Thomas> + microcontrollers.
I added
http://www.at91.com/linux4sam/bin/view/Linux4SAM/SoftwareTools
As upstream URL. Otherwise it looks good - Committed, thanks.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 18+ messages in thread
* [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 6/7] openocd: add host variant Thomas Petazzoni
0 siblings, 1 reply; 18+ 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] 18+ 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
@ 2011-12-29 17:40 ` Thomas Petazzoni
2012-01-02 13:13 ` Thomas De Schampheleire
0 siblings, 1 reply; 18+ 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] 18+ messages in thread
* [Buildroot] [PATCH 6/7] openocd: add host variant
2011-12-29 17:40 ` [Buildroot] [PATCH 6/7] openocd: add host variant Thomas Petazzoni
@ 2012-01-02 13:13 ` Thomas De Schampheleire
2012-01-03 20:46 ` Thomas Petazzoni
0 siblings, 1 reply; 18+ 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] 18+ 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; 18+ 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] 18+ messages in thread
end of thread, other threads:[~2012-02-02 20:14 UTC | newest]
Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-28 17:42 [Buildroot] [pull request v3] Pull request for branch for-2012.02/host-tools Thomas Petazzoni
2012-01-28 17:42 ` [Buildroot] [PATCH 1/7] Add basic config infrastructure for host utilities Thomas Petazzoni
2012-02-02 19:57 ` Peter Korsgaard
2012-01-28 17:42 ` [Buildroot] [PATCH 2/7] uboot-tools: expose host package in menuconfig Thomas Petazzoni
2012-02-02 19:57 ` Peter Korsgaard
2012-01-28 17:42 ` [Buildroot] [PATCH 3/7] libftdi: add host variant Thomas Petazzoni
2012-02-02 19:57 ` Peter Korsgaard
2012-01-28 17:42 ` [Buildroot] [PATCH 4/7] libusb-compat: " Thomas Petazzoni
2012-02-02 20:00 ` Peter Korsgaard
2012-01-28 17:42 ` [Buildroot] [PATCH 5/7] libusb: " Thomas Petazzoni
2012-02-02 20:02 ` Peter Korsgaard
2012-01-28 17:42 ` [Buildroot] [PATCH 6/7] openocd: " Thomas Petazzoni
2012-02-02 20:06 ` Peter Korsgaard
2012-01-28 17:42 ` [Buildroot] [PATCH 7/7] sam-ba: new package with host variant only Thomas Petazzoni
2012-02-02 20:14 ` Peter Korsgaard
-- strict thread matches above, loose matches on Subject: below --
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 6/7] openocd: add host variant Thomas Petazzoni
2012-01-02 13:13 ` Thomas De Schampheleire
2012-01-03 20:46 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox