meta-digi: use global variable to use internal git repos
https://jira.digi.com/browse/DEL-472 Signed-off-by: Javier Viguera <javier.viguera@digi.com>
This commit is contained in:
parent
c548d7011a
commit
10c7594119
|
|
@ -7,16 +7,13 @@ LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425
|
|||
|
||||
PR = "${DISTRO}.r0"
|
||||
|
||||
# Uncomment to build from internal GIT repository
|
||||
# IMX_BOOTLETS_USE_INTERNAL_REPO ?= "1"
|
||||
|
||||
SRCREV_external = "9ffdf8cc253ba8d46fc4d8286ea054fa4c28c9af"
|
||||
SRCREV_internal = "cc3b1eb94dda62aa737f2289b7a2d3936492a53b"
|
||||
SRCREV = "${@base_conditional('IMX_BOOTLETS_USE_INTERNAL_REPO', '1' , '${SRCREV_internal}', '${SRCREV_external}', d)}"
|
||||
SRCREV = "${@base_conditional('DIGI_INTERNAL_GIT', '1' , '${SRCREV_internal}', '${SRCREV_external}', d)}"
|
||||
|
||||
SRC_URI_external = "git://github.com/dgii/imx-bootlets.git;protocol=git"
|
||||
SRC_URI_internal = "${DIGI_MTK_GIT}del/imx-bootlets.git;protocol=git"
|
||||
SRC_URI = "${@base_conditional('IMX_BOOTLETS_USE_INTERNAL_REPO', '1' , '${SRC_URI_internal}', '${SRC_URI_external}', d)}"
|
||||
SRC_URI = "${@base_conditional('DIGI_INTERNAL_GIT', '1' , '${SRC_URI_internal}', '${SRC_URI_external}', d)}"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
|
|
|
|||
|
|
@ -9,16 +9,13 @@ PR = "${DISTRO}.r0"
|
|||
|
||||
DEPENDS = "libdigi"
|
||||
|
||||
# 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)}"
|
||||
SRCREV = "${@base_conditional('DIGI_INTERNAL_GIT', '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 = "${@base_conditional('DIGI_INTERNAL_GIT', '1' , '${SRC_URI_internal}', '${SRC_URI_external}', d)}"
|
||||
SRC_URI += " \
|
||||
file://main.c \
|
||||
file://nvram_priv_linux.c \
|
||||
|
|
|
|||
|
|
@ -10,16 +10,13 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=4c6cde5df68eff615d36789dc18edd3b"
|
|||
|
||||
PR = "r0"
|
||||
|
||||
# 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)}"
|
||||
SRCREV = "${@base_conditional('DIGI_INTERNAL_GIT', '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 = "${@base_conditional('DIGI_INTERNAL_GIT', '1' , '${SRC_URI_internal}', '${SRC_URI_external}', d)}"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
|
|
|
|||
|
|
@ -8,16 +8,13 @@ inherit module
|
|||
|
||||
PR = "r0"
|
||||
|
||||
# Uncomment to build the driver from internal GIT repository
|
||||
# ATHEROS_USE_INTERNAL_REPO ?= "1"
|
||||
|
||||
SRCREV_external = "9b21b4508d08a2fb3bf3c55aaac182bb9c1210f2"
|
||||
SRCREV_internal = "15bae2c4e330ea6d9289217d3c38ebf63aa8ff15"
|
||||
SRCREV = "${@base_conditional('ATHEROS_USE_INTERNAL_REPO', '1' , '${SRCREV_internal}', '${SRCREV_external}', d)}"
|
||||
SRCREV = "${@base_conditional('DIGI_INTERNAL_GIT', '1' , '${SRCREV_internal}', '${SRCREV_external}', d)}"
|
||||
|
||||
SRC_URI_external = "git://github.com/dgii/atheros.git;protocol=git"
|
||||
SRC_URI_internal = "${DIGI_LOG_GIT}linux-modules/atheros.git;protocol=git"
|
||||
SRC_URI = "${@base_conditional('ATHEROS_USE_INTERNAL_REPO', '1' , '${SRC_URI_internal}', '${SRC_URI_external}', d)}"
|
||||
SRC_URI = "${@base_conditional('DIGI_INTERNAL_GIT', '1' , '${SRC_URI_internal}', '${SRC_URI_external}', d)}"
|
||||
SRC_URI += " \
|
||||
file://atheros \
|
||||
file://atheros.conf \
|
||||
|
|
|
|||
|
|
@ -4,12 +4,9 @@ include linux-del.inc
|
|||
|
||||
PR = "${DISTRO}.${INC_PR}.0"
|
||||
|
||||
# Uncomment to build from internal GIT repository
|
||||
# KERNEL_USE_INTERNAL_REPO ?= "1"
|
||||
|
||||
SRCREV_external = "c3f3fa8f819f83e77fc0e0c339f12a6fe2a52fef"
|
||||
SRCREV_internal = "d615e9350f4d14e8a0177ff4a3da8639046657eb"
|
||||
SRCREV = "${@base_conditional('KERNEL_USE_INTERNAL_REPO', '1' , '${SRCREV_internal}', '${SRCREV_external}', d)}"
|
||||
SRCREV = "${@base_conditional('DIGI_INTERNAL_GIT', '1' , '${SRCREV_internal}', '${SRCREV_external}', d)}"
|
||||
|
||||
LOCALVERSION_mx5 = "mx5"
|
||||
LOCALVERSION_mxs = "mxs"
|
||||
|
|
@ -17,7 +14,7 @@ LOCALVERSION_cpx2_mxs = "mxs+gateways"
|
|||
|
||||
SRC_URI_external = "git://github.com/dgii/yocto-linux.git;protocol=git"
|
||||
SRC_URI_internal = "${DIGI_LOG_GIT}linux-2.6.git;protocol=git"
|
||||
SRC_URI = "${@base_conditional('KERNEL_USE_INTERNAL_REPO', '1' , '${SRC_URI_internal}', '${SRC_URI_external}', d)}"
|
||||
SRC_URI = "${@base_conditional('DIGI_INTERNAL_GIT', '1' , '${SRC_URI_internal}', '${SRC_URI_external}', d)}"
|
||||
SRC_URI += " \
|
||||
file://defconfig \
|
||||
${KERNEL_CFG_FRAGS} \
|
||||
|
|
|
|||
|
|
@ -138,9 +138,12 @@ for platform in ${DY_PLATFORMS}; do
|
|||
sed -i -e "/^#DL_DIR ?=/cDL_DIR ?= \"${YOCTO_PROJ_DIR}/downloads\"" \
|
||||
-e "/^#SSTATE_DIR ?=/cSSTATE_DIR ?= \"${YOCTO_PROJ_DIR}/sstate-cache\"" \
|
||||
conf/local.conf
|
||||
# Set the specified distro if different from del.
|
||||
# Set the specified distro if different from del
|
||||
[ "${DY_DISTRO}" != "del" ] && sed -i -e "/^DISTRO ?=/cDISTRO ?= \"${DY_DISTRO}\"" conf/local.conf
|
||||
[ "${DY_USE_MIRROR}" = "true" ] && printf "${DIGI_PREMIRROR_CFG}" >> conf/local.conf
|
||||
if [ "${DY_USE_MIRROR}" = "true" ]; then
|
||||
sed -i -e "s,^#DIGI_INTERNAL_GIT,DIGI_INTERNAL_GIT,g" conf/local.conf
|
||||
printf "${DIGI_PREMIRROR_CFG}" >> conf/local.conf
|
||||
fi
|
||||
[ "${DY_BUILD_VARIANTS}" = "true" ] && printf "\nINHERIT += \"rm_work\"\n" >> conf/local.conf
|
||||
time bitbake ${DY_TARGET}
|
||||
)
|
||||
|
|
|
|||
|
|
@ -53,6 +53,11 @@
|
|||
MACHINE = "ccardimx28js"
|
||||
MACHINE_VARIANT = "wb"
|
||||
|
||||
#
|
||||
# Use Digi's internal git repositories
|
||||
#
|
||||
#DIGI_INTERNAL_GIT ?= "1"
|
||||
|
||||
#
|
||||
# Where to place downloads
|
||||
#
|
||||
|
|
|
|||
|
|
@ -53,6 +53,11 @@
|
|||
MACHINE = "ccimx51js"
|
||||
MACHINE_VARIANT = "wagv"
|
||||
|
||||
#
|
||||
# Use Digi's internal git repositories
|
||||
#
|
||||
#DIGI_INTERNAL_GIT ?= "1"
|
||||
|
||||
#
|
||||
# Where to place downloads
|
||||
#
|
||||
|
|
|
|||
|
|
@ -53,6 +53,11 @@
|
|||
MACHINE = "ccimx53js"
|
||||
MACHINE_VARIANT = "w"
|
||||
|
||||
#
|
||||
# Use Digi's internal git repositories
|
||||
#
|
||||
#DIGI_INTERNAL_GIT ?= "1"
|
||||
|
||||
#
|
||||
# Where to place downloads
|
||||
#
|
||||
|
|
|
|||
|
|
@ -53,6 +53,11 @@
|
|||
MACHINE = "cpx2"
|
||||
MACHINE_VARIANT = ""
|
||||
|
||||
#
|
||||
# Use Digi's internal git repositories
|
||||
#
|
||||
#DIGI_INTERNAL_GIT ?= "1"
|
||||
|
||||
#
|
||||
# Where to place downloads
|
||||
#
|
||||
|
|
|
|||
|
|
@ -53,6 +53,11 @@
|
|||
MACHINE = "wr21"
|
||||
MACHINE_VARIANT = ""
|
||||
|
||||
#
|
||||
# Use Digi's internal git repositories
|
||||
#
|
||||
#DIGI_INTERNAL_GIT ?= "1"
|
||||
|
||||
#
|
||||
# Where to place downloads
|
||||
#
|
||||
|
|
|
|||
Loading…
Reference in New Issue