File tree Expand file tree Collapse file tree 3 files changed +8
-8
lines changed
Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -21,4 +21,6 @@ RUN git clone https://git.code.sf.net/p/stm32flash/code stm32flash-code && \
2121RUN git clone https://github.com/RT-Thread/env.git /env/tools/scripts && \
2222 git clone https://github.com/RT-Thread/packages.git /env/packages/packages
2323COPY entrypoint.sh /entrypoint.sh
24- ENTRYPOINT ["/bin/bash" ,"/entrypoint.sh" ]
24+ COPY entrypoint.sh /entrypoint.sh
25+ RUN chmod +x /entrypoint.sh
26+ ENTRYPOINT ["/entrypoint.sh" ]
Original file line number Diff line number Diff line change @@ -6,11 +6,11 @@ branding:
66 icon : ' box'
77 color : ' blue'
88inputs :
9- target :
9+ TARGET :
1010 description : ' scons -target=?'
1111 default : mdk5
1212 required : true
13- std :
13+ STD :
1414 default : c99
1515 required : true
1616 description : ' cppcheck std'
Original file line number Diff line number Diff line change 1- #! /usr/ bin/env bash
1+ #! /bin/sh
22if [ ! -d ~ /.env ]; then ln /env ~ /.env -s; fi
33export PATH=$PATH :~ /.env/tools/scripts
44sed -i -e ' s/CONFIG_SYS_PKGS_DOWNLOAD_ACCELERATE=y/CONFIG_SYS_PKGS_DOWNLOAD_ACCELERATE=n/g' /env/tools/scripts/cmds/.config
5- TARGET=$1
6- STD=$2
75pkgs --printenv
86pkgs --list
97pkgs --update
10- cppcheck --enable=all --std=$STD applications/
11- scons --target=$TARGET
8+ cppcheck --enable=all --std=${ STD} applications/
9+ scons --target=${ TARGET}
You can’t perform that action at this time.
0 commit comments