File tree Expand file tree Collapse file tree 1 file changed +31
-4
lines changed
Expand file tree Collapse file tree 1 file changed +31
-4
lines changed Original file line number Diff line number Diff line change @@ -16,24 +16,51 @@ build-minimal:
1616 --load \
1717 .
1818
19+ .PHONY : build-rpi-aarch64
20+ build-rpi-aarch64 :
21+ $(MAKE ) build-aarch64 kind=rpi-aarch64 kernel=linux-rpi
22+
23+ .PHONY : build-generic-aarch64
24+ build-generic-aarch64 :
25+ $(MAKE ) build-aarch64 kind=generic-aarch64 kernel=linux-aarch64
26+
27+ .PHONY : build-aarch64
28+ build-aarch64 :
29+ docker buildx build \
30+ --build-arg KERNEL=$(kernel) \
31+ --platform $(PLATFORMS) \
32+ -t $(IMAGE):$(kind) \
33+ -f dockerfiles/Dockerfile.aarch64 \
34+ --load \
35+ .
36+
1937.PHONY : export
2038export :
2139 docker buildx build \
2240 --platform $(PLATFORMS) \
2341 -t $(IMAGE ) :minimal-aarch64-export \
24- -f dockerfiles/Dockerfile.base.aarch64 \
42+ -f dockerfiles/Dockerfile.base \
43+ --target export \
44+ --load .
45+
46+ .PHONY : export-rpi
47+ export-rpi :
48+ docker buildx build \
49+ --platform $(PLATFORMS) \
50+ -t $(IMAGE ) :rpi-aarch64-export \
51+ -f dockerfiles/Dockerfile.aarch64 \
2552 --target export \
2653 --load .
2754
2855.PHONY : create-rootfs-container
2956create-rootfs-container :
30- docker create --platform=linux/arm64 --name take $(IMAGE ) :minimal -aarch64-export sh
57+ docker create --platform=linux/arm64 --name take $(IMAGE ) :generic -aarch64 sh
3158
3259.PHONY : copy-rootfs-tar
3360copy-rootfs-tar :
34- docker cp take:/archlinuxarm-aarch64-rootfs.tar ./rootfs.tar
61+ docker cp take:/archlinuxarm-rpi- aarch64-rootfs.tar ./rootfs.tar
3562 docker rm -f take
3663
3764.PHONY : prepare-rpi-img
38- prepare-rpi-image : export create-rootfs-container copy-rootfs-tar
65+ prepare-rpi-image : create-rootfs-container copy-rootfs-tar
3966 ./scripts/build_img.sh
You can’t perform that action at this time.
0 commit comments