mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-09-21 13:25:02 +00:00
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:
@@ -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 /
|
||||
|
Reference in New Issue
Block a user