[Buildroot] can package source be svn?
Thiago A. Corrêa
thiago.correa at gmail.com
Mon Apr 13 19:26:23 UTC 2009
Hi Chris,
On Mon, Apr 13, 2009 at 3:44 PM, Chris Bare <chris at bareflix.com> wrote:
> I thought I saw that buildroot could get the package source files via svn, but
> now I can't find an example of a .mk file that implements this.
> Does this work, and can anyone point me to an example?
Sure, it's a bunch of makefiles, you could run any program or command.
For example, I have a custom "config" package in my tree that updates
some init scripts, snippet can be seen below.
Other than that rule for unpacking the sources, all the rest of the
makefile is quite standard.
I do realize there is an SVN variable somewhere, but I was too lazy to
look it up, it was easier for me to call svn directly. The variable
will just expand to "svn co" anyway.
#############################################################
#
# My Company config scripts
#
#############################################################
CONFIG_VERSION:=
CONFIG_SOURCE:=#My SVN URL, removed for privacy.
CONFIG_DIR:=$(BUILD_DIR)/config$(CONFIG_VERSION)
CONFIG_BINARY:=network
CONFIG_TARGET_BINARY:=/etc/init.d/network
$(CONFIG_DIR)/.unpacked:
svn co $(CONFIG_SOURCE) --username $(MYCOMPANY_SVN_USER)
--password $(MYCOMPANY_SVN_PASSWD) $(CONFIG_DIR)
touch $@
More information about the buildroot
mailing list