pkg/firmware: Fix firmware extraction

Some drivers offer mutliple firmwares with the WHENCE file
defining the default. Use the cope-firmware.sh script to
create a copy of the firmware repository with the defaults
copied in to the right place.

Signed-off-by: Rolf Neugebauer <rn@rneugeba.io>
This commit is contained in:
Rolf Neugebauer
2020-04-13 15:22:03 +01:00
parent 384b439d05
commit cd92ad3f16
2 changed files with 12 additions and 7 deletions

View File

@@ -5,12 +5,13 @@ RUN apk add --no-cache git
ENV FW_URL=git://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git
ENV FW_COMMIT=edf390c23a4e185ff36daded36575f669f5059f7
RUN mkdir -p /out/lib && \
cd /out/lib && \
git clone ${FW_URL} firmware && \
cd firmware && \
git checkout ${FW_COMMIT} && \
rm -rf .git
RUN git clone ${FW_URL} && \
cd /linux-firmware && \
git checkout ${FW_COMMIT}
RUN mkdir -p /out/lib/firmware && \
cd /linux-firmware && \
./copy-firmware.sh /out/lib/firmware
FROM scratch
WORKDIR /