~ubuntu-branches/ubuntu/trusty/grub2/trusty

« back to all changes in this revision

Viewing changes to grub-core/gensyminfo.sh.in

  • Committer: Package Import Robot
  • Author(s): Colin Watson
  • Date: 2014-01-16 15:18:04 UTC
  • mfrom: (17.6.38 experimental)
  • Revision ID: package-import@ubuntu.com-20140116151804-3foouk7fpqcq3sxx
Tags: 2.02~beta2-2
* Convert patch handling to git-dpm.
* Add bi-endian support to ELF parser (Tomohiro B Berry).
* Adjust restore_mkdevicemap.patch to mark get_kfreebsd_version as static,
  to appease "gcc -Werror=missing-prototypes".
* Cherry-pick from upstream:
  - Change grub-macbless' manual page section to 8.
* Install grub-glue-efi, grub-macbless, grub-render-label, and
  grub-syslinux2cfg.
* grub-shell: Pass -no-pad to xorriso when building floppy images.

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
modname=`echo $module | sed -e 's@\.module.*$@@'`
23
23
 
24
24
# Print all symbols defined by module
25
 
if test x@TARGET_APPLE_CC@ = x1; then
26
 
    @NM@ -g -P -p $module | \
27
 
        grep -E '^[a-zA-Z0-9_]* [TDS]' | \
28
 
        sed "s@^\([^ ]*\).*@defined $modname \1@g"
 
25
if test x"@TARGET_NMFLAGS_DEFINED_ONLY@" = x && test x"@TARGET_NMFLAGS_MINUS_P@" = x; then
 
26
    @TARGET_NM@ -g -p $module | \
 
27
        sed -n "s@^\([0-9a-fA-F]*\)  *[TBRDS]  *\([^ ]*\).*@defined $modname \2@p"
 
28
elif test x"@TARGET_NMFLAGS_DEFINED_ONLY@" = x; then
 
29
    @TARGET_NM@ -g @TARGET_NMFLAGS_MINUS_P@ -p $module | \
 
30
        sed -n "s@^\([^ ]*\)  *[TBRDS]  *\([0-9a-fA-F]*\).*@defined $modname \1@p"
29
31
else
30
 
    @NM@ -g --defined-only -P -p $module | \
 
32
    @TARGET_NM@ -g --defined-only @TARGET_NMFLAGS_MINUS_P@ -p $module | \
31
33
        sed "s@^\([^ ]*\).*@defined $modname \1@g"
32
34
fi
33
35
 
34
36
# Print all undefined symbols used by module
35
 
@NM@ -u -P -p $module | sed "s@^\([^ ]*\).*@undefined $modname \1@g"
 
37
@TARGET_NM@ -u @TARGET_NMFLAGS_MINUS_P@ -p $module | sed "s@^\([^ ]*\).*@undefined $modname \1@g"