From: Alexandre Belloni <abelloni@adeneo-embedded.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 7/7] sam-ba: new package with host variant only
Date: Mon, 02 Jan 2012 14:25:35 +0100 [thread overview]
Message-ID: <1325510735.2442.2.camel@emblysd024.adetel.com> (raw)
In-Reply-To: <6bc9d7f888570bd1692acf6b32c8de92f3829640.1325178529.git.thomas.petazzoni@free-electrons.com>
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>
next prev parent reply other threads:[~2012-01-02 13:25 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
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
-- strict thread matches above, loose matches on Subject: below --
2012-01-28 17:42 [Buildroot] [pull request v3] " Thomas Petazzoni
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1325510735.2442.2.camel@emblysd024.adetel.com \
--to=abelloni@adeneo-embedded.com \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox