[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
[PATCH] Put e100 (and other) firmware in its own directory if needed (#494778).
- From: Chris Lumens <clumens redhat com>
- To: anaconda-devel-list redhat com
- Cc:
- Subject: [PATCH] Put e100 (and other) firmware in its own directory if needed (#494778).
- Date: Wed, 8 Apr 2009 15:02:38 -0400
---
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
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]