syslinux

Details
Source
FROM scratch AS build
ARG VERSION
COPY --from=stagex/core-busybox . /
COPY --from=stagex/core-gcc . /
COPY --from=stagex/core-binutils . /
COPY --from=stagex/core-make . /
COPY --from=stagex/core-perl . /
COPY --from=stagex/core-musl . /
COPY --from=stagex/core-linux-headers . /
COPY --from=stagex/user-util-linux . /
ADD fetch/syslinux-${VERSION}.tar.xz .
WORKDIR /syslinux-${VERSION}
COPY *.patch .
RUN --network=none <<-EOF
	patch -p1 < fix-sysmacros.patch
	patch -p1 < prevent-pow-optimization.patch
	patch -p1 < gcc-10.patch
	make -j1 bios efi64 installer
	make \
	INSTALLROOT="/rootfs" \
	MANDIR=/usr/share/man \
	BINDIR=/usr/bin \
	SBINDIR=/usr/sbin \
	LIBDIR=/usr/lib \
	install
EOF
FROM stagex/core-filesystem AS package
COPY --from=build /rootfs/ /