Skip to content

Commit c8fcd70

Browse files
authored
Merge pull request #70 from hermit-os/prebuilt
feat: distribute a prebuilt kernel library
2 parents b092bd9 + f0af003 commit c8fcd70

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ RUN cargo xtask build \
1111
--arch $ARCH \
1212
--release \
1313
--no-default-features \
14-
--features acpi,dhcpv4,mman,newlib,pci,smp,tcp
14+
--features acpi,dhcpv4,dns,mman,newlib,pci,smp,tcp,udp,virtio-net,warn-prebuilt
1515

1616
FROM buildpack-deps:trixie AS binutils
1717
RUN set -eux; \
@@ -149,6 +149,7 @@ ARG RUST_TARGET
149149
ARG TARGET
150150
ARG PREFIX
151151
COPY --link --from=gcc $PREFIX $PREFIX
152+
COPY --link --from=kernel /kernel/libhermit.a $PREFIX/$TARGET/lib/
152153
ENV PATH=$PREFIX/bin:$PATH \
153154
LD_LIBRARY_PATH=$PREFIX/lib:$LD_LIBRARY_PATH \
154155
AR_${RUST_TARGET//-/_}=$TARGET-ar \

0 commit comments

Comments
 (0)