diff options
author | Nathan Rossi <nathan@nathanrossi.com> | 2015-11-04 17:33:30 +1000 |
---|---|---|
committer | Nathan Rossi <nathan@nathanrossi.com> | 2015-11-04 17:33:30 +1000 |
commit | 5074af2328d13c23a48ba8802c220d5017d41de6 (patch) | |
tree | 0e6431649146e0245eb0891e10788b495d745a6f | |
parent | e840b27de7b1e5c88c14b977c4aa33e8036cc53f (diff) | |
download | meta-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.bb | 1 | ||||
-rw-r--r-- | recipes-kernel/linux/linux-xlnx.inc | 8 | ||||
-rw-r--r-- | recipes-kernel/linux/linux-xlnx_3.14.bb | 1 | ||||
-rw-r--r-- | recipes-kernel/linux/linux-xlnx_3.19.bb | 1 |
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 | ||
6 | KBRANCH ?= "master" | 6 | KBRANCH ?= "master" |
7 | SRCBRANCH = "${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. |
9 | SRCREV ?= '${@oe.utils.conditional("PREFERRED_PROVIDER_virtual/kernel", "linux-xlnx-dev", "${AUTOREV}", "3821a7bfdf7a4c697cac62f0157d8bf49467ea67", d)}' | 10 | SRCREV ?= '${@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 @@ | |||
3 | LINUX_VERSION_EXTENSION ?= "-xilinx" | 3 | LINUX_VERSION_EXTENSION ?= "-xilinx" |
4 | PV = "${LINUX_VERSION}${LINUX_VERSION_EXTENSION}+git${SRCPV}" | 4 | PV = "${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 |
7 | KBRANCH ?= "master" | 7 | SRCBRANCH ?= "" |
8 | SRCBRANCHARG = "${@['nobranch=1', 'branch=${SRCBRANCH}'][d.getVar('SRCBRANCH', True) != '']}" | ||
9 | |||
8 | FILESEXTRAPATHS_prepend := "${THISDIR}/linux-xlnx:" | 10 | FILESEXTRAPATHS_prepend := "${THISDIR}/linux-xlnx:" |
9 | SRC_URI = " \ | 11 | SRC_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 |
2 | LINUX_VERSION = "3.14" | 2 | LINUX_VERSION = "3.14" |
3 | KBRANCH ?= "xlnx_3.14" | ||
4 | SRCREV ?= "2b48a8aeea7367359f9eebe55c4a09a05227f32b" | 3 | SRCREV ?= "2b48a8aeea7367359f9eebe55c4a09a05227f32b" |
5 | 4 | ||
6 | include linux-xlnx.inc | 5 | include 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 @@ | |||
1 | LINUX_VERSION = "3.19" | 1 | LINUX_VERSION = "3.19" |
2 | KBRANCH ?= "master" | ||
3 | # This points at the 'xilinx-v2015.2' tag | 2 | # This points at the 'xilinx-v2015.2' tag |
4 | SRCREV ?= "3f30b3337af61f1ed98f7185e37c6bf9202b3204" | 3 | SRCREV ?= "3f30b3337af61f1ed98f7185e37c6bf9202b3204" |
5 | 4 | ||