diff options
author | John Crispin <john@openwrt.org> | 2014-06-02 12:45:22 +0000 |
---|---|---|
committer | John Crispin <john@openwrt.org> | 2014-06-02 12:45:22 +0000 |
commit | 34106f4a1ad3956963068167861d10e34178022a (patch) | |
tree | 2cf5815d94f01a68fe539159cb10c16d7de477e4 /include/kernel-defaults.mk | |
parent | c77feae6be20c7c7aadaf492260dda7153f10108 (diff) | |
download | mtk-20170518-34106f4a1ad3956963068167861d10e34178022a.zip mtk-20170518-34106f4a1ad3956963068167861d10e34178022a.tar.gz mtk-20170518-34106f4a1ad3956963068167861d10e34178022a.tar.bz2 |
include: Allow git kernel branch selection
This allows the selection of a specific branch in the menuconfig
when using a kernel downloaded from GIT.
Signed-off-by: Mathieu Olivari <mathieu@qca.qualcomm.com>
SVN-Revision: 40946
Diffstat (limited to 'include/kernel-defaults.mk')
-rw-r--r-- | include/kernel-defaults.mk | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/kernel-defaults.mk b/include/kernel-defaults.mk index fd75a3f..f1f5a81 100644 --- a/include/kernel-defaults.mk +++ b/include/kernel-defaults.mk @@ -38,6 +38,10 @@ ifneq ($(strip $(CONFIG_KERNEL_GIT_LOCAL_REPOSITORY)),"") KERNEL_GIT_OPTS+=--reference $(CONFIG_KERNEL_GIT_LOCAL_REPOSITORY) endif +ifneq ($(strip $(CONFIG_KERNEL_GIT_BRANCH)),"") + KERNEL_GIT_OPTS+=--branch $(CONFIG_KERNEL_GIT_BRANCH) +endif + ifeq ($(strip $(CONFIG_EXTERNAL_KERNEL_TREE)),"") ifeq ($(strip $(CONFIG_KERNEL_GIT_CLONE_URI)),"") define Kernel/Prepare/Default |