Skip to content

Commit 694a79f

Browse files
committed
fix: make BusyBox build non-interactive and remove invalid BUILD_JOBS default in Dockerfile
1 parent 9b615e4 commit 694a79f

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

Dockerfile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ ARG LINUX_VERSION=master
1818
ARG BUSYBOX_VERSION=master
1919
ARG SYSLINUX_VERSION=6.04-pre1
2020
ARG DEBIAN_FRONTEND=noninteractive
21-
ARG BUILD_JOBS=auto
21+
ARG BUILD_JOBS=
2222

2323
# Add metadata labels
2424
LABEL maintainer="handbuilt-linux-project"
@@ -149,7 +149,11 @@ COPY busybox.config /build/busybox/.config
149149

150150
# Build and install BusyBox
151151
WORKDIR /build/busybox
152-
RUN make oldconfig && \
152+
RUN if [ -f .config ]; then \
153+
make olddefconfig; \
154+
else \
155+
make defconfig; \
156+
fi && \
153157
make -j"${BUILD_JOBS:-$(nproc)}" && \
154158
make CONFIG_PREFIX=/build/initramfs install && \
155159
strip /build/initramfs/bin/busybox

0 commit comments

Comments
 (0)