Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: john <john.osullivan@cloudiumsystems.com>
To: buildroot@busybox.net
Subject: [Buildroot] Adding svn repo option to uboot
Date: Tue, 10 Sep 2013 11:59:03 +0100	[thread overview]
Message-ID: <1378810743.20848.8.camel@john-ubu> (raw)

Hi,

I am trying to add an option to build uboot code from an svn repository
in buildroot-2013.05.
This is what I have done so far in 
boot/uboot I modified Config.In as follows:

===================================================================
--- Config.in	(revision 22)
+++ Config.in	(working copy)
@@ -31,6 +31,12 @@
 config BR2_TARGET_UBOOT_CUSTOM_GIT
 	bool "Custom Git repository"
 
+config BR2_TARGET_UBOOT_CUSTOM_SVN
+	bool "Custom SVN tree"
+	help
+	  This option allows Buildroot to get the UBoot source
+	  code from a SVN repository.
+
 endchoice
 
 config BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE
@@ -50,6 +56,7 @@
 	default $BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE if
BR2_TARGET_UBOOT_CUSTOM_VERSION
 	default "custom"	if BR2_TARGET_UBOOT_CUSTOM_TARBALL
 	default $BR2_TARGET_UBOOT_CUSTOM_GIT_VERSION if
BR2_TARGET_UBOOT_CUSTOM_GIT
+	default $BR2_TARGET_UBOOT_CUSTOM_SVN_VERSION if
BR2_TARGET_UBOOT_CUSTOM_SVN
 
 config BR2_TARGET_UBOOT_CUSTOM_PATCH_DIR
 	string "custom patch dir"
@@ -70,6 +77,22 @@
 
 endif
 
+
+if BR2_TARGET_UBOOT_CUSTOM_SVN
+
+config BR2_TARGET_UBOOT_CUSTOM_SVN_REPO_URL
+	string "URL of custom SVN repository"
+
+
+config BR2_TARGET_UBOOT_CUSTOM_SVN_VERSION
+	string "Custom SVN version"
+	default "HEAD"
+	help
+	  SVN revision to use in the format used by SVN rev-parse,
+	  E.G. a sha id, a tag, branch, ..
+
+endif
+
 choice
 	prompt "U-Boot binary format"
 	default BR2_TARGET_UBOOT_FORMAT_BIN



And the uboot.mk file as follows

===================================================================
--- uboot.mk	(revision 22)
+++ uboot.mk	(working copy)
@@ -19,6 +19,9 @@
 else ifeq ($(BR2_TARGET_UBOOT_CUSTOM_GIT),y)
 UBOOT_SITE        = $(call qstrip,
$(BR2_TARGET_UBOOT_CUSTOM_GIT_REPO_URL))
 UBOOT_SITE_METHOD = git
+else ifeq ($(BR2_TARGET_UBOOT_CUSTOM_SVN),y)
+LINUX_SITE = $(call qstrip,$(BR2_TARGET_UBOOT_CUSTOM_SVN_REPO_URL))
+LINUX_SITE_METHOD = svn
 else
 # Handle stable official U-Boot versions
 UBOOT_SITE    = ftp://ftp.denx.de/pub/u-boot


When I try this I get:
>>> uboot HEAD Downloading
/uboot-HEAD.tar.gz: Scheme missing.
--2013-09-10 11:52:31--  http://sources.buildroot.net//uboot-HEAD.tar.gz
Resolving sources.buildroot.net (sources.buildroot.net)... 176.9.16.109
Connecting to sources.buildroot.net (sources.buildroot.net)|
176.9.16.109|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2013-09-10 11:52:31 ERROR 404: Not Found.

Any suggestions on what else i may need to do or how I could get more
visibility on why this is not working. I was able to do this
successfully for the linux kernel by adding similar rules.

             reply	other threads:[~2013-09-10 10:59 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-10 10:59 john [this message]
2013-09-11  9:13 ` [Buildroot] Adding svn repo option to uboot Thomas Petazzoni

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1378810743.20848.8.camel@john-ubu \
    --to=john.osullivan@cloudiumsystems.com \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox