README.md: mention disabling parallel build on Pi

On bullseye it seems to default to 'make -j4' which will results
in OOM when it runs out of swap

==
[ 3004.100215] Out of memory: Killed process 6983 (cc1plus) total-vm:211660kB, anon-rss:170332kB, file-rss:0kB, shmem-rss:0kB, UID:1000 pgtables:428kB oom_score_adj:0
==

Mention how to disable parallel build in README.md
This commit is contained in:
Floris Bos 2021-11-27 19:11:09 +01:00
parent 35172d3489
commit 8b25991537

View file

@ -30,6 +30,14 @@ sudo apt install --no-install-recommends build-essential devscripts debhelper cm
git clone --depth 1 https://github.com/raspberrypi/rpi-imager git clone --depth 1 https://github.com/raspberrypi/rpi-imager
``` ```
#### Building on the Pi
If building on a device with limited memory (e.g. 1 GB Pi), disable parallel build or it may run out of memory:
```
export DEB_BUILD_OPTIONS="parallel=1"
```
#### Build the Debian package #### Build the Debian package
``` ```