[Buildroot] [PATCH v2] buildroot:download: Add option to download SVN or GIT repository with version control information.

Quotient Remainder quotientvremainder at gmail.com
Thu Dec 16 14:19:17 UTC 2010


Hello Sonic,

I've done a bit of work in this area, but it's now so outdated (in
before Maxime's changes, although vaguely based on the same approach)
that the patches will not apply to the current HEAD.  I will certainly
share these if anyone's interested.  They'd probably apply to 2010.08.

I have a few observations and questions based on the problems I
encountered.

Ar Déar, 2010-12-16 ag 17:49 +0800, scríobh Sonic Zhang:
> This patch adds an option BR2_CHECKOUT_SOURCE_FOR_DEVELOPMENT to checkout the
> source with version control information. This option is disabled by default.
> 

What if you only want to have working copies of some of the
repositories, not all?

> +	if [ "$(BR2_CHECKOUT_SOURCE_FOR_DEVELOPMENT)" = "y" ] ; then \
> +		GITCMD="$(GIT) checkout -b $($(PKG)_BRANCH) $($(PKG)_DL_VERSION)" ; \
> +		TARCMD="$(TAR) czf $($(PKG)_SOURCE) $($(PKG)_BASE_NAME)/" ; \

Where does $($(PKG)_BRANCH) get its value?


An finally, when you make a change in your repository working copy, how
does this change get into $(BUILD_DIR) so it's part of the build?


As I say, I have found a way to do these but it's not elegant and will
probably not be suitable for inclusion in mainline without serious
restructuring.




More information about the buildroot mailing list