From d8c635715f41fb49a63426e5f6863b419ef9a0cd Mon Sep 17 00:00:00 2001 From: Manjukumar Matha Date: Wed, 29 Nov 2017 15:33:41 -0800 Subject: u-boot-xlnx: provide overrideable repo/branch plumbing With these patches, top level component selection configuration can now easily override u-boot-xlnx source repositories and branches. Signed-off-by: Cyril Chemparathy Signed-off-by: Manjukumar Matha --- 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 5bdf2a1d..c97a4a4a 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" -- cgit v1.2.3-54-g00ecf