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.
@@ -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"
