linux-headers

Details
Source
FROM scratch AS build
ARG VERSION
COPY --from=stagex/bootstrap-stage3 . /
ADD fetch/linux-${VERSION}.tar.xz .
WORKDIR /linux-${VERSION}
RUN <<-EOF
	set -eux
	make headers
	mkdir -p /rootfs/usr
	cp -a usr/include /rootfs/usr/
	find /rootfs/usr/include/ ! -iname "*.h" -type f -exec rm -v {} \+
	rm -rf /rootfs/usr/include/drm
EOF
FROM stagex/core-filesystem AS package
COPY --from=build /rootfs/ /