Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
L
lede-mikrotik
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Johannes Rudolph
lede-mikrotik
Commits
86ac8bc7
Commit
86ac8bc7
authored
16 years ago
by
Hamish Guthrie
Browse files
Options
Downloads
Patches
Plain Diff
Adds support for using a local clone of a git tree
SVN-Revision: 12941
parent
6e850592
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Config.in
+20
-0
20 additions, 0 deletions
Config.in
include/kernel-defaults.mk
+16
-4
16 additions, 4 deletions
include/kernel-defaults.mk
with
36 additions
and
4 deletions
Config.in
+
20
−
0
View file @
86ac8bc7
...
@@ -159,6 +159,26 @@ config EXTERNAL_KERNEL_TREE
...
@@ -159,6 +159,26 @@ config EXTERNAL_KERNEL_TREE
prompt "Use external kernel tree" if BUILDOPTS
prompt "Use external kernel tree" if BUILDOPTS
default ""
default ""
config KERNEL_GIT_CLONE_URI
string
prompt "Enter git repository to clone" if BUILDOPTS
default ""
help
Enter the full git repository path i.e.:
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git
This will create a git clone of the kernel in your build
directory.
config KERNEL_GIT_LOCAL_REPOSITORY
string
prompt "Enter path to local reference repository" if BUILDOPTS
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.
source "toolchain/Config.in"
source "toolchain/Config.in"
source "target/imagebuilder/Config.in"
source "target/imagebuilder/Config.in"
...
...
This diff is collapsed.
Click to expand it.
include/kernel-defaults.mk
+
16
−
4
View file @
86ac8bc7
...
@@ -34,19 +34,31 @@ endif
...
@@ -34,19 +34,31 @@ endif
# defined in quilt.mk
# defined in quilt.mk
Kernel/Patch
:
=$(Kernel/Patch/Default)
Kernel/Patch
:
=$(Kernel/Patch/Default)
ifeq
($(strip $(CONFIG_EXTERNAL_KERNEL_TREE)),"")
ifeq
($(strip $(CONFIG_EXTERNAL_KERNEL_TREE)),"")
define
Kernel/Prepare/Default
ifeq
($(strip $(CONFIG_KERNEL_GIT_CLONE_URI)),"")
define
Kernel/Prepare/Default
bzcat
$(DL_DIR)/$(LINUX_SOURCE)
|
$(TAR)
-C
$(KERNEL_BUILD_DIR)
$(TAR_OPTIONS)
bzcat
$(DL_DIR)/$(LINUX_SOURCE)
|
$(TAR)
-C
$(KERNEL_BUILD_DIR)
$(TAR_OPTIONS)
$(Kernel/Patch)
$(Kernel/Patch)
touch
$(LINUX_DIR)/.quilt_used
touch
$(LINUX_DIR)/.quilt_used
endef
endef
else
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
endif
else
define
Kernel/Prepare/Default
mkdir
-p
$(KERNEL_BUILD_DIR)
mkdir
-p
$(KERNEL_BUILD_DIR)
if
[
-d
$(LINUX_DIR)
];
then
\
if
[
-d
$(LINUX_DIR)
];
then
\
rmdir
$(LINUX_DIR);
\
rmdir
$(LINUX_DIR);
\
fi
fi
ln
-s
$(CONFIG_EXTERNAL_KERNEL_TREE)
$(LINUX_DIR)
ln
-s
$(CONFIG_EXTERNAL_KERNEL_TREE)
$(LINUX_DIR)
endef
endef
endif
endif
ifeq
($(KERNEL),2.6)
ifeq
($(KERNEL),2.6)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment