elf_gen_dep.sh: Don't calculate dependencies for whitespace symbols
authorMatt Fleming <matt.fleming@linux.intel.com>
Fri, 15 Apr 2011 20:27:37 +0000 (21:27 +0100)
committerMatt Fleming <matt.fleming@linux.intel.com>
Tue, 26 Apr 2011 09:06:29 +0000 (10:06 +0100)
Don't try to resolve dependencies for a symbol whose name is purely
made up of whitespace.

Signed-off-by: Matt Fleming <matt.fleming@linux.intel.com>
elf_gen_dep.sh

index 9a26c92..2cde308 100755 (executable)
@@ -23,6 +23,8 @@ do
        sed -n -e "/UND/d" -e "/ABS/d" -e "/...[0-9] $/d" -e "/...[0-9] \./d" -e "/...[0-9]/p" $module.txt > $module.int 
        sed -i -e "s/^.....//g" $module.int
        sed -i -e "s/^\(.*\)$/\1 <$module>/g" $module.int
+       # Delete all whitespace
+       sed -i -e "s/^[ \t]*$//g" $module.int
 
        cat $module.int >> all.txt
 done