FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Ubuntu > Ubuntu Kernel Team

 
 
LinkBack Thread Tools
 
Old 07-05-2012, 12:46 PM
Andy Whitcroft
 
Default UBUNTU: Extract firmware module info during getabi

From: Tim Gardner <tim.gardner@canonical.com>

Create $DEBIAN/abi/$ABI/fwinfo

BugLink: http://bugs.launchpad.net/bugs/1021174
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
---
debian/scripts/misc/getabis | 7 +++++++
1 file changed, 7 insertions(+)

diff --git a/debian/scripts/misc/getabis b/debian/scripts/misc/getabis
index 0556f8e..708b7b2 100755
--- a/debian/scripts/misc/getabis
+++ b/debian/scripts/misc/getabis
@@ -19,6 +19,7 @@ WGET="wget --quiet -c"
abidir="`pwd`/$DEBIAN/abi/$verfull"
tmpdir="`pwd`/abi-tmp-$verfull"
origdir="`pwd`"
+fwinfo=$abidir/fwinfo

test -d $tmpdir || mkdir $tmpdir

@@ -45,6 +46,9 @@ getall() {
if [ "$?" = "0" ]; then
echo -n "extracting..."
dpkg-deb --extract $filename tmp
+ find tmp -name "*.ko" | while read f; do
+ modinfo $f | grep ^firmware >> $fwinfo
+ done
if [ -f tmp/boot/abi-* ]; then
mv tmp/boot/abi-* $abidir/$arch/$sub
else
@@ -92,4 +96,7 @@ if [ "$compilers" != 1 ]; then
echo "WARNING: inconsistant compiler versions detected" 1>&2
fi

+sort < $fwinfo | uniq > fwinfo.tmp
+mv fwinfo.tmp $fwinfo
+
rmdir $tmpdir
--
1.7.9.5


--
kernel-team mailing list
kernel-team@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/kernel-team
 

Thread Tools




All times are GMT. The time now is 04:29 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org