-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- nRF9160DK, Thingy91のバイナリも生成するように変更 - HEXだけではなくFOTA用binファイルもアーカイブに含むように変更
- Loading branch information
Showing
1 changed file
with
20 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,34 @@ | ||
#!/bin/sh | ||
|
||
BOARD=scm-ltem1nrf_nrf9160ns | ||
BOARDS="scm-ltem1nrf_nrf9160ns nrf9160dk_nrf9160_ns thingy91_nrf9160_ns" | ||
|
||
if [ "$DEBUG" = "1" ]; then | ||
TARGETS="develop" | ||
else | ||
TARGETS="production staging develop" | ||
TARGETS="production" | ||
#TARGETS="production staging develop" | ||
fi | ||
|
||
rm -rf build/ | ||
mkdir -p dist/bin | ||
|
||
for TARGET in ${TARGETS} | ||
do | ||
echo "${TARGET}" | ||
./build.sh ${TARGET} ${BOARD} | ||
RESULT="$?" | ||
if [ "${RESULT}" -ne 0 ]; then | ||
echo "Failed" | ||
exit ${RESULT} | ||
fi | ||
cp -v "build/${BOARD}/${TARGET}/zephyr/merged.hex" "dist/bin/${BOARD}_${TARGET}-merged.hex" | ||
for BOARD in ${BOARDS} | ||
do | ||
echo "${TARGET}" | ||
./build.sh ${TARGET} ${BOARD} | ||
RESULT="$?" | ||
if [ "${RESULT}" -ne 0 ]; then | ||
echo "Failed" | ||
exit ${RESULT} | ||
fi | ||
|
||
DIST_DIR="dist/${BOARD}/${TARGET}/" | ||
mkdir -p "${DIST_DIR}/hex" | ||
cp -v "build/${BOARD}/${TARGET}/zephyr/merged.hex" "${DIST_DIR}/hex/${BOARD}_${TARGET}-merged.hex" | ||
mkdir -p "${DIST_DIR}/update" | ||
cp -v "build/${BOARD}/${TARGET}/zephyr/app_update.bin" "${DIST_DIR}/update/" | ||
done | ||
done | ||
|
||
tar zcvf dist/sipf-std-client_nrf9160.tar.gz -C dist bin | ||
tar zcvf dist/sipf-std-client_nrf9160.tar.gz -C dist ${BOARDS} |