build.sh: Add a platform specific path to TEMPLATECONF

If TEMPLATECONF is set in the environment, we will add the platform to
the path so that it's possible to use specific template configurations
for different platforms in the build server.

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

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
This commit is contained in:
Alex Gonzalez 2013-06-07 17:41:39 +02:00
parent 7e64629187
commit 48d9b9079a
1 changed files with 1 additions and 0 deletions

View File

@ -133,6 +133,7 @@ for platform in ${DY_PLATFORMS}; do
# Configure and build the project in a sub-shell to avoid
# mixing environments between different platform's projects
(
export TEMPLATECONF="${TEMPLATECONF:+${TEMPLATECONF}/${platform}}"
. ${YOCTO_INST_DIR}/mkproject.sh -p ${platform} ${_this_var_arg}
# Set a common DL_DIR and SSTATE_DIR for all platforms
sed -i -e "/^#DL_DIR ?=/cDL_DIR ?= \"${YOCTO_PROJ_DIR}/downloads\"" \