2024-09-16 22:26:08 +00:00
|
|
|
FROM scratch AS base
|
2024-09-11 16:21:27 +00:00
|
|
|
ENV VERSION=20230628
|
|
|
|
ENV SRC_HASH=86876a745e3d224dcfd222ed3de465b47559e85811df2db9820ef09a9dff5cce
|
|
|
|
ENV SRC_FILE=acpica-unix-${VERSION}.tar.gz
|
|
|
|
ENV SRC_SITE=https://downloadmirror.intel.com/783549/${SRC_FILE}
|
|
|
|
|
2024-09-16 22:26:08 +00:00
|
|
|
FROM base AS fetch
|
2024-09-11 16:21:27 +00:00
|
|
|
ADD --checksum=sha256:${SRC_HASH} ${SRC_SITE} .
|
|
|
|
|
2024-09-16 22:26:08 +00:00
|
|
|
FROM fetch AS build
|
2024-09-11 16:21:27 +00:00
|
|
|
COPY --from=stagex/busybox . /
|
|
|
|
COPY --from=stagex/gcc . /
|
|
|
|
COPY --from=stagex/musl . /
|
|
|
|
COPY --from=stagex/binutils . /
|
|
|
|
COPY --from=stagex/make . /
|
|
|
|
COPY --from=stagex/bison . /
|
2024-09-16 22:26:08 +00:00
|
|
|
COPY --from=stagex/flex . /
|
|
|
|
COPY --from=stagex/m4 . /
|
2024-09-11 16:21:27 +00:00
|
|
|
RUN tar -xf ${SRC_FILE}
|
2024-09-16 22:26:08 +00:00
|
|
|
WORKDIR /acpica-unix-${VERSION}
|
2024-09-23 10:40:34 +00:00
|
|
|
ENV SOURCE_DATE_EPOCH=1
|
2024-09-16 22:26:08 +00:00
|
|
|
ENV LDFLAGS="-Wl,-z,pack-relative-relocs"
|
|
|
|
RUN --network=none make NOWERROR=TRUE -j "$(nproc)"
|
2024-09-11 16:21:27 +00:00
|
|
|
|
|
|
|
FROM build AS install
|
|
|
|
RUN --network=none DESTDIR=/rootfs make install
|
|
|
|
|
|
|
|
FROM stagex/filesystem AS package
|
2024-09-16 22:26:08 +00:00
|
|
|
COPY --from=install /rootfs/. /
|