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

Signed-off-by: Cyril Chemparathy <[email protected]>
Signed-off-by: Manjukumar Matha <[email protected]>
---
 recipes-bsp/u-boot/u-boot-xlnx.inc | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/recipes-bsp/u-boot/u-boot-xlnx.inc 
b/recipes-bsp/u-boot/u-boot-xlnx.inc
index 5bdf2a1..c97a4a4 100644
--- a/recipes-bsp/u-boot/u-boot-xlnx.inc
+++ b/recipes-bsp/u-boot/u-boot-xlnx.inc
@@ -2,8 +2,10 @@ require recipes-bsp/u-boot/u-boot.inc
 
 DEPENDS += "bc-native 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=${UBRANCH}'][d.getVar('UBRANCH', True) 
!= '']}"
+SRC_URI = "${UBOOTURI};${UBRANCHARG}"
 
 S = "${WORKDIR}/git"
 
-- 
2.7.4

-- 
_______________________________________________
meta-xilinx mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-xilinx

Reply via email to