From c548d7011a3650890dedf52ce1a78749132d190f Mon Sep 17 00:00:00 2001 From: Javier Viguera Date: Tue, 4 Jun 2013 14:32:04 +0200 Subject: [PATCH] nvram: get code from github https://jira.digi.com/browse/DEL-472 Signed-off-by: Javier Viguera --- meta-digi-arm/recipes-bsp/nvram/nvram.bb | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/meta-digi-arm/recipes-bsp/nvram/nvram.bb b/meta-digi-arm/recipes-bsp/nvram/nvram.bb index d7ac94233..a137c6d9a 100644 --- a/meta-digi-arm/recipes-bsp/nvram/nvram.bb +++ b/meta-digi-arm/recipes-bsp/nvram/nvram.bb @@ -9,12 +9,20 @@ PR = "${DISTRO}.r0" DEPENDS = "libdigi" -SRCREV = "${AUTOREV}" -SRC_URI = " \ - ${DIGI_LOG_GIT}u-boot-denx.git;protocol=git;branch=refs/heads/master \ - file://main.c \ - file://nvram_priv_linux.c \ - " +# Uncomment to build the from sources (internal use only) +# UBOOT_USE_INTERNAL_REPO ?= "1" + +SRCREV_external = "107e05c6fff8ccae6d5eeb6a39d7efd57694e544" +SRCREV_internal = "4af0b5f73215c6f075e17f866d831a948d777a2a" +SRCREV = "${@base_conditional('UBOOT_USE_INTERNAL_REPO', '1' , '${SRCREV_internal}', '${SRCREV_external}', d)}" + +SRC_URI_external = "git://github.com/dgii/yocto-uboot.git;protocol=git" +SRC_URI_internal = "${DIGI_LOG_GIT}u-boot-denx.git;protocol=git" +SRC_URI = "${@base_conditional('UBOOT_USE_INTERNAL_REPO', '1' , '${SRC_URI_internal}', '${SRC_URI_external}', d)}" +SRC_URI += " \ + file://main.c \ + file://nvram_priv_linux.c \ +" S = "${WORKDIR}"