summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNathan Rossi <nathan@nathanrossi.com>2015-11-04 17:33:30 +1000
committerNathan Rossi <nathan@nathanrossi.com>2015-11-04 17:33:30 +1000
commit5074af2328d13c23a48ba8802c220d5017d41de6 (patch)
tree0e6431649146e0245eb0891e10788b495d745a6f
parente840b27de7b1e5c88c14b977c4aa33e8036cc53f (diff)
downloadmeta-xilinx-5074af2328d13c23a48ba8802c220d5017d41de6.tar.gz
linux-xlnx: Default to branchless checkout
The linux-xlnx git repository contains tags/commits that are orphaned and are not located on any branch. To handle this for the future where existing commits/tags may become orphaned setup the SRC_URI with nobranch=1 by default except in the case where tracking a branch instead of a specific commit. Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
-rw-r--r--recipes-kernel/linux/linux-xlnx-dev.bb1
-rw-r--r--recipes-kernel/linux/linux-xlnx.inc8
-rw-r--r--recipes-kernel/linux/linux-xlnx_3.14.bb1
-rw-r--r--recipes-kernel/linux/linux-xlnx_3.19.bb1
4 files changed, 6 insertions, 5 deletions
diff --git a/recipes-kernel/linux/linux-xlnx-dev.bb b/recipes-kernel/linux/linux-xlnx-dev.bb
index c729ee90..a1584640 100644
--- a/recipes-kernel/linux/linux-xlnx-dev.bb
+++ b/recipes-kernel/linux/linux-xlnx-dev.bb
@@ -4,6 +4,7 @@
4# To enable this recipe, set PREFERRED_PROVIDER_virtual/kernel = "linux-xlnx-dev" 4# To enable this recipe, set PREFERRED_PROVIDER_virtual/kernel = "linux-xlnx-dev"
5 5
6KBRANCH ?= "master" 6KBRANCH ?= "master"
7SRCBRANCH = "${KBRANCH}"
7 8
8# Use the SRCREV for the last tagged revision of linux-xlnx. 9# Use the SRCREV for the last tagged revision of linux-xlnx.
9SRCREV ?= '${@oe.utils.conditional("PREFERRED_PROVIDER_virtual/kernel", "linux-xlnx-dev", "${AUTOREV}", "3821a7bfdf7a4c697cac62f0157d8bf49467ea67", d)}' 10SRCREV ?= '${@oe.utils.conditional("PREFERRED_PROVIDER_virtual/kernel", "linux-xlnx-dev", "${AUTOREV}", "3821a7bfdf7a4c697cac62f0157d8bf49467ea67", d)}'
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 @@
3LINUX_VERSION_EXTENSION ?= "-xilinx" 3LINUX_VERSION_EXTENSION ?= "-xilinx"
4PV = "${LINUX_VERSION}${LINUX_VERSION_EXTENSION}+git${SRCPV}" 4PV = "${LINUX_VERSION}${LINUX_VERSION_EXTENSION}+git${SRCPV}"
5 5
6# Sources 6# Sources, by default allow for the use of SRCREV pointing to orphaned tags/commits
7KBRANCH ?= "master" 7SRCBRANCH ?= ""
8SRCBRANCHARG = "${@['nobranch=1', 'branch=${SRCBRANCH}'][d.getVar('SRCBRANCH', True) != '']}"
9
8FILESEXTRAPATHS_prepend := "${THISDIR}/linux-xlnx:" 10FILESEXTRAPATHS_prepend := "${THISDIR}/linux-xlnx:"
9SRC_URI = " \ 11SRC_URI = " \
10 git://github.com/Xilinx/linux-xlnx.git;protocol=https;branch=${KBRANCH} \ 12 git://github.com/Xilinx/linux-xlnx.git;protocol=https;${SRCBRANCHARG} \
11 file://xilinx-base;type=kmeta;destsuffix=xilinx-base \ 13 file://xilinx-base;type=kmeta;destsuffix=xilinx-base \
12 " 14 "
13 15
diff --git a/recipes-kernel/linux/linux-xlnx_3.14.bb b/recipes-kernel/linux/linux-xlnx_3.14.bb
index 71827067..e6d96ed9 100644
--- a/recipes-kernel/linux/linux-xlnx_3.14.bb
+++ b/recipes-kernel/linux/linux-xlnx_3.14.bb
@@ -1,6 +1,5 @@
1# Kernel version and SRCREV correspond to: xlnx_3.14 branch 1# Kernel version and SRCREV correspond to: xlnx_3.14 branch
2LINUX_VERSION = "3.14" 2LINUX_VERSION = "3.14"
3KBRANCH ?= "xlnx_3.14"
4SRCREV ?= "2b48a8aeea7367359f9eebe55c4a09a05227f32b" 3SRCREV ?= "2b48a8aeea7367359f9eebe55c4a09a05227f32b"
5 4
6include linux-xlnx.inc 5include linux-xlnx.inc
diff --git a/recipes-kernel/linux/linux-xlnx_3.19.bb b/recipes-kernel/linux/linux-xlnx_3.19.bb
index 24b10c0b..4f92a394 100644
--- a/recipes-kernel/linux/linux-xlnx_3.19.bb
+++ b/recipes-kernel/linux/linux-xlnx_3.19.bb
@@ -1,5 +1,4 @@
1LINUX_VERSION = "3.19" 1LINUX_VERSION = "3.19"
2KBRANCH ?= "master"
3# This points at the 'xilinx-v2015.2' tag 2# This points at the 'xilinx-v2015.2' tag
4SRCREV ?= "3f30b3337af61f1ed98f7185e37c6bf9202b3204" 3SRCREV ?= "3f30b3337af61f1ed98f7185e37c6bf9202b3204"
5 4