Skip to content

Commit

Permalink
README.md: Building: Add FreeBSD dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
wonderfulShrineMaidenOfParadise committed Jun 5, 2024
1 parent d537b02 commit daddae4
Showing 1 changed file with 23 additions and 4 deletions.
27 changes: 23 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -170,27 +170,46 @@ write the log to standard output.
Check [Supported SoCs](#supported-socs) for the make target you should use below.
(It depends on the SoC of your device.)

```
$ make TOOLCHAIN_PREFIX=arm-none-eabi- lk2nd-msmXXXX
```

**Requirements:**
- Unix-like OS, Linux or FreeBSD
- Native
- Live USB
- Virtual machine
- chroot
- ARM (32 bit) GCC tool chain
- Arch Linux: `arm-none-eabi-gcc`
- Alpine Linux and postmarketOS: `gcc-arm-none-eabi`
- Debian and Ubuntu: `gcc-arm-none-eabi`
- Fedora: `arm-none-eabi-gcc-cs`
- FreeBSD: `arm-none-eabi-gcc`
- [Device Tree Compiler](https://git.kernel.org/pub/scm/utils/dtc/dtc.git)
- Arch Linux: `dtc`
- Alpine Linux and postmarketOS: `dtc`
- Debian and Ubuntu: `device-tree-compiler`
- Fedora: `dtc`
- FreeBSD: `dtc`
- libfdt
- Alpine Linux and postmarketOS: `dtc-dev`
- Debian and Ubuntu: `libfdt-dev`
- Fedora: `libfdt-devel`
- FreeBSD: `dtc`
- GNU cpp
- FreeBSD: `gcc12`
- GNU make
- FreeBSD: `gmake`
- GNU tar
- Alpine Linux and postmarketOS: `tar`
- FreeBSD: `gtar`

### Linux
```
$ make TOOLCHAIN_PREFIX=arm-none-eabi- lk2nd-msmXXXX
```

### FreeBSD
```
$ gmake CPP=cpp12 TAR=gtar TOOLCHAIN_PREFIX=arm-none-eabi- lk2nd-msmXXXX
```

Replace `TOOLCHAIN_PREFIX` with the path to your tool chain.
`lk2nd.img` is built and placed into `build-lk2nd-msmXXXX/lk2nd.img`.
Expand Down

0 comments on commit daddae4

Please sign in to comment.