dtc

Details
Source
FROM stagex/pallet-gcc-gnu-busybox AS build
ARG VERSION
COPY --from=stagex/pallet-python . /
COPY --from=stagex/core-libzstd . /
ADD fetch/dtc-${VERSION}.tar.xz .
WORKDIR /dtc-${VERSION}
RUN --network=none <<-EOF
	set -eux
  sed -i s:-Werror::g Makefile
	sed -i "s|@VERSION@|${VERSION}|" setup.py
  make -j "$(nproc)"
  make DESTDIR=/rootfs PREFIX=/usr install
EOF
FROM stagex/core-filesystem AS package
COPY --from=build /rootfs/ /