meta-digi-arm: add framework to set external branches for git repos
Starting with Yocto 1.6 there is a need to configure in which branch a specific SHA1 revision is included. We need a framework to set such branches both for internal git repos and for external ones (Github). If the branch is not specified in the SRC_URI, the do_fetch task may fail even though the SHA1 revision exists in the repository. Signed-off-by: Javier Viguera <javier.viguera@digi.com>
This commit is contained in:
parent
bbeca823aa
commit
65993e1e50
|
|
@ -7,12 +7,16 @@ LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425
|
|||
|
||||
PR = "${DISTRO}.r0"
|
||||
|
||||
SRCBRANCH_external = ""
|
||||
SRCBRANCH_internal = "master"
|
||||
SRCBRANCH = "${@base_conditional('DIGI_INTERNAL_GIT', '1' , '${SRCBRANCH_internal}', '${SRCBRANCH_external}', d)}"
|
||||
|
||||
SRCREV_external = ""
|
||||
SRCREV_internal = "967bc502cdb5073ca05fa13dfe588a5509066735"
|
||||
SRCREV = "${@base_conditional('DIGI_INTERNAL_GIT', '1' , '${SRCREV_internal}', '${SRCREV_external}', d)}"
|
||||
|
||||
SRC_URI_external = "${DIGI_GITHUB_GIT}/imx-bootlets.git;protocol=git"
|
||||
SRC_URI_internal = "${DIGI_MTK_GIT}linux/imx-bootlets.git;protocol=ssh"
|
||||
SRC_URI_external = "${DIGI_GITHUB_GIT}/imx-bootlets.git;protocol=git;branch=${SRCBRANCH}"
|
||||
SRC_URI_internal = "${DIGI_MTK_GIT}linux/imx-bootlets.git;protocol=ssh;branch=${SRCBRANCH}"
|
||||
SRC_URI = "${@base_conditional('DIGI_INTERNAL_GIT', '1' , '${SRC_URI_internal}', '${SRC_URI_external}', d)}"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
|
|
|||
|
|
@ -1,12 +1,14 @@
|
|||
# Copyright (C) 2013 Digi International
|
||||
|
||||
SRCBRANCH = "master"
|
||||
SRCBRANCH_external = ""
|
||||
SRCBRANCH_internal = "master"
|
||||
SRCBRANCH = "${@base_conditional('DIGI_INTERNAL_GIT', '1' , '${SRCBRANCH_internal}', '${SRCBRANCH_external}', d)}"
|
||||
|
||||
SRCREV_external = ""
|
||||
SRCREV_internal = "b23ff7f11a0577037becc20bbcfe61640fe87fb4"
|
||||
SRCREV = "${@base_conditional('DIGI_INTERNAL_GIT', '1' , '${SRCREV_internal}', '${SRCREV_external}', d)}"
|
||||
|
||||
SRC_URI_external = "${DIGI_GITHUB_GIT}/yocto-uboot.git;protocol=git"
|
||||
SRC_URI_external = "${DIGI_GITHUB_GIT}/yocto-uboot.git;protocol=git;branch=${SRCBRANCH}"
|
||||
SRC_URI_internal = "${DIGI_GIT}u-boot-denx.git;protocol=git;branch=${SRCBRANCH}"
|
||||
SRC_URI = "${@base_conditional('DIGI_INTERNAL_GIT', '1' , '${SRC_URI_internal}', '${SRC_URI_external}', d)}"
|
||||
|
||||
|
|
|
|||
|
|
@ -1,12 +1,14 @@
|
|||
# Copyright (C) 2013 Digi International
|
||||
|
||||
SRCBRANCH = "v2013.01/master"
|
||||
SRCBRANCH_external = ""
|
||||
SRCBRANCH_internal = "v2013.01/master"
|
||||
SRCBRANCH = "${@base_conditional('DIGI_INTERNAL_GIT', '1' , '${SRCBRANCH_internal}', '${SRCBRANCH_external}', d)}"
|
||||
|
||||
SRCREV_external = ""
|
||||
SRCREV_internal = "181c8eddf0cee183d317ad400b5d01dce3c2dbe6"
|
||||
SRCREV = "${@base_conditional('DIGI_INTERNAL_GIT', '1' , '${SRCREV_internal}', '${SRCREV_external}', d)}"
|
||||
|
||||
SRC_URI_external = "${DIGI_GITHUB_GIT}/yocto-uboot.git;protocol=git"
|
||||
SRC_URI_external = "${DIGI_GITHUB_GIT}/yocto-uboot.git;protocol=git;branch=${SRCBRANCH}"
|
||||
SRC_URI_internal = "${DIGI_GIT}u-boot-denx.git;protocol=git;branch=${SRCBRANCH}"
|
||||
SRC_URI = "${@base_conditional('DIGI_INTERNAL_GIT', '1' , '${SRC_URI_internal}', '${SRC_URI_external}', d)}"
|
||||
|
||||
|
|
|
|||
|
|
@ -1,11 +1,13 @@
|
|||
# Copyright (C) 2013 Digi International
|
||||
|
||||
SRCBRANCH = "v2013.04/master"
|
||||
SRCBRANCH_external = ""
|
||||
SRCBRANCH_internal = "v2013.04/master"
|
||||
SRCBRANCH = "${@base_conditional('DIGI_INTERNAL_GIT', '1' , '${SRCBRANCH_internal}', '${SRCBRANCH_external}', d)}"
|
||||
|
||||
SRCREV_external = ""
|
||||
SRCREV_internal = "${AUTOREV}"
|
||||
SRCREV = "${@base_conditional('DIGI_INTERNAL_GIT', '1' , '${SRCREV_internal}', '${SRCREV_external}', d)}"
|
||||
|
||||
SRC_URI_external = "${DIGI_GITHUB_GIT}/yocto-uboot.git;protocol=git"
|
||||
SRC_URI_internal = "${DIGI_LOG_GIT}u-boot-denx.git;protocol=git;branch=${SRCBRANCH}"
|
||||
SRC_URI_external = "${DIGI_GITHUB_GIT}/yocto-uboot.git;protocol=git;branch=${SRCBRANCH}"
|
||||
SRC_URI_internal = "${DIGI_GIT}u-boot-denx.git;protocol=git;branch=${SRCBRANCH}"
|
||||
SRC_URI = "${@base_conditional('DIGI_INTERNAL_GIT', '1' , '${SRC_URI_internal}', '${SRC_URI_external}', d)}"
|
||||
|
|
|
|||
|
|
@ -12,13 +12,15 @@ PR = "r1"
|
|||
# from busybox does not support '--ignore-install' option.
|
||||
RDEPENDS_${PN} = "kmod"
|
||||
|
||||
SRCBRANCH = "dey-1.6/maint"
|
||||
SRCBRANCH_external = ""
|
||||
SRCBRANCH_internal = "dey-1.6/maint"
|
||||
SRCBRANCH = "${@base_conditional('DIGI_INTERNAL_GIT', '1' , '${SRCBRANCH_internal}', '${SRCBRANCH_external}', d)}"
|
||||
|
||||
SRCREV_external = ""
|
||||
SRCREV_internal = "fdb797adf47514f5c94921fb20e64b4ecadb7a52"
|
||||
SRCREV = "${@base_conditional('DIGI_INTERNAL_GIT', '1' , '${SRCREV_internal}', '${SRCREV_external}', d)}"
|
||||
|
||||
SRC_URI_external = "${DIGI_GITHUB_GIT}/atheros.git;protocol=git"
|
||||
SRC_URI_external = "${DIGI_GITHUB_GIT}/atheros.git;protocol=git;branch=${SRCBRANCH}"
|
||||
SRC_URI_internal = "${DIGI_GIT}linux-modules/atheros.git;protocol=git;branch=${SRCBRANCH}"
|
||||
SRC_URI = "${@base_conditional('DIGI_INTERNAL_GIT', '1' , '${SRC_URI_internal}', '${SRC_URI_external}', d)}"
|
||||
SRC_URI += " \
|
||||
|
|
|
|||
|
|
@ -4,8 +4,8 @@ require recipes-kernel/linux/linux-imx.inc
|
|||
|
||||
LOCALVERSION = "-dey"
|
||||
|
||||
SRC_URI_external = "${DIGI_GITHUB_GIT}/yocto-linux.git;protocol=git"
|
||||
SRC_URI_internal = "${DIGI_GIT}linux-2.6.git;protocol=git;branch=${KBRANCH}"
|
||||
SRC_URI_external = "${DIGI_GITHUB_GIT}/yocto-linux.git;protocol=git;branch=${SRCBRANCH}"
|
||||
SRC_URI_internal = "${DIGI_GIT}linux-2.6.git;protocol=git;branch=${SRCBRANCH}"
|
||||
SRC_URI = " \
|
||||
${@base_conditional('DIGI_INTERNAL_GIT', '1' , '${SRC_URI_internal}', '${SRC_URI_external}', d)} \
|
||||
file://defconfig \
|
||||
|
|
|
|||
|
|
@ -4,8 +4,9 @@ require recipes-kernel/linux/linux-dey.inc
|
|||
|
||||
COMPATIBLE_MACHINE = "(mxs|mx5)"
|
||||
|
||||
KBRANCH_DEFAULT = "del-5.9/meta-digi"
|
||||
KBRANCH = "${KBRANCH_DEFAULT}"
|
||||
SRCBRANCH_external = ""
|
||||
SRCBRANCH_internal = "del-5.9/meta-digi"
|
||||
SRCBRANCH = "${@base_conditional('DIGI_INTERNAL_GIT', '1' , '${SRCBRANCH_internal}', '${SRCBRANCH_external}', d)}"
|
||||
|
||||
SRCREV_external = ""
|
||||
SRCREV_internal = "${AUTOREV}"
|
||||
|
|
|
|||
|
|
@ -5,10 +5,14 @@ require recipes-kernel/linux/linux-dtb.inc
|
|||
|
||||
DEPENDS += "lzop-native bc-native"
|
||||
|
||||
KBRANCH_DEFAULT = "v3.10/master"
|
||||
KBRANCH = "${KBRANCH_DEFAULT}"
|
||||
KBRANCH_mxs = "v3.10.y/maint"
|
||||
KBRANCH_mx6 = "v3.10/dey-1.6/maint"
|
||||
SRCBRANCH_external = ""
|
||||
SRCBRANCH_external_mxs = ""
|
||||
SRCBRANCH_external_mx6 = ""
|
||||
|
||||
SRCBRANCH_internal = "v3.10/master"
|
||||
SRCBRANCH_internal_mxs = "v3.10.y/maint"
|
||||
SRCBRANCH_internal_mx6 = "v3.10/dey-1.6/maint"
|
||||
SRCBRANCH = "${@base_conditional('DIGI_INTERNAL_GIT', '1' , '${SRCBRANCH_internal}', '${SRCBRANCH_external}', d)}"
|
||||
|
||||
SRCREV_external = ""
|
||||
SRCREV_internal = "${AUTOREV}"
|
||||
|
|
|
|||
Loading…
Reference in New Issue