All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] use grub-mkfont to create ascii.pf2 and unicode.pf2 if it's avaible
@ 2009-01-16  9:26 Felix Zielcke
  2009-01-16 15:32 ` Vesa Jääskeläinen
  0 siblings, 1 reply; 3+ messages in thread
From: Felix Zielcke @ 2009-01-16  9:26 UTC (permalink / raw)
  To: The development of GRUB 2

[-- Attachment #1: Type: text/plain, Size: 158 bytes --]

Here's a little patch for Makefile.in to use the new grub-mkfont to
create the font files.
Is it okay or is there a better way to do this?

-- 
Felix Zielcke

[-- Attachment #2: grub-mkfont.diff --]
[-- Type: text/x-patch, Size: 1314 bytes --]

2009-01-16  Felix Zielcke  <fzielcke@z-51.de>

	Makefile.in: Use grub-mkfont to create ascii.pf2 and unicode.pf2 if it's
	avaible.

Index: Makefile.in
===================================================================
--- Makefile.in	(revision 1946)
+++ Makefile.in	(working copy)
@@ -159,8 +159,13 @@ pkgdata_DATA += unicode.pf2 ascii.pf2
 UNICODE_ARROWS=0x2190-0x2193
 UNICODE_LINES=0x2501-0x251B
 
-# Note: fonttool should be replaced with C only implementation
-
+ifeq ($(enable_grub_mkfont),yes)
+unicode.pf2: $(UNIFONT_BDF) grub-mkfont
+	$(builddir)/grub-mkfont -o $@ $(UNIFONT_BDF)
+
+ascii.pf2: $(UNIFONT_BDF) grub-mkfont
+	$(builddir)/grub-mkfont -o $@ $(UNIFONT_BDF) -r 0x0-0x7f,$(UNICODE_ARROWS),$(UNICODE_LINES)
+else
 $(builddir)/fonttool/fonttool.jar: 
 	mkdir -p "$(builddir)/fonttool/src"
 	javac -source 1.5 -target 1.5 -g -deprecation -encoding UTF-8 -d "$(builddir)/fonttool/src" `find "$(srcdir)/util/fonttool/src/" -name '*.java'`
@@ -172,6 +177,7 @@ unicode.pf2: $(UNIFONT_BDF) $(builddir)/
 ascii.pf2: $(UNIFONT_BDF) $(builddir)/fonttool/fonttool.jar
 	java -cp $(builddir)/fonttool/fonttool.jar org.gnu.grub.fonttool.Converter --in=$(UNIFONT_BDF) --out=$@ 0x0-0x7f $(UNICODE_ARROWS) $(UNICODE_LINES)
 endif
+endif
 
 # Used for building modules externally
 pkglib_BUILDDIR += build_env.mk

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-01-17  9:37 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-16  9:26 [PATCH] use grub-mkfont to create ascii.pf2 and unicode.pf2 if it's avaible Felix Zielcke
2009-01-16 15:32 ` Vesa Jääskeläinen
2009-01-17  9:37   ` Felix Zielcke

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.