File tree Expand file tree Collapse file tree 3 files changed +13
-15
lines changed Expand file tree Collapse file tree 3 files changed +13
-15
lines changed Original file line number Diff line number Diff line change @@ -42,21 +42,21 @@ jobs:
4242 run : |
4343 sudo apt -y update
4444 sudo apt -y install \
45- bison flex gettext texinfo libncurses5-dev libncursesw5-dev \
46- gperf automake libtool pkg-config build-essential gperf genromfs \
47- libgmp-dev libmpc-dev libmpfr-dev libisl-dev binutils-dev libelf-dev \
48- libexpat-dev gcc-multilib g++-multilib u-boot-tools util-linux \
49- kconfig-frontends
50-
45+ bison flex gettext texinfo libncurses5-dev libncursesw5-dev \
46+ gperf automake libtool pkg-config build-essential gperf genromfs \
47+ libgmp-dev libmpc-dev libmpfr-dev libisl-dev binutils-dev libelf-dev \
48+ libexpat-dev gcc-multilib g++-multilib u-boot-tools util-linux \
49+ kconfig-frontends
50+
5151 - name : Install RISC-V toolchain
5252 run : |
5353 mkdir -p riscv-none-elf-gcc && \
5454 curl -s -L "https://github.com/xpack-dev-tools/riscv-none-elf-gcc-xpack/releases/download/v13.2.0-2/xpack-riscv-none-elf-gcc-13.2.0-2-linux-x64.tar.gz" \
55- | tar -C riscv-none-elf-gcc --strip-components 1 -xz
55+ | tar -C riscv-none-elf-gcc --strip-components 1 -xz
5656 export PATH="$PATH:`pwd`/riscv-none-elf-gcc/bin/"
5757 echo "PATH=$PATH" >> $GITHUB_ENV
5858 riscv-none-elf-gcc --version
59-
59+
6060 - name : Config ${{ matrix.example }}
6161 working-directory : ${{ matrix.example }}
6262 run : cmake -B build -GNinja -DBOARD_CONFIG=rv-virt:leds_swift -DENABLE_NUTTX_TRACE=ON
Original file line number Diff line number Diff line change @@ -68,4 +68,4 @@ Quit from QEMU: `Ctrl-a x`
6868
6969- [ Nuttx - Compiling with CMake] ( https://nuttx.apache.org/docs/latest/quickstart/compiling_cmake.html )
7070- [ NuttX - C++ Example using CMake] ( https://nuttx.apache.org/docs/latest/guides/cpp_cmake.html )
71- - [ NuttX - leds_rust] ( https://lupyuen.github.io/articles/rust6 )
71+ - [ NuttX - leds_rust] ( https://lupyuen.github.io/articles/rust6 )
Original file line number Diff line number Diff line change 99//
1010//===----------------------------------------------------------------------===//
1111
12- // swift-format-ignore-file
13-
1412@_cdecl ( " leds_swift_main " )
15- public func cMain( _ argc: Int32 , _ argv: UnsafeMutablePointer < UnsafeMutablePointer < Int8 > ? > ) -> Int32
16- {
13+ public func cMain(
14+ _ argc: Int32 , _ argv: UnsafeMutablePointer < UnsafeMutablePointer < Int8 > ? >
15+ ) -> Int32 {
1716 let ret = task_create (
1817 " led_daemon " ,
1918 LEDS_PRIORITY,
2019 LEDS_STACKSIZE,
2120 led_daemon,
22- nil ,
23- )
21+ nil )
2422
2523 if ret < 0 {
2624 print ( " leds_main: ERROR: Failed to start led_daemon " )
You can’t perform that action at this time.
0 commit comments