Skip to content

Commit

Permalink
maintainer updates
Browse files Browse the repository at this point in the history
  • Loading branch information
rauhul committed Jan 3, 2025
1 parent 9b701d6 commit 75a8c65
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 15 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/build-nuttx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion nuttx-riscv-blink/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
- [NuttX - leds_rust](https://lupyuen.github.io/articles/rust6)
10 changes: 4 additions & 6 deletions nuttx-riscv-blink/leds_swift/leds_swift.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,16 @@
//
//===----------------------------------------------------------------------===//

// swift-format-ignore-file

@_cdecl("leds_swift_main")
public func cMain(_ argc: Int32, _ argv: UnsafeMutablePointer<UnsafeMutablePointer<Int8>?>) -> Int32
{
public func cMain(
_ argc: Int32, _ argv: UnsafeMutablePointer<UnsafeMutablePointer<Int8>?>
) -> 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")
Expand Down

0 comments on commit 75a8c65

Please sign in to comment.