diff mbox

[1/1] Add SVN support for kernel and u-boot

Message ID CAGC_hNkOAuAHUSMy-KdNpYv65kpfKUGPd1ybsocNe=4iJNMnuQ@mail.gmail.com
State Changes Requested
Headers show

Commit Message

Pauli Sundberg March 13, 2016, 6:15 p.m. UTC
Signed-off-by: Pauli Sundberg <susundberg@gmail.com>
---
 boot/uboot/Config.in |  7 +++++--
 boot/uboot/uboot.mk  |  4 +++-
 linux/Config.in      | 11 +++++++++--
 linux/linux.mk       |  3 +++
 4 files changed, 20 insertions(+), 5 deletions(-)

Comments

Peter Korsgaard March 13, 2016, 8:38 p.m. UTC | #1
>>>>> "Pauli" == Pauli Sundberg <susundberg@gmail.com> writes:

 > Signed-off-by: Pauli Sundberg <susundberg@gmail.com>
 > ---
 >  boot/uboot/Config.in |  7 +++++--
 >  boot/uboot/uboot.mk  |  4 +++-
 >  linux/Config.in      | 11 +++++++++--
 >  linux/linux.mk       |  3 +++
 >  4 files changed, 20 insertions(+), 5 deletions(-)

Thanks, can you please split this up in two patches - One for u-boot and
one for the Linux kernel?

I cannot apply the patch. It seems like your mailer has converted tabs
to spaces. Please verify that you mailer doesn't corrupt patches by
sending them to yourself and checking that they can be applied.


 > diff --git a/boot/uboot/Config.in b/boot/uboot/Config.in
 > index 4a6dc56..888ee38 100644
 > --- a/boot/uboot/Config.in
 > +++ b/boot/uboot/Config.in
 > @@ -51,6 +51,9 @@ config BR2_TARGET_UBOOT_CUSTOM_TARBALL
 >  config BR2_TARGET_UBOOT_CUSTOM_GIT
 >      bool "Custom Git repository"

 > +config BR2_TARGET_UBOOT_CUSTOM_SVN
 > +    bool "Custom SVN repository"
 > +
 >  config BR2_TARGET_UBOOT_CUSTOM_HG
 >      bool "Custom Mercurial repository"

Please keep this alphabetically sorted, so _SVN after _HG.


 > @@ -64,7 +67,7 @@ config BR2_TARGET_UBOOT_CUSTOM_TARBALL_LOCATION
 >      string "URL of custom U-Boot tarball"
 >      depends on BR2_TARGET_UBOOT_CUSTOM_TARBALL

 > -if BR2_TARGET_UBOOT_CUSTOM_GIT || BR2_TARGET_UBOOT_CUSTOM_HG
 > +if BR2_TARGET_UBOOT_CUSTOM_GIT || BR2_TARGET_UBOOT_CUSTOM_HG ||
 > BR2_TARGET_UBOOT_CUSTOM_SVN

 >  config BR2_TARGET_UBOOT_CUSTOM_REPO_URL
 >      string "URL of custom repository"
 > @@ -88,7 +91,7 @@ config BR2_TARGET_UBOOT_VERSION
 >          if BR2_TARGET_UBOOT_CUSTOM_VERSION
 >      default "custom"    if BR2_TARGET_UBOOT_CUSTOM_TARBALL
 >      default BR2_TARGET_UBOOT_CUSTOM_REPO_VERSION \
 > -        if BR2_TARGET_UBOOT_CUSTOM_GIT || BR2_TARGET_UBOOT_CUSTOM_HG
 > +        if BR2_TARGET_UBOOT_CUSTOM_GIT || BR2_TARGET_UBOOT_CUSTOM_HG
 > || BR2_TARGET_UBOOT_CUSTOM_SVN

Please also update the _CUSTOM_REPO_VERSION help text with svn info.


 >  config BR2_TARGET_UBOOT_CUSTOM_PATCH_DIR
 >      string "custom patch dir"
 > diff --git a/boot/uboot/uboot.mk b/boot/uboot/uboot.mk
 > index d539b31..b22db1c 100644
 > --- a/boot/uboot/uboot.mk
 > +++ b/boot/uboot/uboot.mk
 > @@ -3,7 +3,6 @@
 >  # uboot
 >  #
 >  ################################################################################
 > -
 >  UBOOT_VERSION = $(call qstrip,$(BR2_TARGET_UBOOT_VERSION))

Please don't add unrelated changes.



>  UBOOT_BOARD_NAME = $(call qstrip,$(BR2_TARGET_UBOOT_BOARDNAME))

 > @@ -21,6 +20,9 @@ BR_NO_CHECK_HASH_FOR += $(UBOOT_SOURCE)
 >  else ifeq ($(BR2_TARGET_UBOOT_CUSTOM_GIT),y)
 >  UBOOT_SITE = $(call qstrip,$(BR2_TARGET_UBOOT_CUSTOM_REPO_URL))
 >  UBOOT_SITE_METHOD = git
 > +else ifeq ($(BR2_TARGET_UBOOT_CUSTOM_SVN),y)
 > +UBOOT_SITE = $(call qstrip,$(BR2_TARGET_UBOOT_CUSTOM_REPO_URL))
 > +UBOOT_SITE_METHOD = svn
 >  else ifeq ($(BR2_TARGET_UBOOT_CUSTOM_HG),y)

Please also keep this in the same order as Config.in, so _SVN after _HG.


>  UBOOT_SITE = $(call qstrip,$(BR2_TARGET_UBOOT_CUSTOM_REPO_URL))
 >  UBOOT_SITE_METHOD = hg
 > diff --git a/linux/Config.in b/linux/Config.in
 > index 6dfc9fe..3cd3c70 100644
 > --- a/linux/Config.in
 > +++ b/linux/Config.in
 > @@ -69,8 +69,15 @@ config BR2_LINUX_KERNEL_CUSTOM_LOCAL
 >        This option allows Buildroot to get the Linux kernel source
 >        code from a local directory.

 > +config BR2_LINUX_KERNEL_CUSTOM_SVN
 > +    bool "Custom SVN repository"
 > +    help
 > +      This option allows Buildroot to get the Linux kernel source
 > +      code from a SVN repository.
 > +

This should go after the _CUSTOM_HG option.

Please add svn info to the _CUSTOM_REPO_VERSION option.


> +++ b/linux/linux.mk
 > @@ -20,6 +20,9 @@ LINUX_SITE_METHOD = local
 >  else ifeq ($(BR2_LINUX_KERNEL_CUSTOM_GIT),y)
 >  LINUX_SITE = $(call qstrip,$(BR2_LINUX_KERNEL_CUSTOM_REPO_URL))
 >  LINUX_SITE_METHOD = git
 > +else ifeq ($(BR2_LINUX_KERNEL_CUSTOM_SVN),y)
 > +LINUX_SITE = $(call qstrip,$(BR2_LINUX_KERNEL_CUSTOM_REPO_URL))
 > +LINUX_SITE_METHOD = svn
 >  else ifeq ($(BR2_LINUX_KERNEL_CUSTOM_HG),y)
 >  LINUX_SITE = $(call qstrip,$(BR2_LINUX_KERNEL_CUSTOM_REPO_URL))
 >  LINUX_SITE_METHOD = hg

Please put the _SVN logic after _HG.
Pauli Sundberg March 17, 2016, 5:07 p.m. UTC | #2
Hi all! This is second round to submit patch for uboot and kernel to re-add the SVN support. Thanks for Peter Korsgaard from the previous feedback.

Pauli Sundberg (2):
  Add SVN repository support for u-boot
  Add SVN repository support for kernel

 boot/uboot/Config.in |  9 ++++++---
 boot/uboot/uboot.mk  |  4 +++-
 linux/Config.in      | 12 +++++++++---
 linux/linux.mk       |  3 +++
 4 files changed, 21 insertions(+), 7 deletions(-)
diff mbox

Patch

diff --git a/boot/uboot/Config.in b/boot/uboot/Config.in
index 4a6dc56..888ee38 100644
--- a/boot/uboot/Config.in
+++ b/boot/uboot/Config.in
@@ -51,6 +51,9 @@  config BR2_TARGET_UBOOT_CUSTOM_TARBALL
 config BR2_TARGET_UBOOT_CUSTOM_GIT
     bool "Custom Git repository"

+config BR2_TARGET_UBOOT_CUSTOM_SVN
+    bool "Custom SVN repository"
+
 config BR2_TARGET_UBOOT_CUSTOM_HG
     bool "Custom Mercurial repository"

@@ -64,7 +67,7 @@  config BR2_TARGET_UBOOT_CUSTOM_TARBALL_LOCATION
     string "URL of custom U-Boot tarball"
     depends on BR2_TARGET_UBOOT_CUSTOM_TARBALL

-if BR2_TARGET_UBOOT_CUSTOM_GIT || BR2_TARGET_UBOOT_CUSTOM_HG
+if BR2_TARGET_UBOOT_CUSTOM_GIT || BR2_TARGET_UBOOT_CUSTOM_HG ||
BR2_TARGET_UBOOT_CUSTOM_SVN

 config BR2_TARGET_UBOOT_CUSTOM_REPO_URL
     string "URL of custom repository"
@@ -88,7 +91,7 @@  config BR2_TARGET_UBOOT_VERSION
         if BR2_TARGET_UBOOT_CUSTOM_VERSION
     default "custom"    if BR2_TARGET_UBOOT_CUSTOM_TARBALL
     default BR2_TARGET_UBOOT_CUSTOM_REPO_VERSION \
-        if BR2_TARGET_UBOOT_CUSTOM_GIT || BR2_TARGET_UBOOT_CUSTOM_HG
+        if BR2_TARGET_UBOOT_CUSTOM_GIT || BR2_TARGET_UBOOT_CUSTOM_HG
|| BR2_TARGET_UBOOT_CUSTOM_SVN

 config BR2_TARGET_UBOOT_CUSTOM_PATCH_DIR
     string "custom patch dir"
diff --git a/boot/uboot/uboot.mk b/boot/uboot/uboot.mk
index d539b31..b22db1c 100644
--- a/boot/uboot/uboot.mk
+++ b/boot/uboot/uboot.mk
@@ -3,7 +3,6 @@ 
 # uboot
 #
 ################################################################################
-
 UBOOT_VERSION = $(call qstrip,$(BR2_TARGET_UBOOT_VERSION))
 UBOOT_BOARD_NAME = $(call qstrip,$(BR2_TARGET_UBOOT_BOARDNAME))

@@ -21,6 +20,9 @@  BR_NO_CHECK_HASH_FOR += $(UBOOT_SOURCE)
 else ifeq ($(BR2_TARGET_UBOOT_CUSTOM_GIT),y)
 UBOOT_SITE = $(call qstrip,$(BR2_TARGET_UBOOT_CUSTOM_REPO_URL))
 UBOOT_SITE_METHOD = git
+else ifeq ($(BR2_TARGET_UBOOT_CUSTOM_SVN),y)
+UBOOT_SITE = $(call qstrip,$(BR2_TARGET_UBOOT_CUSTOM_REPO_URL))
+UBOOT_SITE_METHOD = svn
 else ifeq ($(BR2_TARGET_UBOOT_CUSTOM_HG),y)
 UBOOT_SITE = $(call qstrip,$(BR2_TARGET_UBOOT_CUSTOM_REPO_URL))
 UBOOT_SITE_METHOD = hg
diff --git a/linux/Config.in b/linux/Config.in
index 6dfc9fe..3cd3c70 100644
--- a/linux/Config.in
+++ b/linux/Config.in
@@ -69,8 +69,15 @@  config BR2_LINUX_KERNEL_CUSTOM_LOCAL
       This option allows Buildroot to get the Linux kernel source
       code from a local directory.

+config BR2_LINUX_KERNEL_CUSTOM_SVN
+    bool "Custom SVN repository"
+    help
+      This option allows Buildroot to get the Linux kernel source
+      code from a SVN repository.
+
 endchoice

+
 config BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE
     string "Kernel version"
     depends on BR2_LINUX_KERNEL_CUSTOM_VERSION
@@ -79,7 +86,7 @@  config BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION
     string "URL of custom kernel tarball"
     depends on BR2_LINUX_KERNEL_CUSTOM_TARBALL

-if BR2_LINUX_KERNEL_CUSTOM_GIT || BR2_LINUX_KERNEL_CUSTOM_HG
+if BR2_LINUX_KERNEL_CUSTOM_GIT || BR2_LINUX_KERNEL_CUSTOM_HG ||
BR2_LINUX_KERNEL_CUSTOM_SVN

 config BR2_LINUX_KERNEL_CUSTOM_REPO_URL
     string "URL of custom repository"
@@ -109,7 +116,7 @@  config BR2_LINUX_KERNEL_VERSION
         if BR2_LINUX_KERNEL_CUSTOM_VERSION
     default "custom" if BR2_LINUX_KERNEL_CUSTOM_TARBALL
     default BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION \
-        if BR2_LINUX_KERNEL_CUSTOM_GIT || BR2_LINUX_KERNEL_CUSTOM_HG
+        if BR2_LINUX_KERNEL_CUSTOM_GIT || BR2_LINUX_KERNEL_CUSTOM_HG
|| BR2_LINUX_KERNEL_CUSTOM_SVN
     default "custom" if BR2_LINUX_KERNEL_CUSTOM_LOCAL

 #
diff --git a/linux/linux.mk b/linux/linux.mk
index 7e20255..1479903 100644
--- a/linux/linux.mk
+++ b/linux/linux.mk
@@ -20,6 +20,9 @@  LINUX_SITE_METHOD = local
 else ifeq ($(BR2_LINUX_KERNEL_CUSTOM_GIT),y)
 LINUX_SITE = $(call qstrip,$(BR2_LINUX_KERNEL_CUSTOM_REPO_URL))
 LINUX_SITE_METHOD = git
+else ifeq ($(BR2_LINUX_KERNEL_CUSTOM_SVN),y)
+LINUX_SITE = $(call qstrip,$(BR2_LINUX_KERNEL_CUSTOM_REPO_URL))
+LINUX_SITE_METHOD = svn
 else ifeq ($(BR2_LINUX_KERNEL_CUSTOM_HG),y)
 LINUX_SITE = $(call qstrip,$(BR2_LINUX_KERNEL_CUSTOM_REPO_URL))
 LINUX_SITE_METHOD = hg