aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-kernel/linux/linux-xlnx.inc
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-kernel/linux/linux-xlnx.inc')
-rw-r--r--recipes-kernel/linux/linux-xlnx.inc8
1 files changed, 5 insertions, 3 deletions
diff --git a/recipes-kernel/linux/linux-xlnx.inc b/recipes-kernel/linux/linux-xlnx.inc
index b0a9c6b7..60dbacf4 100644
--- a/recipes-kernel/linux/linux-xlnx.inc
+++ b/recipes-kernel/linux/linux-xlnx.inc
@@ -3,11 +3,13 @@
LINUX_VERSION_EXTENSION ?= "-xilinx"
PV = "${LINUX_VERSION}${LINUX_VERSION_EXTENSION}+git${SRCPV}"
-# Sources
-KBRANCH ?= "master"
+# Sources, by default allow for the use of SRCREV pointing to orphaned tags/commits
+SRCBRANCH ?= ""
+SRCBRANCHARG = "${@['nobranch=1', 'branch=${SRCBRANCH}'][d.getVar('SRCBRANCH', True) != '']}"
+
FILESEXTRAPATHS_prepend := "${THISDIR}/linux-xlnx:"
SRC_URI = " \
- git://github.com/Xilinx/linux-xlnx.git;protocol=https;branch=${KBRANCH} \
+ git://github.com/Xilinx/linux-xlnx.git;protocol=https;${SRCBRANCHARG} \
file://xilinx-base;type=kmeta;destsuffix=xilinx-base \
"