[meta-xilinx] [PATCH 2/2] u-boot-xlnx: provide overrideable repo/branch plumbing

Manjukumar Matha manjukumar.harthikote-matha at xilinx.com
Wed Jun 7 13:10:58 PDT 2017


With these patches, top level component selection configuration can now
easily override u-boot-xlnx source repositories and branches.

Signed-off-by: Cyril Chemparathy <cyril.chemparathy at xilinx.com>
Signed-off-by: Manjukumar Matha <manjukumar.harthikote-matha at xilinx.com>
---
 recipes-bsp/u-boot/u-boot-xlnx.inc | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/recipes-bsp/u-boot/u-boot-xlnx.inc b/recipes-bsp/u-boot/u-boot-xlnx.inc
index a5e72f4..8ec6698 100644
--- a/recipes-bsp/u-boot/u-boot-xlnx.inc
+++ b/recipes-bsp/u-boot/u-boot-xlnx.inc
@@ -2,8 +2,11 @@ require recipes-bsp/u-boot/u-boot.inc
 
 DEPENDS += "dtc-native"
 
+UBOOTURI ?= "git://github.com/Xilinx/u-boot-xlnx.git;protocol=https"
 UBRANCH ?= "master"
-SRC_URI = "git://github.com/Xilinx/u-boot-xlnx.git;protocol=https;branch=${UBRANCH}"
+
+UBRANCHARG = "${@['nobranch=1', 'branch=${KBRANCH}'][d.getVar('UBRANCH', True) != '']}"
+SRC_URI = "${UBOOTURI};branch=${UBRANCH}"
 
 S = "${WORKDIR}/git"
 
-- 
2.7.4




More information about the meta-xilinx mailing list