forked from remusmp/rpi-rt-kernel
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
26 lines (19 loc) · 739 Bytes
/
Makefile
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
RASPIOS_IMAGE_NAME=raspios_lite_arm64
.PHONY: all custom
all: clean
$(MAKE) build raspios_image_name=$(RASPIOS_IMAGE_NAME)
Pi1 Pi2 PiZero PiCM1: clean
$(MAKE) build platform32=1 raspios_image_name=raspios_lite_armhf
Pi3 Pi4 Pi400 PiZero2 PiCM3 PiCM4: clean
$(MAKE) build raspios_image_name=$(RASPIOS_IMAGE_NAME)
build:
mkdir -p build
docker build --build-arg PLATFORM32=$(platform32) --build-arg RASPIOS_IMAGE_NAME=$(raspios_image_name) -t rpi-rt-linux .
docker rm tmp-rpi-rt-linux || true
docker run --privileged --name tmp-rpi-rt-linux rpi-rt-linux /raspios/build.sh
docker cp tmp-rpi-rt-linux:/raspios/build/ ./
docker rm tmp-rpi-rt-linux
custom:
docker run --rm --privileged -it rpi-rt-linux bash
clean:
rm -fr build