[Buildroot] Is it possible to override a package from git?
jezz at sysmic.org
Wed Jul 9 09:05:26 UTC 2014
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
ID=$(git ls-remote <GIT_REPO> HEAD | cut -f 1)
make <MYPKG>_VERSION=$ID all
Jérôme Pouiller, Sysmic
Embedded Linux specialist
More information about the buildroot