Blame SOURCES/0278-Add-missing-BUILD_EXEEXT.patch

f731ee
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
f731ee
From: Andrei Borzenkov <arvidjaar@gmail.com>
f731ee
Date: Fri, 1 Jan 2016 11:13:54 +0300
f731ee
Subject: [PATCH] Add missing BUILD_EXEEXT
f731ee
f731ee
---
f731ee
 Makefile.am            | 45 +++++++++++++++++++++++++--------------------
f731ee
 grub-core/Makefile.am  |  2 +-
f731ee
 grub-core/genmod.sh.in |  2 +-
f731ee
 3 files changed, 27 insertions(+), 22 deletions(-)
f731ee
f731ee
diff --git a/Makefile.am b/Makefile.am
f731ee
index f02ae0a393c..335a268ea9f 100644
f731ee
--- a/Makefile.am
f731ee
+++ b/Makefile.am
f731ee
@@ -85,16 +85,21 @@ CLEANFILES += build-grub-gen-widthspec$(BUILD_EXEEXT)
f731ee
 
f731ee
 if COND_STARFIELD
f731ee
 starfield_DATA = dejavu_10.pf2 dejavu_12.pf2 dejavu_bold_14.pf2 dejavu_14.pf2 dejavu_16.pf2 $(starfield_theme_files)
f731ee
-dejavu_10.pf2: $(DJVU_FONT_SOURCE) build-grub-mkfont
f731ee
-	./build-grub-mkfont -s 10 -o $@ $(DJVU_FONT_SOURCE)
f731ee
-dejavu_12.pf2: $(DJVU_FONT_SOURCE) build-grub-mkfont
f731ee
-	./build-grub-mkfont -s 12 -o $@ $(DJVU_FONT_SOURCE)
f731ee
-dejavu_14.pf2: $(DJVU_FONT_SOURCE) build-grub-mkfont
f731ee
-	./build-grub-mkfont -s 14 -o $@ $(DJVU_FONT_SOURCE)
f731ee
-dejavu_bold_14.pf2: $(DJVU_FONT_SOURCE) build-grub-mkfont
f731ee
-	./build-grub-mkfont -b -s 14 -o $@ $(DJVU_FONT_SOURCE)
f731ee
-dejavu_16.pf2: $(DJVU_FONT_SOURCE) build-grub-mkfont
f731ee
-	./build-grub-mkfont -s 16 -o $@ $(DJVU_FONT_SOURCE)
f731ee
+dejavu_10.pf2: $(DJVU_FONT_SOURCE) build-grub-mkfont$(BUILD_EXEEXT)
f731ee
+	./build-grub-mkfont$(BUILD_EXEEXT) -s 10 -o $@ $(DJVU_FONT_SOURCE)
f731ee
+CLEANFILES += dejavu_10.pf2
f731ee
+dejavu_12.pf2: $(DJVU_FONT_SOURCE) build-grub-mkfont$(BUILD_EXEEXT)
f731ee
+	./build-grub-mkfont$(BUILD_EXEEXT) -s 12 -o $@ $(DJVU_FONT_SOURCE)
f731ee
+CLEANFILES += dejavu_12.pf2
f731ee
+dejavu_14.pf2: $(DJVU_FONT_SOURCE) build-grub-mkfont$(BUILD_EXEEXT)
f731ee
+	./build-grub-mkfont$(BUILD_EXEEXT) -s 14 -o $@ $(DJVU_FONT_SOURCE)
f731ee
+CLEANFILES += dejavu_14.pf2
f731ee
+dejavu_bold_14.pf2: $(DJVU_FONT_SOURCE) build-grub-mkfont$(BUILD_EXEEXT)
f731ee
+	./build-grub-mkfont$(BUILD_EXEEXT) -b -s 14 -o $@ $(DJVU_FONT_SOURCE)
f731ee
+CLEANFILES += dejavu_bold_14.pf2
f731ee
+dejavu_16.pf2: $(DJVU_FONT_SOURCE) build-grub-mkfont$(BUILD_EXEEXT)
f731ee
+	./build-grub-mkfont$(BUILD_EXEEXT) -s 16 -o $@ $(DJVU_FONT_SOURCE)
f731ee
+CLEANFILES += dejavu_16.pf2
f731ee
 else
f731ee
 starfield_DATA =
f731ee
 endif
f731ee
@@ -102,28 +107,28 @@ endif
f731ee
 EXTRA_DIST += $(starfield_theme_files)
f731ee
 EXTRA_DIST += $(srcdir)/themes/starfield/src/slider_s.xcf $(srcdir)/themes/starfield/src/slider_n.xcf $(srcdir)/themes/starfield/src/slider_c.xcf $(srcdir)/themes/starfield/src/blob_nw.xcf $(srcdir)/themes/starfield/src/bootmenu/center.xcf $(srcdir)/themes/starfield/src/bootmenu/corner.xcf $(srcdir)/themes/starfield/src/bootmenu/side.xcf $(srcdir)/themes/starfield/src/terminalbox/side.xcf $(srcdir)/themes/starfield/src/terminalbox/corner.xcf $(srcdir)/themes/starfield/src/terminalbox/center.xcf
f731ee
 
f731ee
-unicode.pf2: $(FONT_SOURCE) build-grub-mkfont
f731ee
-	./build-grub-mkfont -o $@ $(FONT_SOURCE) || (rm -f $@; exit 1)
f731ee
+unicode.pf2: $(FONT_SOURCE) build-grub-mkfont$(BUILD_EXEEXT)
f731ee
+	./build-grub-mkfont$(BUILD_EXEEXT) -o $@ $(FONT_SOURCE) || (rm -f $@; exit 1)
f731ee
 CLEANFILES += unicode.pf2
f731ee
 
f731ee
 # Arrows and lines are needed to draw the menu, so always include them
f731ee
 UNICODE_ARROWS=0x2190-0x2193
f731ee
 UNICODE_LINES=0x2501-0x251B
f731ee
 
f731ee
-ascii.pf2: $(FONT_SOURCE) build-grub-mkfont
f731ee
-	./build-grub-mkfont -o $@ $(FONT_SOURCE) -r 0x0-0x7f,$(UNICODE_ARROWS),$(UNICODE_LINES) || (rm -f $@; exit 1)
f731ee
+ascii.pf2: $(FONT_SOURCE) build-grub-mkfont$(BUILD_EXEEXT)
f731ee
+	./build-grub-mkfont$(BUILD_EXEEXT) -o $@ $(FONT_SOURCE) -r 0x0-0x7f,$(UNICODE_ARROWS),$(UNICODE_LINES) || (rm -f $@; exit 1)
f731ee
 CLEANFILES += ascii.pf2
f731ee
 
f731ee
-euro.pf2: $(FONT_SOURCE) build-grub-mkfont
f731ee
-	./build-grub-mkfont -o $@ $(FONT_SOURCE) -r 0x0-0x4ff,0x1e00-0x1fff,$(UNICODE_ARROWS),$(UNICODE_LINES) || (rm -f $@; exit 1)
f731ee
+euro.pf2: $(FONT_SOURCE) build-grub-mkfont$(BUILD_EXEEXT)
f731ee
+	./build-grub-mkfont$(BUILD_EXEEXT) -o $@ $(FONT_SOURCE) -r 0x0-0x4ff,0x1e00-0x1fff,$(UNICODE_ARROWS),$(UNICODE_LINES) || (rm -f $@; exit 1)
f731ee
 CLEANFILES += euro.pf2
f731ee
 
f731ee
-ascii.h: $(FONT_SOURCE) build-grub-gen-asciih
f731ee
-	./build-grub-gen-asciih $(FONT_SOURCE) $@ || (rm -f $@; exit 1)
f731ee
+ascii.h: $(FONT_SOURCE) build-grub-gen-asciih$(BUILD_EXEEXT)
f731ee
+	./build-grub-gen-asciih$(BUILD_EXEEXT) $(FONT_SOURCE) $@ || (rm -f $@; exit 1)
f731ee
 CLEANFILES += ascii.h
f731ee
 
f731ee
-widthspec.h: $(FONT_SOURCE) build-grub-gen-widthspec
f731ee
-	./build-grub-gen-widthspec $(FONT_SOURCE) $@ || (rm -f $@; exit 1)
f731ee
+widthspec.h: $(FONT_SOURCE) build-grub-gen-widthspec$(BUILD_EXEEXT)
f731ee
+	./build-grub-gen-widthspec$(BUILD_EXEEXT) $(FONT_SOURCE) $@ || (rm -f $@; exit 1)
f731ee
 CLEANFILES += widthspec.h
f731ee
 
f731ee
 # Install config.h into platformdir
f731ee
diff --git a/grub-core/Makefile.am b/grub-core/Makefile.am
f731ee
index 77205f16358..59a00f11fab 100644
f731ee
--- a/grub-core/Makefile.am
f731ee
+++ b/grub-core/Makefile.am
f731ee
@@ -391,7 +391,7 @@ moddep.lst: syminfo.lst genmoddep.awk video.lst
f731ee
 platform_DATA += moddep.lst
f731ee
 CLEANFILES += config.log syminfo.lst moddep.lst
f731ee
 
f731ee
-$(MOD_FILES): %.mod : genmod.sh moddep.lst %.module$(EXEEXT) build-grub-module-verifier
f731ee
+$(MOD_FILES): %.mod : genmod.sh moddep.lst %.module$(EXEEXT) build-grub-module-verifier$(BUILD_EXEEXT)
f731ee
 	TARGET_OBJ2ELF=@TARGET_OBJ2ELF@ sh $^ $@
f731ee
 platform_DATA += $(MOD_FILES)
f731ee
 platform_DATA += modinfo.sh
f731ee
diff --git a/grub-core/genmod.sh.in b/grub-core/genmod.sh.in
f731ee
index ca2e59d5c42..045817b1534 100644
f731ee
--- a/grub-core/genmod.sh.in
f731ee
+++ b/grub-core/genmod.sh.in
f731ee
@@ -94,6 +94,6 @@ else
f731ee
 	rm -f $tmpfile.bin
f731ee
 fi
f731ee
 if test x@platform@ != xemu; then
f731ee
-    ./build-grub-module-verifier $tmpfile @target_cpu@
f731ee
+    ./build-grub-module-verifier@BUILD_EXEEXT@ $tmpfile @target_cpu@
f731ee
 fi
f731ee
 mv $tmpfile $outfile