From: Claudio Laurita <claudio.laurita@integrazionetotale.it>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v2] openocd 0.8.0
Date: Wed, 10 Dec 2014 20:08:54 +0100 [thread overview]
Message-ID: <54889A46.8030103@integrazionetotale.it> (raw)
In-Reply-To: <54876789.8090404@vanguardiasur.com.ar>
Il 09/12/2014 22:20, Ezequiel Garcia ha scritto:
> Hi Claudio,
>
> Shouldn't this patch have a proper commit log?
Hi Ezequiel
thank you for your comments.
This is my first "official" proposal, so, please, guide me through the
right "formal" steps.
I simply followed the instructions found in the manual. Anything missing
is something I didn't understand (or I forgot).
I have a folder with the master git clone, put my new files there,
commit them (locally) and format a patch.
Maybe this is not the right way to go, so, any suggestion to fill the
missing pieces is welcome.
>
> I have a question, see below.
>
> On 11/30/2014 05:35 PM, Claudio Laurita wrote:
> [..]
>> -# Adapters
>> -ifeq ($(BR2_PACKAGE_OPENOCD_FT2XXX),y)
>> -OPENOCD_CONF_OPTS += --enable-ft2232_libftdi
>> +ifeq ($(BR2_PACKAGE_LIBFTDI),y)
>> OPENOCD_DEPENDENCIES += libftdi
>> +HOST_OPENOCD_DEPENDENCIES += host-libftdi
>> +endif
>> +
> Are you sure it's correct to tie a host dependency
> to a target option?
Absolutely not.
It's a mistake that I only partially corrected from the first version of
the patch.
Originally I assumed that the host part was to be built with the same
options of the target part.
Thomas Petazzoni pointed out this bad mistake, but I forgot to correct
this part. Sorry.
> On the other side, the commit fails to build here:
>
> configure: error: hidapi is required for the CMSIS-DAP Compliant Debugger
> package/pkg-generic.mk:167: recipe for target '/home/zeta/buildroot/ciaa/output/build/host-openocd-0.8.0/.stamp_configured' failed
> make: *** [/home/zeta/buildroot/ciaa/output/build/host-openocd-0.8.0/.stamp_configured] Error 1
I really apologize for that. The host part is a disaster.
I was totally concentrated on the target part. Shame on me.
> Any chance we bump openocd with a less invasive patch?
I really didn't want to be invasive, trust me.
But the actual package recipe manages only a minimal part of the options
offered, even at the time of version 5.
I simply tried to make a full recipe to exploit all the actual potential
of the package, as I needed it for my project.
Maybe it's not a good idea. Let's talk about that and find the right way
to go.
But note that the deleted package patches are simply useless with the
actual code, so they are to be deleted anyway. And this is a very big
part of the patch.
I will try to clean all the mistakes in the host part and submit a third
version of the patch in a couple of days.
Claudio
next prev parent reply other threads:[~2014-12-10 19:08 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-30 20:35 [Buildroot] [PATCH v2] openocd 0.8.0 Claudio Laurita
2014-12-03 17:20 ` Vicente Olivert Riera
2014-12-09 21:20 ` Ezequiel Garcia
2014-12-10 19:08 ` Claudio Laurita [this message]
2014-12-10 20:15 ` Ezequiel Garcia
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=54889A46.8030103@integrazionetotale.it \
--to=claudio.laurita@integrazionetotale.it \
--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