build: Start a build release environment from scratch
The release build should ensure it starts from a fresh environment to avoid potential mismatches with old code. Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
This commit is contained in:
parent
e61eaf172c
commit
724c9492ec
|
|
@ -178,6 +178,10 @@ fi
|
|||
printf "\n[INFO] Build Yocto \"%s\" for \"%s\" (cpus=%s)\n\n" "${DY_REVISION}" "${DY_PLATFORMS}" "${CPUS}"
|
||||
|
||||
# Install/Update Digi's Yocto SDK
|
||||
if [ "${DY_BUILD_RELEASE}" = "true" ]; then
|
||||
# Start a build release environment from scratch
|
||||
rm -rf "${YOCTO_INST_DIR}"
|
||||
fi
|
||||
mkdir -p "${YOCTO_INST_DIR}"
|
||||
if pushd "${YOCTO_INST_DIR}"; then
|
||||
# Use git ls-remote to check the revision type
|
||||
|
|
|
|||
|
|
@ -206,6 +206,10 @@ fi
|
|||
printf "\n[INFO] Build Yocto \"%s\" for \"%s\" (cpus=%s)\n\n" "${DY_REVISION}" "${DY_PLATFORMS}" "${CPUS}"
|
||||
|
||||
# Install/Update Digi's Yocto SDK
|
||||
if [ "${DY_BUILD_RELEASE}" = "true" ]; then
|
||||
# Start a build release environment from scratch
|
||||
rm -rf "${YOCTO_INST_DIR}"
|
||||
fi
|
||||
mkdir -p "${YOCTO_INST_DIR}"
|
||||
if pushd "${YOCTO_INST_DIR}"; then
|
||||
# Use git ls-remote to check the revision type
|
||||
|
|
|
|||
Loading…
Reference in New Issue