]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* grub-core/gensyminfo.sh.in: Handle the case of portable output
authorVladimir Serbinenko <phcoder@gmail.com>
Mon, 11 Nov 2013 22:05:53 +0000 (23:05 +0100)
committerVladimir Serbinenko <phcoder@gmail.com>
Mon, 11 Nov 2013 22:05:53 +0000 (23:05 +0100)
without --defined-only.

ChangeLog
grub-core/gensyminfo.sh.in

index 7949e3352e973fb326d9e5dd3f0e4dbf16a6a21a..9152de1e510687de764a02768b465f9f07032d62 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2013-11-11  Vladimir Serbinenko  <phcoder@gmail.com>
+
+       * grub-core/gensyminfo.sh.in: Handle the case of portable output
+       without --defined-only.
+
 2013-11-11  Vladimir Serbinenko  <phcoder@gmail.com>
 
        * grub-core/lib/i386/relocator_common.S [__APPLE__ && __x86_64__]: Use
index af5ad9e712726f12ddaf489fe2e773ee082a6887..2e8716b425cb04d9379ef5e2c629283d0f346c90 100644 (file)
@@ -22,9 +22,12 @@ module=$1
 modname=`echo $module | sed -e 's@\.module.*$@@'`
 
 # Print all symbols defined by module
-if test x"@TARGET_NMFLAGS_DEFINED_ONLY@" = x; then
-    @TARGET_NM@ -g @TARGET_NMFLAGS_MINUS_P@ -p $module | \
+if test x"@TARGET_NMFLAGS_DEFINED_ONLY@" = x && test x"@TARGET_NMFLAGS_MINUS_P@" = x; then
+    @TARGET_NM@ -g -p $module | \
        sed -n "s@^\([0-9a-fA-F]*\)  *[TBRDS]  *\([^ ]*\).*@defined $modname \2@p"
+elif test x"@TARGET_NMFLAGS_DEFINED_ONLY@" = x; then
+    @TARGET_NM@ -g @TARGET_NMFLAGS_MINUS_P@ -p $module | \
+       sed -n "s@^\([^ ]*\)  *[TBRDS]  *\([0-9a-fA-F]*\).*@defined $modname \1@p"
 else
     @TARGET_NM@ -g --defined-only @TARGET_NMFLAGS_MINUS_P@ -p $module | \
        sed "s@^\([^ ]*\).*@defined $modname \1@g"