From 75a8c65c84583ae7cac63c4b71d6794bb2340f36 Mon Sep 17 00:00:00 2001 From: Rauhul Varma Date: Thu, 2 Jan 2025 21:15:33 -0800 Subject: [PATCH] maintainer updates --- .github/workflows/build-nuttx.yml | 16 ++++++++-------- nuttx-riscv-blink/README.md | 2 +- nuttx-riscv-blink/leds_swift/leds_swift.swift | 10 ++++------ 3 files changed, 13 insertions(+), 15 deletions(-) diff --git a/.github/workflows/build-nuttx.yml b/.github/workflows/build-nuttx.yml index b00a361..3b8c326 100644 --- a/.github/workflows/build-nuttx.yml +++ b/.github/workflows/build-nuttx.yml @@ -42,21 +42,21 @@ jobs: run: | sudo apt -y update sudo apt -y install \ - bison flex gettext texinfo libncurses5-dev libncursesw5-dev \ - gperf automake libtool pkg-config build-essential gperf genromfs \ - libgmp-dev libmpc-dev libmpfr-dev libisl-dev binutils-dev libelf-dev \ - libexpat-dev gcc-multilib g++-multilib u-boot-tools util-linux \ - kconfig-frontends - + bison flex gettext texinfo libncurses5-dev libncursesw5-dev \ + gperf automake libtool pkg-config build-essential gperf genromfs \ + libgmp-dev libmpc-dev libmpfr-dev libisl-dev binutils-dev libelf-dev \ + libexpat-dev gcc-multilib g++-multilib u-boot-tools util-linux \ + kconfig-frontends + - name: Install RISC-V toolchain run: | mkdir -p riscv-none-elf-gcc && \ 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" \ - | tar -C riscv-none-elf-gcc --strip-components 1 -xz + | tar -C riscv-none-elf-gcc --strip-components 1 -xz export PATH="$PATH:`pwd`/riscv-none-elf-gcc/bin/" echo "PATH=$PATH" >> $GITHUB_ENV riscv-none-elf-gcc --version - + - name: Config ${{ matrix.example }} working-directory: ${{ matrix.example }} run: cmake -B build -GNinja -DBOARD_CONFIG=rv-virt:leds_swift -DENABLE_NUTTX_TRACE=ON diff --git a/nuttx-riscv-blink/README.md b/nuttx-riscv-blink/README.md index 506b99c..4a47239 100644 --- a/nuttx-riscv-blink/README.md +++ b/nuttx-riscv-blink/README.md @@ -68,4 +68,4 @@ Quit from QEMU: `Ctrl-a x` - [Nuttx - Compiling with CMake](https://nuttx.apache.org/docs/latest/quickstart/compiling_cmake.html) - [NuttX - C++ Example using CMake](https://nuttx.apache.org/docs/latest/guides/cpp_cmake.html) -- [NuttX - leds_rust](https://lupyuen.github.io/articles/rust6) \ No newline at end of file +- [NuttX - leds_rust](https://lupyuen.github.io/articles/rust6) diff --git a/nuttx-riscv-blink/leds_swift/leds_swift.swift b/nuttx-riscv-blink/leds_swift/leds_swift.swift index 85d3200..1cadcf4 100644 --- a/nuttx-riscv-blink/leds_swift/leds_swift.swift +++ b/nuttx-riscv-blink/leds_swift/leds_swift.swift @@ -9,18 +9,16 @@ // //===----------------------------------------------------------------------===// -// swift-format-ignore-file - @_cdecl("leds_swift_main") -public func cMain(_ argc: Int32, _ argv: UnsafeMutablePointer?>) -> Int32 -{ +public func cMain( + _ argc: Int32, _ argv: UnsafeMutablePointer?> +) -> Int32 { let ret = task_create( "led_daemon", LEDS_PRIORITY, LEDS_STACKSIZE, led_daemon, - nil, - ) + nil) if ret < 0 { print("leds_main: ERROR: Failed to start led_daemon")