From aa2791a6dd6bdc0142abbe44bb6d00145c0c6ef3 Mon Sep 17 00:00:00 2001 From: Rolf Neugebauer Date: Tue, 16 Jan 2018 12:19:00 +0000 Subject: [PATCH] pkg/firmware-all: Add package containing all Linux Firmware blobs This package is primarily for users of custom or foreign kernels which may have drivers enabled for which the 'firmware' package does not contain the firmware blobs. Signed-off-by: Rolf Neugebauer --- pkg/firmware-all/Dockerfile | 19 +++++++++++++++++++ pkg/firmware-all/README.md | 8 ++++++++ pkg/firmware-all/build.yml | 2 ++ 3 files changed, 29 insertions(+) create mode 100644 pkg/firmware-all/Dockerfile create mode 100644 pkg/firmware-all/README.md create mode 100644 pkg/firmware-all/build.yml diff --git a/pkg/firmware-all/Dockerfile b/pkg/firmware-all/Dockerfile new file mode 100644 index 000000000..2b5294530 --- /dev/null +++ b/pkg/firmware-all/Dockerfile @@ -0,0 +1,19 @@ +FROM linuxkit/alpine:34518265c6cb63ff02074549cc5b64bef40c336f AS build +RUN apk add --no-cache git + +# Make sure you also update the FW_COMMIT in ../firmware/Dockerfile +ENV FW_URL=git://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git +ENV FW_COMMIT=65b1c68c63f974d72610db38dfae49861117cae2 + +RUN mkdir -p /out/lib && \ + cd /out/lib && \ + git clone ${FW_URL} firmware && \ + cd firmware && \ + git checkout ${FW_COMMIT} && \ + rm -rf .git + +FROM scratch +WORKDIR / +ENTRYPOINT [] +COPY --from=build /out/lib/ /lib/ + diff --git a/pkg/firmware-all/README.md b/pkg/firmware-all/README.md new file mode 100644 index 000000000..095aa1f58 --- /dev/null +++ b/pkg/firmware-all/README.md @@ -0,0 +1,8 @@ +The `firmware-all` package contains all firmware binaries from the +[Linux firmware +repository](https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/). It +is quite large. + +For use with the LinuxKit kernel we recommend using the +[`firmware`](../firmware/) package, which only contains the firmware +binaries for which drivers are enabled. diff --git a/pkg/firmware-all/build.yml b/pkg/firmware-all/build.yml new file mode 100644 index 000000000..8a6e84585 --- /dev/null +++ b/pkg/firmware-all/build.yml @@ -0,0 +1,2 @@ +image: firmware-all +network: true