mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-12-22 13:45:20 +00:00
resources: Remove libfdt in docker image
Signed-off-by: Henry Wang <Henry.Wang@arm.com>
This commit is contained in:
parent
cb26ad511b
commit
1f63350eba
@ -37,7 +37,6 @@ RUN apt-get update \
|
||||
socat \
|
||||
dosfstools \
|
||||
cpio \
|
||||
libfdt-dev \
|
||||
python3-setuptools \
|
||||
&& apt-get clean \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
@ -56,14 +55,7 @@ RUN if [ "$TARGETARCH" = "arm64" ]; then \
|
||||
&& apt-get -yq upgrade \
|
||||
&& DEBIAN_FRONTEND=noninteractive apt-get install -yq libcap2-bin \
|
||||
&& apt-get clean \
|
||||
&& rm -rf /var/lib/apt/lists/* \
|
||||
# Build and install the musl-gcc version of libfdt. This is to ensure
|
||||
# the cloud-hypervisor binary can be built and linked using musl toolchain.
|
||||
&& git clone https://github.com/dgibson/dtc.git && cd dtc \
|
||||
&& sed -i 's/$(LIBFDT_archive) $(LIBFDT_lib)/$(LIBFDT_archive)/g' Makefile \
|
||||
&& export CC=musl-gcc && make libfdt \
|
||||
&& cp libfdt/libfdt.a /usr/lib/aarch64-linux-musl \
|
||||
&& rm -rf /dtc; fi
|
||||
&& rm -rf /var/lib/apt/lists/*; fi
|
||||
|
||||
# Fix the libssl-dev install
|
||||
RUN export ARCH="$(uname -m)" \
|
||||
|
Loading…
Reference in New Issue
Block a user