dey-examples: create common file for the dey-examples repo URL/branch

This reduces the number of files that must be modified when changing
branches between development/release modes.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
This commit is contained in:
Hector Palacios 2019-03-26 13:22:25 +01:00
parent fd8701845e
commit 04aa734d75
4 changed files with 21 additions and 30 deletions

View File

@ -1,4 +1,6 @@
# Copyright (C) 2017 Digi International. # Copyright (C) 2017-2019, Digi International Inc.
require recipes-digi/dey-examples/dey-examples-src.inc
SUMMARY = "AWS IoT device SDK Demo" SUMMARY = "AWS IoT device SDK Demo"
DESCRIPTION = "Demo application for AWS IoT device SDK" DESCRIPTION = "Demo application for AWS IoT device SDK"
@ -14,15 +16,7 @@ AWS_USER_LED_ccimx6ulsbc ?= "488"
AWS_USER_LED_ccimx6sbc ?= "34" AWS_USER_LED_ccimx6sbc ?= "34"
AWS_USER_LED_ccimx6qpsbc ?= "34" AWS_USER_LED_ccimx6qpsbc ?= "34"
SRCBRANCH = "master" SRC_URI = "${DEY_EXAMPLES_GIT_URI};branch=${SRCBRANCH}"
SRCREV = "${AUTOREV}"
CC_STASH = "${DIGI_MTK_GIT}dey/dey-examples.git;protocol=ssh"
CC_GITHUB = "${DIGI_GITHUB_GIT}/dey-examples.git;protocol=git"
CC_GIT_URI ?= "${@oe.utils.conditional('DIGI_INTERNAL_GIT', '1' , '${CC_STASH}', '${CC_GITHUB}', d)}"
SRC_URI = "${CC_GIT_URI};branch=${SRCBRANCH}"
S = "${WORKDIR}/git/awsiot-sample" S = "${WORKDIR}/git/awsiot-sample"

View File

@ -1,4 +1,6 @@
# Copyright (C) 2017, 2018 Digi International. # Copyright (C) 2017-2019, Digi International Inc.
require recipes-digi/dey-examples/dey-examples-src.inc
SUMMARY = "DEY examples: Cryptochip example application" SUMMARY = "DEY examples: Cryptochip example application"
SECTION = "examples" SECTION = "examples"
@ -7,15 +9,7 @@ LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425
DEPENDS = "cryptoauthlib" DEPENDS = "cryptoauthlib"
SRCBRANCH = "master" SRC_URI = "${DEY_EXAMPLES_GIT_URI};branch=${SRCBRANCH}"
SRCREV = "${AUTOREV}"
CC_STASH = "${DIGI_MTK_GIT}dey/dey-examples.git;protocol=ssh"
CC_GITHUB = "${DIGI_GITHUB_GIT}/dey-examples.git;protocol=git"
CC_GIT_URI ?= "${@oe.utils.conditional('DIGI_INTERNAL_GIT', '1' , '${CC_STASH}', '${CC_GITHUB}', d)}"
SRC_URI = "${CC_GIT_URI};branch=${SRCBRANCH}"
S = "${WORKDIR}/git/cryptochip-get-random" S = "${WORKDIR}/git/cryptochip-get-random"

View File

@ -1,4 +1,6 @@
# Copyright (C) 2017, 2018, Digi International Inc. # Copyright (C) 2017-2019, Digi International Inc.
require recipes-digi/dey-examples/dey-examples-src.inc
SUMMARY = "DEY Digi APIX examples" SUMMARY = "DEY Digi APIX examples"
SECTION = "examples" SECTION = "examples"
@ -7,15 +9,7 @@ LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/ISC;md5=f3b90e78ea0cffb20bf5cca
DEPENDS = "libdigiapix" DEPENDS = "libdigiapix"
SRCBRANCH = "master" SRC_URI = "${DEY_EXAMPLES_GIT_URI};branch=${SRCBRANCH}"
SRCREV = "${AUTOREV}"
LIBDIGIAPIX_STASH = "${DIGI_MTK_GIT}dey/dey-examples.git;protocol=ssh"
LIBDIGIAPIX_GITHUB = "${DIGI_GITHUB_GIT}/dey-examples.git;protocol=git"
LIBDIGIAPIX_GIT_URI ?= "${@oe.utils.conditional('DIGI_INTERNAL_GIT', '1' , '${LIBDIGIAPIX_STASH}', '${LIBDIGIAPIX_GITHUB}', d)}"
SRC_URI = "${LIBDIGIAPIX_GIT_URI};branch=${SRCBRANCH}"
S = "${WORKDIR}/git" S = "${WORKDIR}/git"

View File

@ -0,0 +1,9 @@
# Copyright (C) 2019, Digi International Inc.
SRCBRANCH = "master"
SRCREV = "${AUTOREV}"
DEY_EXAMPLES_STASH = "${DIGI_MTK_GIT}dey/dey-examples.git;protocol=ssh"
DEY_EXAMPLES_GITHUB = "${DIGI_GITHUB_GIT}/dey-examples.git;protocol=git"
DEY_EXAMPLES_GIT_URI ?= "${@oe.utils.conditional('DIGI_INTERNAL_GIT', '1' , '${DEY_EXAMPLES_STASH}', '${DEY_EXAMPLES_GITHUB}', d)}"