Skip to content

Commit

Permalink
Update article
Browse files Browse the repository at this point in the history
  • Loading branch information
lupyuen committed Dec 2, 2024
1 parent 71ba073 commit 4172fc5
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 1 deletion.
Binary file added images/ci5-build.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/ci5-farm.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
Binary file added images/ci5-toolchains.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
24 changes: 23 additions & 1 deletion src/ci5.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ TODO

- TODO: Thanks to the awesome work by [__Simbit18__](TODO)!

> ![GNU Coreutils and Binutils on PATH are also known to break build in MacOS](https://lupyuen.github.io/images/ci5-path.png)
> [_"GNU Coreutils and Binutils on PATH are also known to break build in MacOS"_](https://github.com/pyenv/pyenv/issues/2862#issuecomment-1849198741)
# Fix the PATH!

__Super Important!__ NuttX won't build correctly on macOS unless we remove __Homebrew ar__ from __PATH__: [run-job-macos.sh](https://github.com/lupyuen/nuttx-build-farm/blob/main/run-job-macos.sh)
Expand Down Expand Up @@ -52,6 +56,8 @@ ld: archive member '/' not a mach-o file in 'libgp.a'
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
```

> ![Building raspberrypi-pico:nsh on macOS](https://lupyuen.github.io/images/ci5-build.png)
# Build Anything on macOS

Earlier we talked about compiling __Any NuttX Target__ on macOS: [run-build-macos.sh](https://github.com/lupyuen/nuttx-build-farm/blob/main/run-build-macos.sh)
Expand Down Expand Up @@ -96,7 +102,9 @@ Just make sure we've installed [__brew__](TODO), [__neofetch__](TODO) and [__Xco

[(Yep the same script drives our __GitHub Daily Builds__)](TODO)

[(Toolchains are downloaded in __10 mins__, subsequent builds are quicker)](https://gist.github.com/lupyuen/0274fa1ed737d3c82a6b11883a4ad761#file-gistfile1-txt-L4236)
> ![Toolchains are downloaded in __10 mins__, subsequent builds are quicker](https://lupyuen.github.io/images/ci5-toolchains.png)
> [_Toolchains are downloaded in __10 mins__, subsequent builds are quicker_](https://gist.github.com/lupyuen/0274fa1ed737d3c82a6b11883a4ad761#file-gistfile1-txt-L4236)
# Patch the CI Script

Expand Down Expand Up @@ -201,6 +209,8 @@ pushd nuttx-patched/tools/ci
...
```
TODO: Pic of sim:nsh
# Except These Targets
_Awesome! We can compile Everything NuttX on macOS Arm64?_
Expand All @@ -224,6 +234,8 @@ Erm sorry not quite. These NuttX Targets __won't compile on macOS__...
We'll come back to this. First we talk about NuttX Build Farm...
![TODO](https://lupyuen.github.io/images/ci5-farm.jpg)
# macOS Build Farm
_What about the macOS Build Farm?_
Expand Down Expand Up @@ -379,6 +391,14 @@ Not really, Compiling Arm on Arm isn't much faster. Strangely: macOS Arm64 seems
I still prefer Ubuntu PC for compiling NuttX, lemme explain...
![Refurbished 12-Core Xeon ThinkStation ($400 / 24 kg!) becomes (hefty) Ubuntu Build Farm for Apache NuttX RTOS. 4 times the throughput of a PC!](https://lupyuen.github.io/images/ci4-thinkstation.jpg)
<span style="font-size:80%">
[_Refurbished 12-Core Xeon ThinkStation ($400 / 24 kg!) becomes (hefty) Ubuntu Build Farm for Apache NuttX RTOS. 4 times the throughput of a PC!_](https://qoto.org/@lupyuen/113517788288458811)
</span>
# macOS Reconsidered
_Is macOS good enough for NuttX Development?_
Expand Down Expand Up @@ -411,6 +431,8 @@ clang: error: invalid argument 'medium' to -mcmodel=
[(It was __Previously Working!__)](https://github.com/apache/nuttx/pull/14606#pullrequestreview-2425925903)
![Build Farm for Apache NuttX RTOS](https://lupyuen.github.io/images/ci4-flow.jpg)
# What's Next
TODO
Expand Down

0 comments on commit 4172fc5

Please sign in to comment.