From: Felix Zielcke <fzielcke@z-51.de>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: [PATCH] use grub-mkfont to create ascii.pf2 and unicode.pf2 if it's avaible
Date: Fri, 16 Jan 2009 10:26:29 +0100 [thread overview]
Message-ID: <1232097989.3372.0.camel@fz.local> (raw)
[-- 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
next reply other threads:[~2009-01-16 9:26 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-16 9:26 Felix Zielcke [this message]
2009-01-16 15:32 ` [PATCH] use grub-mkfont to create ascii.pf2 and unicode.pf2 if it's avaible Vesa Jääskeläinen
2009-01-17 9:37 ` Felix Zielcke
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1232097989.3372.0.camel@fz.local \
--to=fzielcke@z-51.de \
--cc=grub-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.