aboutsummaryrefslogtreecommitdiff
path: root/zephyr-upstream
diff options
context:
space:
mode:
authorDaniel Díaz <daniel.diaz@linaro.org>2018-03-19 02:18:17 -0600
committerFathi Boudra <fathi.boudra@linaro.org>2018-03-22 03:43:19 +0000
commit6a5032be1fc7077e185444fc426c2a926bc41519 (patch)
tree1fe5add18cb165b7b847246343e386a2bbe69a2f /zephyr-upstream
parent92be7eed404da61233956f0d3d12d52960629c04 (diff)
zephyr-upstream: ship board support files
If the platform provides support files, ship them as well. To locate the platform, the same mechanism of CMake is used. Change-Id: I6c23ac6d14e651973ec5d86262e2289adff205d9 Signed-off-by: Daniel Díaz <daniel.diaz@linaro.org>
Diffstat (limited to 'zephyr-upstream')
-rwxr-xr-xzephyr-upstream/builders.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/zephyr-upstream/builders.sh b/zephyr-upstream/builders.sh
index 2946d2ae8b..153fb6d154 100755
--- a/zephyr-upstream/builders.sh
+++ b/zephyr-upstream/builders.sh
@@ -78,6 +78,10 @@ rsync -avm \
--exclude='*' \
${OUTDIR}/${PLATFORM} out/
find ${OUTDIR}/${PLATFORM} -type f -name 'zephyr.config' -delete
+# If there are support files, ship them.
+BOARD_CONFIG=$(find "${WORKSPACE}/boards/" -type f -name "${PLATFORM}_defconfig")
+BOARD_DIR=$(dirname ${BOARD_CONFIG})
+test -d "${BOARD_DIR}/support" && rsync -avm "${BOARD_DIR}/support" "out/${PLATFORM}"
CCACHE_DIR=${CCACHE_DIR} ccache -M 30G
CCACHE_DIR=${CCACHE_DIR} ccache -s