[meta-xilinx] [meta-xilinx-tools][rel-v2016.3][PATCH] embeddedsw repo: Fix unreachable tag or branch

Manjukumar Matha manjukumar.harthikote-matha at xilinx.com
Thu Dec 22 12:26:31 PST 2016


This patch fixes the issue of unreachable tag or branch in embeddedsw
repo

Signed-off-by: Manjukumar Matha <manjukumar.harthikote-matha at xilinx.com>
---
 recipes-fsbl/fsbl/fsbl_git.bb        | 8 ++++++--
 recipes-fsboot/fsboot/fs-boot_git.bb | 8 ++++++--
 recipes-pmu/pmu/pmu-firmware_git.bb  | 8 ++++++--
 3 files changed, 18 insertions(+), 6 deletions(-)

diff --git a/recipes-fsbl/fsbl/fsbl_git.bb b/recipes-fsbl/fsbl/fsbl_git.bb
index 03a329d..cc629ac 100644
--- a/recipes-fsbl/fsbl/fsbl_git.bb
+++ b/recipes-fsbl/fsbl/fsbl_git.bb
@@ -8,8 +8,12 @@ PROVIDES = "virtual/fsbl"
 inherit xsctapp xsctyaml deploy
 
 S = "${WORKDIR}/git"
-BRANCH = "master"
-SRC_URI = "git://github.com/Xilinx/embeddedsw.git;protocol=https;branch=${BRANCH}"
+
+# Sources, by default allow for the use of SRCREV pointing to orphaned tags/commits
+ESWBRANCH ?= ""
+SRCBRANCHARG = "${@['nobranch=1', 'branch=${ESWBRANCH}'][d.getVar('ESWBRANCH', True) != '']}"
+
+SRC_URI = "git://github.com/Xilinx/embeddedsw.git;protocol=https;${SRCBRANCHARG}"
 
 # This points to xilinx-v2016.3 tag
 SRCREV ?= "879d70d540d97747ecd694d61878e22846399f65"
diff --git a/recipes-fsboot/fsboot/fs-boot_git.bb b/recipes-fsboot/fsboot/fs-boot_git.bb
index 0171174..df67425 100644
--- a/recipes-fsboot/fsboot/fs-boot_git.bb
+++ b/recipes-fsboot/fsboot/fs-boot_git.bb
@@ -11,8 +11,12 @@ COMPATIBLE_MACHINE = "^$"
 COMPATIBLE_MACHINE_microblaze = "microblaze"
 
 S = "${WORKDIR}/git"
-BRANCH = "master"
-SRC_URI = "git://github.com/Xilinx/embeddedsw.git;protocol=https;branch=${BRANCH}"
+
+# Sources, by default allow for the use of SRCREV pointing to orphaned tags/commits
+ESWBRANCH ?= ""
+SRCBRANCHARG = "${@['nobranch=1', 'branch=${ESWBRANCH}'][d.getVar('ESWBRANCH', True) != '']}"
+
+SRC_URI = "git://github.com/Xilinx/embeddedsw.git;protocol=https;${SRCBRANCHARG}"
 
 # This points to xilinx-v2016.3 tag
 SRCREV ?= "879d70d540d97747ecd694d61878e22846399f65"
diff --git a/recipes-pmu/pmu/pmu-firmware_git.bb b/recipes-pmu/pmu/pmu-firmware_git.bb
index 9016d6f..b184013 100644
--- a/recipes-pmu/pmu/pmu-firmware_git.bb
+++ b/recipes-pmu/pmu/pmu-firmware_git.bb
@@ -8,8 +8,12 @@ PROVIDES = "virtual/pmufw"
 inherit xsctapp xsctyaml deploy
 
 S = "${WORKDIR}/git"
-BRANCH = "master"
-SRC_URI = "git://github.com/Xilinx/embeddedsw.git;protocol=https;branch=${BRANCH}"
+
+# Sources, by default allow for the use of SRCREV pointing to orphaned tags/commits
+ESWBRANCH ?= ""
+SRCBRANCHARG = "${@['nobranch=1', 'branch=${ESWBRANCH}'][d.getVar('ESWBRANCH', True) != '']}"
+
+SRC_URI = "git://github.com/Xilinx/embeddedsw.git;protocol=https;${SRCBRANCHARG}"
 
 # This points to xilinx-v2016.3 tag
 SRCREV ?= "879d70d540d97747ecd694d61878e22846399f65"
-- 
2.7.4




More information about the meta-xilinx mailing list