From mboxrd@z Thu Jan 1 00:00:00 1970 From: Luca Ceresoli Date: Wed, 09 Jul 2014 09:33:07 +0200 Subject: [Buildroot] Is it possible to override a package from git? In-Reply-To: References: Message-ID: <53BCF033.8050006@lucaceresoli.net> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net Dear Marco, Marco Pastorelli wrote: > Hi everybody, > > I fetch my personal packages from my git repo specifying the tag. > Now I would like to set up a nightly build system, so I need to download > the HEAD of my packages repo instead of a specific tag. > > Is there a way to override the tag? You can, although this requires some manual tweaking because it is not typical. It is not typical because Buildroot is generally meant to perform reproducible builds. So it is usual to fetch a tag or SHA-1 from git repos. However in a nightly build system it can make sense. To do that, you should set _VERSION to a branch name. For example _VERSION=master. You can do it also on the command line, without touching your source code: make my_defconfig make _VERSION=master This will fetch the top of the master branch, not a specific tag. However, when you build the next time, Buildroot will already find -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/-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 /-master.tar.gz [*] make my_defconfig make _VERSION=master -dirclean all -- Luca