dcavalca / rpms / grub2

Forked from rpms/grub2 3 years ago
Clone

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

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