Docker build : split build.sh into 2 scripts : build.sh that always exists and post_build.sh that is generated by cmake build.sh

This commit is contained in:
JF
2020-08-20 09:38:10 +02:00
parent acbe9176f0
commit e6a1aff6ce
4 changed files with 16 additions and 11 deletions

12
docker/build.sh Executable file
View File

@@ -0,0 +1,12 @@
#!/bin/sh
export LC_ALL=C.UTF-8
export LANG=C.UTF-8
set -x
mkdir /sources/build
cd /sources/build
cmake -DARM_NONE_EABI_TOOLCHAIN_PATH=/opt/gcc-arm-none-eabi-9-2020-q2-update -DNRF5_SDK_PATH=/opt/nRF5_SDK_15.3.0_59ac345 -DUSE_OPENOCD=1 ../
make -j$(nproc)
sh /sources/docker/post_build.sh