From 49fa66668b3ce7c72eda3efef8a95d96e2358845 Mon Sep 17 00:00:00 2001 From: Mark Hatle Date: Mon, 23 Mar 2020 07:50:58 -0700 Subject: meta-xilinx-standalone esw.bbclass: Allow SRCREV and SRC_URI to be overwritten The default values will match publically available sources, but may not work for internal development purposes. Allow the user to override the defaults with "ESW_SRCREV" and "ESW_SRC_URI". By doing it this way, the individual recipes that use the esw class, and their bbappends can specify additional SRCREV/SRC_URI information in the standard way. Signed-off-by: Mark Hatle --- meta-xilinx-standalone/classes/esw.bbclass | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/meta-xilinx-standalone/classes/esw.bbclass b/meta-xilinx-standalone/classes/esw.bbclass index d72976e9..754ef337 100644 --- a/meta-xilinx-standalone/classes/esw.bbclass +++ b/meta-xilinx-standalone/classes/esw.bbclass @@ -5,9 +5,14 @@ LICFILENAME = "license.txt" LIC_FILES_CHKSUM = "file://${S}/${LICFILENAME};md5=39ab6ab638f4d1836ba994ec6852de94" # We should move to an actual SRCREV eventually -SRCREV = "${AUTOREV}" +include conf/xilinx/esw-srcrev.inc + +EMBEDDEDSW_SRCREV ?= "${AUTOREV}" +SRCREV = "${EMBEDDEDSW_SRCREV}" PV = "${XILINX_RELEASE_VERSION}+git${SRCPV}" -SRC_URI = "git://gitenterprise.xilinx.com/decoupling/embeddedsw.git;branch=master-next-test;protocol=https" +EMBEDDEDSW_REPO ?= "git://github.com/xilinx/embeddedsw.git;protocol=https" +EMBEDDEDSW_BRANCH ?= "master" +SRC_URI = "${EMBEDDEDSW_REPO};branch=${EMBEDDEDSW_BRANCH}" SRCREV_FORMAT = "src_decouple" -- cgit v1.2.3-54-g00ecf