build.sh: remove 'meta-digi-dey' layer if not using DEY based distros
This allows to build 'core-image-minimal' or 'core-image-sato' standard images using only the BSP layer meta-digi-arm. https://jira.digi.com/browse/DEL-547 Signed-off-by: Javier Viguera <javier.viguera@digi.com>
This commit is contained in:
parent
cf67280cee
commit
211daed75d
|
|
@ -143,8 +143,11 @@ for platform in ${DY_PLATFORMS}; do
|
||||||
sed -i -e "/^#DL_DIR ?=/cDL_DIR ?= \"${YOCTO_PROJ_DIR}/downloads\"" \
|
sed -i -e "/^#DL_DIR ?=/cDL_DIR ?= \"${YOCTO_PROJ_DIR}/downloads\"" \
|
||||||
-e "/^#SSTATE_DIR ?=/cSSTATE_DIR ?= \"${YOCTO_PROJ_DIR}/sstate-cache\"" \
|
-e "/^#SSTATE_DIR ?=/cSSTATE_DIR ?= \"${YOCTO_PROJ_DIR}/sstate-cache\"" \
|
||||||
conf/local.conf
|
conf/local.conf
|
||||||
# Set the specified distro if different from dey
|
# Set the DISTRO and remove 'meta-digi-dey' layer if distro is not DEY based
|
||||||
[ "${DY_DISTRO}" != "dey" ] && sed -i -e "/^DISTRO ?=/cDISTRO ?= \"${DY_DISTRO}\"" conf/local.conf
|
sed -i -e "/^DISTRO ?=/cDISTRO ?= \"${DY_DISTRO}\"" conf/local.conf
|
||||||
|
if ! echo "${DY_DISTRO}" | grep -qs "dey"; then
|
||||||
|
sed -i -e '/meta-digi-dey/d' conf/bblayers.conf
|
||||||
|
fi
|
||||||
if [ "${DY_USE_MIRROR}" = "true" ]; then
|
if [ "${DY_USE_MIRROR}" = "true" ]; then
|
||||||
sed -i -e "s,^#DIGI_INTERNAL_GIT,DIGI_INTERNAL_GIT,g" conf/local.conf
|
sed -i -e "s,^#DIGI_INTERNAL_GIT,DIGI_INTERNAL_GIT,g" conf/local.conf
|
||||||
printf "${DIGI_PREMIRROR_CFG}" >> conf/local.conf
|
printf "${DIGI_PREMIRROR_CFG}" >> conf/local.conf
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue