[Buildroot] Is it possible to override a package from git?

Marco Pastorelli mpastorelli at gmail.com
Wed Jul 9 14:55:53 UTC 2014


Luca, Jérôme,

this is a graceful solution,
thank you so much!

Marco.


2014-07-09 11:05 GMT+02:00 Jérôme Pouiller <jezz at sysmic.org>:

> Hello Luca, Marco,
>
> On Wednesday 09 July 2014 09:33:07 Luca Ceresoli wrote:
> [...]
> > However, when you build the next time, Buildroot will already find
> > <mypkg>-master.tar.gz in the downloaded sourced directory and will not
> > download it again. So before building you have to remove that archive
> > (or the whole download directory).
> >
> > You'll also need to remove the output/build/<mypkg>-master/ directory,
> > or Buildroot will think it already has the sources for the "master"
> > version extracted and won't extract them again.
> >
> > In a nutshell, if you're building in-tree:
> >    rm -f <my_download_dir>/<mypkg>-master.tar.gz            [*]
> >    make my_defconfig
> >    make <MYPKG>_VERSION=master <mypkg>-dirclean all
> You may avoid ths complexity by retreiving commit id of HEAD (also work for
> branches):
>
>   ID=$(git ls-remote <GIT_REPO> HEAD | cut -f 1)
>   make my_defconfig
>   make <MYPKG>_VERSION=$ID all
>
>
>
>
> --
> Jérôme Pouiller, Sysmic
> Embedded Linux specialist
> http://www.sysmic.fr
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20140709/334de696/attachment-0002.html>


More information about the buildroot mailing list