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:
Javier Viguera 2013-07-02 13:35:37 +02:00
parent cf67280cee
commit 211daed75d
1 changed files with 5 additions and 2 deletions

View File

@ -143,8 +143,11 @@ 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 dey
[ "${DY_DISTRO}" != "dey" ] && sed -i -e "/^DISTRO ?=/cDISTRO ?= \"${DY_DISTRO}\"" conf/local.conf
# Set the DISTRO and remove 'meta-digi-dey' layer if distro is not DEY based
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
sed -i -e "s,^#DIGI_INTERNAL_GIT,DIGI_INTERNAL_GIT,g" conf/local.conf
printf "${DIGI_PREMIRROR_CFG}" >> conf/local.conf