diff options
author | Nathan Rossi <nathan@nathanrossi.com> | 2016-09-29 23:02:04 +1000 |
---|---|---|
committer | Nathan Rossi <nathan@nathanrossi.com> | 2016-10-11 22:37:04 +1000 |
commit | 186a5f3d11c61e949a59d060f976c2d94375e7fc (patch) | |
tree | 9f9c9644fe4c777c34092815339ba4a6fe3eda73 | |
parent | 90c73758c8cc4c2ce1093f2aa4b0b167e545ce98 (diff) | |
download | meta-xilinx-186a5f3d11c61e949a59d060f976c2d94375e7fc.tar.gz |
linux-xlnx.inc: Use KBRANCH, setting it to "" for branchless
The linux-yocto recipe and metadata tools handle branchless source.
Letting KBRANCH = "master" for nobranch checkouts is not needed any
more.
Change all uses of SRCBRANCH to KBRANCH and set KBRANCH to the branch or
empty by default.
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 | 4 |
2 files changed, 2 insertions, 3 deletions
diff --git a/recipes-kernel/linux/linux-xlnx-dev.bb b/recipes-kernel/linux/linux-xlnx-dev.bb index 42979bab..27dfd39e 100644 --- a/recipes-kernel/linux/linux-xlnx-dev.bb +++ b/recipes-kernel/linux/linux-xlnx-dev.bb | |||
@@ -4,7 +4,6 @@ | |||
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}" | ||
8 | 7 | ||
9 | # Use the SRCREV for the last tagged revision of linux-xlnx. | 8 | # Use the SRCREV for the last tagged revision of linux-xlnx. |
10 | SRCREV ?= '${@oe.utils.conditional("PREFERRED_PROVIDER_virtual/kernel", "linux-xlnx-dev", "${AUTOREV}", "629041605b93343ad2e8971ceaac3edcef0b043b", d)}' | 9 | SRCREV ?= '${@oe.utils.conditional("PREFERRED_PROVIDER_virtual/kernel", "linux-xlnx-dev", "${AUTOREV}", "629041605b93343ad2e8971ceaac3edcef0b043b", d)}' |
diff --git a/recipes-kernel/linux/linux-xlnx.inc b/recipes-kernel/linux/linux-xlnx.inc index 073070f6..4ec8826f 100644 --- a/recipes-kernel/linux/linux-xlnx.inc +++ b/recipes-kernel/linux/linux-xlnx.inc | |||
@@ -4,8 +4,8 @@ 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, by default allow for the use of SRCREV pointing to orphaned tags/commits | 6 | # Sources, by default allow for the use of SRCREV pointing to orphaned tags/commits |
7 | SRCBRANCH ?= "" | 7 | KBRANCH ?= "" |
8 | SRCBRANCHARG = "${@['nobranch=1', 'branch=${SRCBRANCH}'][d.getVar('SRCBRANCH', True) != '']}" | 8 | SRCBRANCHARG = "${@['nobranch=1', 'branch=${KBRANCH}'][d.getVar('KBRANCH', True) != '']}" |
9 | 9 | ||
10 | FILESEXTRAPATHS_prepend := "${THISDIR}/linux-xlnx:" | 10 | FILESEXTRAPATHS_prepend := "${THISDIR}/linux-xlnx:" |
11 | SRC_URI = " \ | 11 | SRC_URI = " \ |