build.sh: allow to extend local.conf from build environment

https://jira.digi.com/browse/DEL-3051

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
This commit is contained in:
Alex Gonzalez 2017-02-28 11:52:38 +01:00 committed by Javier Viguera
parent f785012063
commit 9658d54d00
1 changed files with 4 additions and 0 deletions

View File

@ -253,6 +253,10 @@ for platform in ${DY_PLATFORMS}; do
if [ "${DY_FB_IMAGE}" = "true" ]; then if [ "${DY_FB_IMAGE}" = "true" ]; then
printf "${X11_REMOVAL_CFG}" >> conf/local.conf printf "${X11_REMOVAL_CFG}" >> conf/local.conf
fi fi
# Append extra configuration macros if provided from build environment
if [ -n "${DY_EXTRA_LOCAL_CONF}" ]; then
printf "%s\n" "${DY_EXTRA_LOCAL_CONF}" >> conf/local.conf
fi
# Add the manufacturing layer to bblayers.conf file if it is a manufacturing job # Add the manufacturing layer to bblayers.conf file if it is a manufacturing job
if [ "${DY_MFG_IMAGE}" = "true" ]; then if [ "${DY_MFG_IMAGE}" = "true" ]; then
sed -i -e "/meta-digi-dey/a\ ${YOCTO_INST_DIR}/sources/meta-digi-mfg \\\\" conf/bblayers.conf sed -i -e "/meta-digi-dey/a\ ${YOCTO_INST_DIR}/sources/meta-digi-mfg \\\\" conf/bblayers.conf