[U-Boot] [RFC PATCH] tools: get-toolchais: a tool to get cross-tools for all architectures

Joe Hershberger joe.hershberger at gmail.com
Tue May 19 20:13:13 CEST 2015


Hi Simon,

On Tue, May 19, 2015 at 12:16 PM, Simon Glass <sjg at chromium.org> wrote:
> Hi Masahiro,
>
> On 18 May 2015 at 23:04, Masahiro Yamada <yamada.masahiro at socionext.com> wrote:
>> Hi Simon,
>>
>>
>> 2015-05-18 2:50 GMT+09:00 Simon Glass <sjg at chromium.org>:
>>> Hi Masahiro,
>>>
>>> On 15 May 2015 at 22:58, Masahiro Yamada <yamada.masahiro at socionext.com>
>>> wrote:
>>>> Hi Joe,
>>>> (added Simon)
>>>>
>>>> 2015-05-16 4:52 GMT+09:00 Joe Hershberger <joe.hershberger at gmail.com>:
>>>>> Hi Masahiro-san,
>>>>>
>>>>> On Fri, May 15, 2015 at 6:01 AM, Masahiro Yamada
>>>>> <yamada.masahiro at socionext.com> wrote:

8< snip >8

>>>>>> This tool intends to be more generic design without hard-coding such
>>>>>> kernel.org things.
>>>>>>
>>>>>> To achieve that, this tool consists of two files:
>>>>>> Python script (this file) and the database file containing URLs of
>>> tarballs.
>>>>>>
>>>>>> We just need to update the latter when new version compilers are
>>> released
>>>>>> (or better compilers are found.) The file is in the form of RFC 822 for
>>>>>> easier editing.
>>>>>
>>>>> Any reason not to just maintain this list on the wiki. It seem this is
>>>>> the primary issue for everyone... not figuring out how to download or
>>>>> extract the toolchain.
>>>>
>>>> I can just note URLs down in README or wiki.
>>>>
>>>> Of course, everyone knows how to download a tarball and extract it, but
>>>> isn't it more convenient to prepare a utility that can do everything for
>>> you?
>>>>
>>>>
>>>>>> The script only uses Python libraries, not relies on external programs
>>>>>> although it displays wget-like log when downloading tarballs. :-)
>>>>>
>>>>> It seems like using wget would be more appropriate. Why reinvent the
>>> wheel?
>>>>
>>>>
>>>> My intention was to not depend on particular external programs like wget,
>>> curl.
>>>>
>>>> But, you are right, we should not reinvent the wheel.
>>>>
>>>> I will replace my implementation with a caller of wget.
>>>
>>> I think urllib2 is a better solution.
>>
>> Now I understand we must depend on "tar" anyway.
>>
>> So my first intention "no external program dependency"  seems impossible
>> (at least on Python 2).
>>
>> I do not mind depending on wget, and it seems easier.
>
> Is wget always installed? Maybe urllib is better just in case.

In my case I do some work on an old distro and on that machine I have
wget, but not python 3.

8< snip >8

Cheers
-Joe


More information about the U-Boot mailing list