diff --git a/Dockerfile b/Dockerfile index dcec8ce..d3cc9cb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,7 +8,7 @@ ARG WIZER_VERSION=04e49c989542f2bf3a112d60fbf88a62cce2d0d0 ARG EMSDK_VERSION=3.1.40 # TODO: support recent version ARG EMSDK_VERSION_QEMU=3.1.50 # TODO: support recent version ARG BINARYEN_VERSION=114 -ARG BUSYBOX_VERSION=1_36_1 +ARG BUSYBOX_VERSION=1.36.1 ARG RUNC_VERSION=v1.2.0-rc.2 # ARG LINUX_LOGLEVEL=0 @@ -216,10 +216,12 @@ FROM binfmt-$TARGETARCH AS binfmt-dev FROM gcc-riscv64-linux-gnu-base AS busybox-riscv64-dev ARG BUSYBOX_VERSION -RUN apt-get update -y && apt-get install -y gcc bzip2 +RUN apt-get update -y && apt-get install -y gcc bzip2 wget WORKDIR /work -RUN git clone -b $BUSYBOX_VERSION --depth 1 https://git.busybox.net/busybox -WORKDIR /work/busybox +RUN wget https://busybox.net/downloads/busybox-${BUSYBOX_VERSION}.tar.bz2 +RUN bzip2 -d busybox-${BUSYBOX_VERSION}.tar.bz2 +RUN tar xvf busybox-${BUSYBOX_VERSION}.tar +WORKDIR /work/busybox-${BUSYBOX_VERSION} RUN make CROSS_COMPILE=riscv64-linux-gnu- LDFLAGS=--static defconfig RUN make CROSS_COMPILE=riscv64-linux-gnu- LDFLAGS=--static -j$(nproc) RUN mkdir -p /out/bin && mv busybox /out/bin/busybox @@ -502,10 +504,12 @@ COPY --link --from=linux-amd64-config-dev /work-buildlinux/linux/.config / FROM gcc-x86-64-linux-gnu-base AS busybox-amd64-dev ARG BUSYBOX_VERSION -RUN apt-get update -y && apt-get install -y gcc bzip2 +RUN apt-get update -y && apt-get install -y gcc bzip2 wget WORKDIR /work -RUN git clone -b $BUSYBOX_VERSION --depth 1 https://git.busybox.net/busybox -WORKDIR /work/busybox +RUN wget https://busybox.net/downloads/busybox-${BUSYBOX_VERSION}.tar.bz2 +RUN bzip2 -d busybox-${BUSYBOX_VERSION}.tar.bz2 +RUN tar xvf busybox-${BUSYBOX_VERSION}.tar +WORKDIR /work/busybox-${BUSYBOX_VERSION} RUN make CROSS_COMPILE=x86_64-linux-gnu- LDFLAGS=--static defconfig RUN make CROSS_COMPILE=x86_64-linux-gnu- LDFLAGS=--static -j$(nproc) RUN mkdir -p /out/bin && mv busybox /out/bin/busybox @@ -624,10 +628,12 @@ COPY --link --from=linux-aarch64-config-dev /work-buildlinux/linux/.config / FROM gcc-aarch64-linux-gnu-base AS busybox-aarch64-dev ARG BUSYBOX_VERSION -RUN apt-get update -y && apt-get install -y gcc bzip2 +RUN apt-get update -y && apt-get install -y gcc bzip2 wget WORKDIR /work -RUN git clone -b $BUSYBOX_VERSION --depth 1 https://git.busybox.net/busybox -WORKDIR /work/busybox +RUN wget https://busybox.net/downloads/busybox-${BUSYBOX_VERSION}.tar.bz2 +RUN bzip2 -d busybox-${BUSYBOX_VERSION}.tar.bz2 +RUN tar xvf busybox-${BUSYBOX_VERSION}.tar +WORKDIR /work/busybox-${BUSYBOX_VERSION} RUN make CROSS_COMPILE=aarch64-linux-gnu- LDFLAGS=--static defconfig RUN make CROSS_COMPILE=aarch64-linux-gnu- LDFLAGS=--static -j$(nproc) RUN mkdir -p /out/bin && mv busybox /out/bin/busybox diff --git a/examples/raspi3ap-qemu/image/Dockerfile b/examples/raspi3ap-qemu/image/Dockerfile index a27facd..0c43c7c 100644 --- a/examples/raspi3ap-qemu/image/Dockerfile +++ b/examples/raspi3ap-qemu/image/Dockerfile @@ -1,13 +1,15 @@ -ARG BUSYBOX_VERSION=1_36_1 +ARG BUSYBOX_VERSION=1.36.1 ARG KERNEL_TAG=1.20230405 FROM ubuntu:22.04 AS rootfs-dev RUN apt-get update && apt-get install -y gcc-aarch64-linux-gnu linux-libc-dev-arm64-cross git make ARG BUSYBOX_VERSION -RUN apt-get update -y && apt-get install -y gcc bzip2 +RUN apt-get update -y && apt-get install -y gcc bzip2 wget WORKDIR /work -RUN git clone -b $BUSYBOX_VERSION --depth 1 https://git.busybox.net/busybox -WORKDIR /work/busybox +RUN wget https://busybox.net/downloads/busybox-${BUSYBOX_VERSION}.tar.bz2 +RUN bzip2 -d busybox-${BUSYBOX_VERSION}.tar.bz2 +RUN tar xvf busybox-${BUSYBOX_VERSION}.tar +WORKDIR /work/busybox-${BUSYBOX_VERSION} RUN make CROSS_COMPILE=aarch64-linux-gnu- LDFLAGS=--static defconfig RUN make CROSS_COMPILE=aarch64-linux-gnu- LDFLAGS=--static -j$(nproc) RUN mkdir -p /rootfs/bin && mv busybox /rootfs/bin/busybox