build.sh: add support for dey-image-tiny and dey-image-tiny-initramfs

In order to build tiny or tiny-initramfs images, the script adds
the line:

 DISTRO_FEATURES_remove = "x11"

to 'conf/local.conf' file.

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

Signed-off-by: Urko Nalda <Urko.Nalda@digi.com>
This commit is contained in:
Urko Nalda 2015-12-10 12:36:40 +01:00
parent 0e1bf79e56
commit 3428eee3d1
1 changed files with 2 additions and 2 deletions

View File

@ -207,8 +207,8 @@ for platform in ${DY_PLATFORMS}; do
if [ "${DY_RM_WORK}" = "true" ]; then
printf "${RM_WORK_CFG}" >> conf/local.conf
fi
# Remove 'x11' distro feature if building minimal images
if echo "${DY_TARGET}" | grep -qs "dey-image-minimal"; then
# Remove 'x11' distro feature if building minimal and tiny images
if echo "${DY_TARGET}" | grep -qs "^dey-image-\(minimal\|tiny\)"; then
printf "${X11_REMOVAL_CFG}" >> conf/local.conf
fi
for target in ${DY_TARGET}; do