pkg/firmware: Fix directory layout

Copy firmaware files to the correct directory. Instead of

<vendor>/<fw-name>/<fw-name> copy it to <vendor>/<fw-name>.

Signed-off-by: Rolf Neugebauer <rn@rneugeba.io>
This commit is contained in:
Rolf Neugebauer 2019-08-02 00:26:17 +01:00
parent 2c89f304ce
commit b1bed08f72

View File

@ -33,7 +33,7 @@ RUN tar xf /kernel.tar
# Copy files required by the modules
RUN set -e && \
for fw in $(find /lib/modules -name \*.ko -exec modinfo --field=firmware {} \;); do \
mkdir -p "/out/lib/firmware/$fw" && \
mkdir -p "/out/lib/firmware/$(dirname $fw)" && \
cp "/linux-firmware/$fw" "/out/lib/firmware/$fw"; \
done