Pass font config to config.h and not by TARGET_CFLAGS as adding
arguments doesn't work if TARGET_CFLAGS is specified on command line.
This commit is contained in:
parent
60d5e9cbd9
commit
6f07c4e407
8 changed files with 19 additions and 11 deletions
|
@ -10,10 +10,6 @@ CCAS=$(TARGET_CC)
|
|||
RANLIB=$(TARGET_RANLIB)
|
||||
STRIP=$(TARGET_STRIP)
|
||||
|
||||
if COND_HAVE_FONT_SOURCE
|
||||
TARGET_CFLAGS += -DUSE_ASCII_FALLBACK=1 -DHAVE_UNIFONT_WIDTHSPEC=1
|
||||
endif
|
||||
|
||||
MACHO2IMG=$(top_builddir)/grub-macho2img
|
||||
|
||||
AM_CFLAGS = $(TARGET_CFLAGS)
|
||||
|
|
|
@ -88,7 +88,6 @@ kernel = {
|
|||
mips_qemu_mips_ldflags = '-Wl,-Ttext,0x80200000';
|
||||
|
||||
mips_arc_cppflags = '-DGRUB_DECOMPRESSOR_LINK_ADDR=$(TARGET_DECOMPRESSOR_LINK_ADDR)';
|
||||
mips_loongson_cppflags = '-DUSE_ASCII_FALLBACK';
|
||||
i386_qemu_cppflags = '-DGRUB_BOOT_MACHINE_LINK_ADDR=$(GRUB_BOOT_MACHINE_LINK_ADDR)';
|
||||
emu_cflags = '$(CFLAGS_GNULIB)';
|
||||
emu_cppflags = '$(CPPFLAGS_GNULIB)';
|
||||
|
|
|
@ -33,7 +33,7 @@
|
|||
|
||||
GRUB_MOD_LICENSE ("GPLv3+");
|
||||
|
||||
#ifdef USE_ASCII_FALLBACK
|
||||
#if HAVE_FONT_SOURCE
|
||||
#include "ascii.h"
|
||||
#endif
|
||||
|
||||
|
@ -110,14 +110,14 @@ static struct grub_font null_font;
|
|||
/* Flag to ensure module is initialized only once. */
|
||||
static grub_uint8_t font_loader_initialized;
|
||||
|
||||
#ifdef USE_ASCII_FALLBACK
|
||||
#if HAVE_FONT_SOURCE
|
||||
static struct grub_font_glyph *ascii_font_glyph[0x80];
|
||||
#endif
|
||||
|
||||
static struct grub_font_glyph *
|
||||
ascii_glyph_lookup (grub_uint32_t code)
|
||||
{
|
||||
#ifdef USE_ASCII_FALLBACK
|
||||
#if HAVE_FONT_SOURCE
|
||||
static int ascii_failback_initialized = 0;
|
||||
|
||||
if (code >= 0x80)
|
||||
|
|
|
@ -49,7 +49,7 @@
|
|||
#include <grub/term.h>
|
||||
#include <grub/normal.h>
|
||||
|
||||
#ifdef HAVE_UNIFONT_WIDTHSPEC
|
||||
#if HAVE_FONT_SOURCE
|
||||
#include "widthspec.h"
|
||||
#endif
|
||||
|
||||
|
@ -387,7 +387,7 @@ grub_unicode_get_comb_type (grub_uint32_t c)
|
|||
return GRUB_UNICODE_COMB_NONE;
|
||||
}
|
||||
|
||||
#ifdef HAVE_UNIFONT_WIDTHSPEC
|
||||
#if HAVE_FONT_SOURCE
|
||||
|
||||
grub_size_t
|
||||
grub_unicode_estimate_width (const struct grub_unicode_glyph *c)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue