From mboxrd@z Thu Jan 1 00:00:00 1970 From: Simon Glass Date: Tue, 19 May 2015 12:17:59 -0600 Subject: [U-Boot] [RFC PATCH] tools: get-toolchais: a tool to get cross-tools for all architectures In-Reply-To: References: <1431687670-23515-1-git-send-email-yamada.masahiro@socionext.com> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Joe, On 19 May 2015 at 12:13, Joe Hershberger wrote: > > Hi Simon, > > On Tue, May 19, 2015 at 12:16 PM, Simon Glass wrote: > > Hi Masahiro, > > > > On 18 May 2015 at 23:04, Masahiro Yamada wrote: > >> Hi Simon, > >> > >> > >> 2015-05-18 2:50 GMT+09:00 Simon Glass : > >>> Hi Masahiro, > >>> > >>> On 15 May 2015 at 22:58, Masahiro Yamada > >>> wrote: > >>>> Hi Joe, > >>>> (added Simon) > >>>> > >>>> 2015-05-16 4:52 GMT+09:00 Joe Hershberger : > >>>>> Hi Masahiro-san, > >>>>> > >>>>> On Fri, May 15, 2015 at 6:01 AM, Masahiro Yamada > >>>>> 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 One option there might be Python 2 and urllib2 like buildman? In general it is nice to support older platforms if we can as it reduces friction. Regards, Simon