From 1f63350eba2cd77c902bdba8c2d4033038feae81 Mon Sep 17 00:00:00 2001 From: Henry Wang Date: Fri, 7 May 2021 21:40:59 +0800 Subject: [PATCH] resources: Remove libfdt in docker image Signed-off-by: Henry Wang --- resources/Dockerfile | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/resources/Dockerfile b/resources/Dockerfile index 0de8ce887..3af9ce227 100644 --- a/resources/Dockerfile +++ b/resources/Dockerfile @@ -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)" \