Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Dimitrios Siganos <dimitris@siganos.org>
To: buildroot@busybox.net
Subject: [Buildroot] uboot-tools and uboot being separate
Date: Thu, 14 Feb 2013 16:18:32 +0000	[thread overview]
Message-ID: <511D0E58.2040308@siganos.org> (raw)
In-Reply-To: <20130214085749.09ce593b@skate>

On 14/02/13 07:57, Thomas Petazzoni wrote:
> Dear Arnout Vandecappelle,
> 
> On Thu, 14 Feb 2013 00:21:12 +0100, Arnout Vandecappelle wrote:
> 
>>   It's not that it's impossible to solve, it's just inconvenient and 
>> counter-intuitive. It's also inconvenient to have two U-Boot versions
>> in your legal-info output. Just like it's inconvenient to have two
>> linux tarballs.
> 
> Indeed, but what solution do you propose?
> 
> Thomas

The ideal scenario that I am picturing is this.

* Add an option to uboot (let's call it UBOOT_BUILD_ENV_TOOLS), to
additionally do the work that is currently done by uboot-tools.

* Add an option to uboot-tools to make it a "virtual" package (let's
call it UBOOT_TOOLS_VIRTUAL) that tells uboot-tools to do nothing
because uboot will do all the work. The virtual package is needed so
that the dependency chains can lead to uboot.

* Turning on virtual mode in uboot-tools also turns on uboot
UBOOT_BUILD_ENV_TOOLS.

* The uboot-tools virtual package would add uboot as a dependency if
UBOOT_TOOLS_VIRTUAL is on.

I do not have much hands-on experience on this so I could talking
rubbish. Please let me know if I am talking rubbish.

In the mean time, the practical way to ensure building from both sources
is to set:

UBOOT_VERSION equal to UBOOT_TOOLS_VERSION
UBOOT_SITE equal to UBOOT_TOOLS_SITE
UBOOT_METHOD equal to UBOOT_TOOLS_METHOD

However, because uboot has many more options for setting SITE and
METHOD, it is currently not always possible to set them to pull the same
sources without patching buildroot. I currently get uboot from a git repo.

If I created a patch to give uboot-tools the same pull options as the
uboot package, would you accept it (if it passes review of course)?

Regards,
Dimitris

  reply	other threads:[~2013-02-14 16:18 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-13 17:22 [Buildroot] uboot-tools and uboot being separate Dimitrios Siganos
2013-02-13 20:20 ` Thomas Petazzoni
2013-02-13 22:57   ` Arnout Vandecappelle
2013-02-13 23:14     ` Thomas Petazzoni
2013-02-13 23:21       ` Arnout Vandecappelle
2013-02-14  2:15         ` Dimitrios Siganos
2013-02-14  7:57         ` Thomas Petazzoni
2013-02-14 16:18           ` Dimitrios Siganos [this message]
2013-02-14  0:09   ` Dimitrios Siganos

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=511D0E58.2040308@siganos.org \
    --to=dimitris@siganos.org \
    --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