Skip to content

Commit 9403cb3

Browse files
committed
Added LLVM instructions
1 parent ec9afca commit 9403cb3

File tree

4 files changed

+4
-2
lines changed

4 files changed

+4
-2
lines changed

rpi4b-blink/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
- A Raspberry Pi 4B board
88
- An SD Card, with a Raspberry Pi OS installed (this way, we don't need to create the configuration files from scratch). You may backup `kernel8.img` and `config.txt` if you need the Linux install later, since we will change these files.
9+
- LLVM installed (`brew install llvm`) and added to PATH. This is needed to convert the resulted ELF file to binary image format using `llvm-objcopy`.
910

1011
## How to build and run this example:
1112

rpi4b-blink/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
SWIFT_EXEC=${SWIFT_EXEC:-`xcrun -f swift`}
44
CLANG=${CLANG:-`xcrun -f clang`}
5-
LLVM_OBJCOPY=/opt/homebrew/opt/llvm@17/bin/llvm-objcopy #${LLVM_OBJCOPY:-`xcrun -f llvm-objcopy`}
5+
LLVM_OBJCOPY=${LLVM_OBJCOPY:-`xcrun -f llvm-objcopy`}
66

77
echo "🛠️ Building with Swift Package Manager... "
88

rpi5-blink/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
- A Raspberry Pi 5 board
88
- An SD Card, with a Raspberry Pi OS installed (this way, we don't need to create the configuration files from scratch). You may backup `kernel8.img` and `kernel_2712.img` if you need the Linux install later, since we will change these files.
9+
- LLVM installed (`brew install llvm`) and added to PATH. This is needed to convert the resulted ELF file to binary image format using `llvm-objcopy`.
910

1011
## How to build and run this example:
1112

rpi5-blink/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
SWIFT_EXEC=${SWIFT_EXEC:-`xcrun -f swift`}
44
CLANG=${CLANG:-`xcrun -f clang`}
5-
LLVM_OBJCOPY=/opt/homebrew/opt/llvm@17/bin/llvm-objcopy #${LLVM_OBJCOPY:-`xcrun -f llvm-objcopy`}
5+
LLVM_OBJCOPY=${LLVM_OBJCOPY:-`xcrun -f llvm-objcopy`}
66

77
echo "🛠️ Building with Swift Package Manager... "
88

0 commit comments

Comments
 (0)