[PATCH] Put e100 (and other) firmware in its own directory if needed (#494778).

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



---
 scripts/mk-images |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diff --git a/scripts/mk-images b/scripts/mk-images
index e669a0b..6490827 100755
--- a/scripts/mk-images
+++ b/scripts/mk-images
@@ -293,7 +293,15 @@ makemoduletree() {
     echo "Copying required firmware..."
     find $MMB_DIR/lib/modules/ -name *.ko | while read module ; do
         for fw in $(modinfo -F firmware $module); do
-            cp $KERNELROOT/lib/firmware/$fw $MBD_DIR/firmware
+            dest=$MBD_DIR/firmware/$fw
+            destdir=$(dirname $dest)
+
+            # Some firmware files are expected to be in their own directories.
+            if [ ! -d $destdir ]; then
+                mkdir $destdir
+            fi
+
+            cp $KERNELROOT/lib/firmware/$fw $dest
         done
     done
 
-- 
1.6.1.3

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux