-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
48 lines (46 loc) · 1.69 KB
/
docker-compose.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
version: "3"
services:
# Builds with "<volume>/linux-<branch>/.config" file, defaults to pi4x64
buildenv:
build: .
image: "pios-kbuildenv"
environment:
- EXIT_ON_ERROR=${EXIT_ON_ERROR:-true}
- GITCOMMITHASH=${GITCOMMITHASH}
- REPOSITORY=${REPOSITORY:-https://github.com/raspberrypi/linux}
- BRANCH=${BRANCH:-rpi-5.10.y}
- MODEL=${MODEL:-pi4x64}
- MAKEJOBS=${MAKEJOBS:-4}
- MAKEOPTS=${MAKEOPTS}
- MAKE_CLEAN=${MAKE_CLEAN:-false}
- MAKE_DEFCONFIG=${MAKE_DEFCONFIG:-true}
- MAKE_IMAGE=${MAKE_IMAGE:-true}
- MAKE_MODULES=${MAKE_MODULES:-true}
- MAKE_DTBS=${MAKE_DTBS:-true}
- MAKE_MODULES_INSTALL=${MAKE_MODULES_INSTALL:-true}
volumes:
- "./${SCRIPT:-scripts/compile.sh}:/compile.sh"
- "./${OUTPUTDIR:-app64}:/app"
# Uses / Requires kconfig file, defaults to pi4x64
buildenv_kconfig:
build: .
image: "pios-kbuildenv-kconfig"
environment:
- EXIT_ON_ERROR=${EXIT_ON_ERROR:-true}
- GITCOMMITHASH=${GITCOMMITHASH}
- REPOSITORY=${REPOSITORY:-https://github.com/raspberrypi/linux}
- BRANCH=${BRANCH:-rpi-5.10.y}
- MODEL=${MODEL:-pi4x64}
- MAKEJOBS=${MAKEJOBS:-4}
- MAKEOPTS=${MAKEOPTS}
- MAKE_CLEAN=${MAKE_CLEAN:-false}
- MAKE_DEFCONFIG=${MAKE_DEFCONFIG:-true}
- MAKE_IMAGE=${MAKE_IMAGE:-true}
- MAKE_MODULES=${MAKE_MODULES:-true}
- MAKE_DTBS=${MAKE_DTBS:-true}
- MAKE_MODULES_INSTALL=${MAKE_MODULES_INSTALL:-true}
- KCONFIG=${KCONFIG:-configs/pi4x64.config}
volumes:
- "./${SCRIPT:-scripts/compile.sh}:/compile.sh"
- "./${OUTPUTDIR:-app64}:/app"
- "./${KCONFIG:-configs/pi4x64.config}:/config"