Slightly simplify the build

This commit is contained in:
2026-04-01 19:28:42 +08:00
parent 9ba8063f19
commit 3e6df38f45
6 changed files with 20 additions and 5 deletions

View File

@@ -47,6 +47,7 @@ RUN depmod -b /out/rootfs $(ls /out/rootfs/lib/modules/)
RUN find /out/kernel -name "${DEVICE_TREE_TARGET}.dtb" -exec cp {} /out/ \;
RUN test -f "/out/${DEVICE_TREE_TARGET}.dtb"
RUN cd /out && tar zcf rootfs.tar.gz rootfs
FROM scratch
ARG DEVICE_TREE_TARGET
@@ -57,4 +58,4 @@ COPY --from=build \
/out/kernel/Image.gz \
/out/${DEVICE_TREE_TARGET}.dtb \
./
COPY --from=build /out/rootfs/ ./rootfs
COPY --from=build /out/rootfs.tar.gz ./rootfs.tar.gz