Lines Matching +full:check +full:- +full:size
30 set -euo pipefail
32 OT_TMP_DIR=/tmp/ot-size-report
35 OT_SHA_NEW=${GITHUB_SHA:-$(git rev-parse HEAD)}
38 OT_SHA_OLD="$(git cat-file -p "${OT_SHA_NEW}" | grep 'parent ' | head -n1 | cut -d' ' -f2)"
47 OT_REPORTER="${OT_SIZE_REPORTER-}"
52 if arm-none-eabi-gcc --version | grep -q 'Arm Embedded Processors 7'; then
57 …wget --tries 4 --no-check-certificate --quiet https://developer.arm.com/-/media/Files/downloads/gn…
58 && tar xjf gcc-arm-none-eabi-7-2018-q2-update-linux.tar.bz2)
59 export PATH=/tmp/gcc-arm-none-eabi-7-2018-q2-update/bin:$PATH
61 arm-none-eabi-gcc --version
66 sudo apt-get --no-install-recommends install -y ninja-build
77 arm-none-eabi-nm --print-size --defined-only -C "$1" | cut -d' ' -f2- >nmsize_old
78 arm-none-eabi-nm --print-size --defined-only -C "$2" | cut -d' ' -f2- >nmsize_new
79 diff -Nuar nmsize_old nmsize_new || true
112 local clone_options=("clone" "no-depend")
120 local config_name="ot-core-config-check-size-$1.h"
123 mkdir -p "${OT_TMP_DIR}/${folder}"
124 …script/git-tool "${clone_options[@]}" https://github.com/openthread/ot-nrf528xx.git "${OT_TMP_DIR}…
125 rm -rf "${OT_TMP_DIR}/${folder}/openthread/*" # replace openthread submodule with latest commit
126 git archive "${sha}" | tar x -C "${OT_TMP_DIR}/${folder}/openthread"
128 if [ ! -e "${OT_TMP_DIR}/${folder}/openthread/examples/config/${config_name}" ]; then
129 # Check if the the config headers are not present, copy from
133 rm -rf "${OT_TMP_DIR}/${folder}/openthread/*"
134 git archive "${OT_SHA_NEW}" | tar x -C "${OT_TMP_DIR}/${folder}/openthread"
137 mkdir -p "${OT_TMP_DIR}/${folder}/openthread/examples/config"
149 -DOT_APP_CLI=ON -DOT_APP_NCP=ON -DOT_APP_RCP=${ot_rcp} \
150 -DOT_FTD=${ot_ftd} -DOT_MTD=${ot_mtd} -DOT_RCP=${ot_rcp} \
151 -DBUILD_TESTING=OFF \
152 -DOT_PROJECT_CONFIG="${config_file}" \
156 mv ./build/bin/ot-cli-ftd ./build/bin/ot-cli-ftd-br
157 mv ./build/lib/libopenthread-ftd.a ./build/lib/libopenthread-ftd-br.a
158 mv ./build/lib/libopenthread-cli-ftd.a ./build/lib/libopenthread-cli-ftd-br.a
167 … printf "+----------------------------+----------+----------+----------+----------+----------+\n"
173 printf "# Size Report of **OpenThread**\n"
176 printf "| :----: | :------: | -----: | ----: | ---: | ----: |\n"
182 printf "| :----: | :------: | -----: | ----: | ---: | ----: |\n"
185 if [ -n "${OT_REPORTER}" ]; then
213 …read -r -a size_old <<<"$(size "${old_file}" | awk '{text+=$1} {bss+=$2} {data+=$3} {total+=$4} EN…
214 …read -r -a size_new <<<"$(size "${new_file}" | awk '{text+=$1} {bss+=$2} {data+=$3} {total+=$4} EN…
216 local -a size_diff
219 size_diff[i]="$((size_new[i] - size_old[i]))"
228 printf "| %-26s | %-8s " "${name}" "${OT_SHA_OLD:0:8}"
232 printf "| %-26s | %-8s " "" "${OT_SHA_NEW:0:8}"
236 printf "| %-26s | %-8s " "" "+/-"
240 … printf "+----------------------------+----------+----------+----------+----------+----------+\n"
254 printf "| | %s " "+/-"
259 if [ -n "${OT_REPORTER}" ]; then
260 "${OT_REPORTER}" size "${old_file}" "${new_file}"
299 if [ -n "${OT_REPORTER}" ]; then
308 rm -rf "${OT_TMP_DIR}"
309 mkdir -p "${OT_TMP_DIR}"
312 git fetch --depth 1 --no-recurse-submodules origin "${OT_SHA_OLD}"
326 "ot-cli-ftd"
327 "ot-ncp-ftd"
328 "libopenthread-ftd.a"
329 "libopenthread-cli-ftd.a"
330 "libopenthread-ncp-ftd.a"
334 "ot-cli-mtd"
335 "ot-ncp-mtd"
336 "libopenthread-mtd.a"
337 "libopenthread-cli-mtd.a"
338 "libopenthread-ncp-mtd.a"
342 "ot-cli-ftd-br"
343 "libopenthread-ftd-br.a"
344 "libopenthread-cli-ftd-br.a"
349 "ot-rcp"
350 "libopenthread-rcp.a"
351 "libopenthread-radio.a"