]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* grub-core/genmod.sh.in: Use @OBJCOPY@ rather than objcopy.
authorShea Levy <>
Sat, 25 Dec 2010 17:21:46 +0000 (18:21 +0100)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Sat, 25 Dec 2010 17:21:46 +0000 (18:21 +0100)
ChangeLog
grub-core/genmod.sh.in

index 43c4dbacb6907ce2441f2fa143b183bbd5eed5a0..3a20e634687d429a9739ae101f531592df890f3f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2010-12-25  Shea Levy <shlevy>
+
+       * grub-core/genmod.sh.in: Use @OBJCOPY@ rather than objcopy.
+
 2010-12-25  Vladimir Serbinenko  <phcoder@gmail.com>
 
        * util/grub.d/30_os-prober.in: Don't emit drivemap directive for
index 8dfd5d34757e2599a7441314059e45a60e8d3080..b97f3e1c78c82d8bafd84087442efdb02af73c3a 100644 (file)
@@ -35,7 +35,7 @@ deps=`grep ^$modname: $moddep | sed s@^.*:@@`
 rm -f $tmpfile $outfile
 
 # stripout .modname and .moddeps sections from input module
-objcopy -R .modname -R .moddeps $infile $tmpfile
+@OBJCOPY@ -R .modname -R .moddeps $infile $tmpfile
 
 # Attach .modname and .moddeps sections
 t1=`mktemp "${TMPDIR:-/tmp}/tmp.XXXXXXXXXX"` || exit 1
@@ -45,9 +45,9 @@ t2=`mktemp "${TMPDIR:-/tmp}/tmp.XXXXXXXXXX"` || exit 1
 for dep in $deps; do printf "$dep\0" >> $t2; done
 
 if test -n "$deps"; then
-       objcopy --add-section .modname=$t1 --add-section .moddeps=$t2 $tmpfile
+       @OBJCOPY@ --add-section .modname=$t1 --add-section .moddeps=$t2 $tmpfile
 else
-       objcopy --add-section .modname=$t1 $tmpfile
+       @OBJCOPY@ --add-section .modname=$t1 $tmpfile
 fi
 rm -f $t1 $t2