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:
parent
7e64629187
commit
48d9b9079a
|
|
@ -133,6 +133,7 @@ for platform in ${DY_PLATFORMS}; do
|
||||||
# Configure and build the project in a sub-shell to avoid
|
# Configure and build the project in a sub-shell to avoid
|
||||||
# mixing environments between different platform's projects
|
# mixing environments between different platform's projects
|
||||||
(
|
(
|
||||||
|
export TEMPLATECONF="${TEMPLATECONF:+${TEMPLATECONF}/${platform}}"
|
||||||
. ${YOCTO_INST_DIR}/mkproject.sh -p ${platform} ${_this_var_arg}
|
. ${YOCTO_INST_DIR}/mkproject.sh -p ${platform} ${_this_var_arg}
|
||||||
# Set a common DL_DIR and SSTATE_DIR for all platforms
|
# Set a common DL_DIR and SSTATE_DIR for all platforms
|
||||||
sed -i -e "/^#DL_DIR ?=/cDL_DIR ?= \"${YOCTO_PROJ_DIR}/downloads\"" \
|
sed -i -e "/^#DL_DIR ?=/cDL_DIR ?= \"${YOCTO_PROJ_DIR}/downloads\"" \
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue