Skip to content

Commit

Permalink
config: Remove KERNEL_GIT_LOCAL_REPOSITORY option
Browse files Browse the repository at this point in the history
The GIT_LOCAL_REPOSITORY option adds the --reference argument to the
git clone kernel command line, if KERNEL_GIT_CLONE_URI is set.

This option is intended to speed-up the repo creation by using local
objets rather than downloading it. However, a local repo can be cloned
much faster by setting GIT_LOCAL_REPOSITORY directly to the local tree.

In that case, git clone will bypass the normal "git aware" transport
mechanism and clone the repository by copying and hardlinking objects
rather than downloading it, resulting in a significant speed increase.

That makes the GIT_LOCAL_REPOSITORY option pretty useless so we'll just
remove it and recommand the usage of KERNEL_GIT_CLONE_URI directly.

Signed-off-by: Mathieu Olivari <mathieu@qca.qualcomm.com>

SVN-Revision: 40944
  • Loading branch information
John Crispin committed Jun 2, 2014
1 parent 0de0310 commit 45e3540
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 16 deletions.
8 changes: 0 additions & 8 deletions config/Config-devel.in
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,6 @@ menuconfig DEVEL
This will create a git clone of the kernel in your build
directory.

config KERNEL_GIT_LOCAL_REPOSITORY
string "Enter path to local reference repository" if DEVEL
default ""
help
Enter a full pathname to a local reference git repository.
In this instance, the --refererence option of git clone will
be used thus creating a quick local clone of your repo.

config BUILD_LOG
bool "Enable log files during build process" if DEVEL
help
Expand Down
10 changes: 2 additions & 8 deletions include/kernel-defaults.mk
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,9 @@ ifeq ($(strip $(CONFIG_EXTERNAL_KERNEL_TREE)),"")
touch $(LINUX_DIR)/.quilt_used
endef
else
ifeq ($(strip $(CONFIG_KERNEL_GIT_LOCAL_REPOSITORY)),"")
define Kernel/Prepare/Default
define Kernel/Prepare/Default
git clone $(CONFIG_KERNEL_GIT_CLONE_URI) $(LINUX_DIR)
endef
else
define Kernel/Prepare/Default
git clone --reference $(CONFIG_KERNEL_GIT_LOCAL_REPOSITORY) $(CONFIG_KERNEL_GIT_CLONE_URI) $(LINUX_DIR)
endef
endif
endef
endif
else
define Kernel/Prepare/Default
Expand Down

0 comments on commit 45e3540

Please sign in to comment.