]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* conf/Makefile.common: Poison float and double on non-emu.
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Wed, 8 May 2013 09:05:37 +0000 (11:05 +0200)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Wed, 8 May 2013 09:05:37 +0000 (11:05 +0200)
ChangeLog
conf/Makefile.common
util/import_gcry.py

index 39dc05152b6ba15b0a727dbc6fbb6504f775f83d..0da7177af41bd823e57340216b6cdbbcaacb9514 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2013-05-08  Vladimir Serbinenko  <phcoder@gmail.com>
+
+       * conf/Makefile.common: Poison float and double on non-emu.
+
 2013-05-08  Vladimir Serbinenko  <phcoder@gmail.com>
 
        * configure.ac: Don't disable extended registers on emu.
index c185a553d72911f73984b2b2d4fde92bb435e566..ca1cb17f6972bcdf390eb2e203c4188a28bf4a41 100644 (file)
@@ -40,6 +40,11 @@ endif
 
 # Other options
 
+if ! COND_emu
+CFLAGS_PLATFORM += -Dfloat=__grub_poision
+CFLAGS_PLATFORM += -Ddouble=__grub_poision
+endif
+
 CPPFLAGS_DEFAULT = -DGRUB_FILE=\"$(subst $(srcdir)/,,$<)\"
 CPPFLAGS_DEFAULT += -I$(builddir)
 CPPFLAGS_DEFAULT += -I$(srcdir)
index 18f525347128a644215100d8e5073de9c4215e29..afa8e697e93299e925314fc1d2deeb8409f02de2 100644 (file)
@@ -488,6 +488,12 @@ for src in sorted (os.listdir (os.path.join (indir, "src"))):
         fw.close ()
         continue
     f = codecs.open (infile, "r", "utf-8")
+    if src == "types.h":
+        fw.write (f.read ().replace ("float f;", "").replace ("double g;", ""))
+        f.close ()
+        fw.close ()
+        continue
+
     fw.write (f.read ())
     f.close ()
     fw.close ()