Skip to content

Commit

Permalink
chore: update cross compile instructions for building with right user
Browse files Browse the repository at this point in the history
  • Loading branch information
devgianlu committed Nov 7, 2024
1 parent 8f0f1dd commit f2de517
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions CROSS_COMPILE.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,23 +57,23 @@ docker build \
### Target Linux x86_64

```bash
docker run --rm -v $PWD:/src -e GOOUTSUFFIX=-x86_64 go-librespot-build-x86_64
docker run --rm -u $(id -u):$(id -g) -v $PWD:/src -e GOOUTSUFFIX=-x86_64 go-librespot-build-x86_64
```

### Target Linux on Raspberry Pi 1 / Zero

```bash
docker run --rm -v $PWD:/src -e GOOUTSUFFIX=-armv6_rpi go-librespot-build-armv6_rpi
docker run --rm -u $(id -u):$(id -g) -v $PWD:/src -e GOOUTSUFFIX=-armv6_rpi go-librespot-build-armv6_rpi
```

### Target Linux ARM32 (Raspberry Pi 2 and above)

```bash
docker run --rm -v $PWD:/src -e GOOUTSUFFIX=-armv6 go-librespot-build-armv6
docker run --rm -u $(id -u):$(id -g) -v $PWD:/src -e GOOUTSUFFIX=-armv6 go-librespot-build-armv6
```

### Target Linux ARM64

```bash
docker run --rm -v $PWD:/src g-e GOOUTSUFFIX=-arm64 go-librespot-build-arm64
docker run --rm -u $(id -u):$(id -g) -v $PWD:/src g-e GOOUTSUFFIX=-arm64 go-librespot-build-arm64
```

0 comments on commit f2de517

Please sign in to comment.