
* tock: use native time getter, remove globals Tock has direct support for querying time. The prior `millis()` method here replicated the same functionality, but missed some corner case concerns around overflow/wrapping. Instead, just use the native Tock time getter method. This also removes unneeded global variables and methods. * NonArduino/Tock: Update to latest libtock-c Update to the latest libtock-c commit. libtock-c now includes a libtockHal.h, so we can use that instead of the version here. Signed-off-by: Alistair Francis <alistair@alistair23.me> --------- Signed-off-by: Alistair Francis <alistair@alistair23.me> Co-authored-by: Pat Pannuto <pat.pannuto@gmail.com>
30 lines
482 B
Bash
Executable file
30 lines
482 B
Bash
Executable file
#!/bin/bash
|
|
set -e
|
|
|
|
rm -rf ./build-*
|
|
|
|
pushd ${LIBTOCK_C_DIRECTORY}/examples/cxx_hello
|
|
make -j4
|
|
popd
|
|
|
|
mkdir -p build-arm
|
|
cd build-arm
|
|
|
|
cmake -G "CodeBlocks - Unix Makefiles" ..
|
|
make -j4
|
|
|
|
cd ..
|
|
|
|
if ! env | grep SKIP_RISCV; then
|
|
mkdir -p build-riscv
|
|
cd build-riscv
|
|
|
|
cmake -G "CodeBlocks - Unix Makefiles" -DRISCV_BUILD=1 ..
|
|
make -j4
|
|
|
|
cd ..
|
|
fi
|
|
|
|
elf2tab -n radio-lib --stack 4096 --app-heap 2048 --kernel-heap 2048 \
|
|
--kernel-major 2 --kernel-minor 1 \
|
|
-v ./build-arm/tock-sx1261
|