mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-26 16:18:22 +00:00
legacy/bootloader: don't include FONT_FIXED
This commit is contained in:
parent
054bb3a67a
commit
7476e9463f
@ -4,6 +4,13 @@ OBJS += bootloader.o
|
||||
OBJS += signatures.o
|
||||
OBJS += usb.o
|
||||
|
||||
# overrides from libtrezor
|
||||
CFLAGS += -DFONT_SKIP_FIXED=1
|
||||
OBJS += ../gen/fonts.small.o
|
||||
|
||||
# overrides from trezor-crypto
|
||||
CFLAGS += -DUSE_PRECOMPUTED_IV=0
|
||||
CFLAGS += -DUSE_PRECOMPUTED_CP=0
|
||||
OBJS += ../vendor/trezor-crypto/bignum.small.o
|
||||
OBJS += ../vendor/trezor-crypto/ecdsa.small.o
|
||||
OBJS += ../vendor/trezor-crypto/secp256k1.small.o
|
||||
@ -11,9 +18,6 @@ OBJS += ../vendor/trezor-crypto/sha2.small.o
|
||||
OBJS += ../vendor/trezor-crypto/memzero.small.o
|
||||
OBJS += ../vendor/trezor-crypto/hmac_drbg.small.o
|
||||
|
||||
CFLAGS += -DUSE_PRECOMPUTED_IV=0
|
||||
CFLAGS += -DUSE_PRECOMPUTED_CP=0
|
||||
|
||||
OPTFLAGS ?= -Os
|
||||
|
||||
include ../Makefile.include
|
||||
|
@ -1,14 +1,14 @@
|
||||
#include "fonts.h"
|
||||
|
||||
#define FONTS 2
|
||||
|
||||
const uint8_t *const font_data[FONTS][128 - 32] = {
|
||||
{
|
||||
#include "font.inc"
|
||||
},
|
||||
#ifndef FONT_SKIP_FIXED
|
||||
{
|
||||
#include "fontfixed.inc"
|
||||
},
|
||||
#endif
|
||||
};
|
||||
|
||||
int fontCharWidth(uint8_t font, uint8_t c) {
|
||||
|
@ -5,10 +5,17 @@
|
||||
|
||||
#define FONT_HEIGHT 8
|
||||
#define FONT_STANDARD 0
|
||||
|
||||
#ifndef FONT_SKIP_FIXED
|
||||
#define FONT_FIXED 1
|
||||
#define FONTS 2
|
||||
#else
|
||||
#define FONTS 1
|
||||
#endif
|
||||
|
||||
#define FONT_DOUBLE 0x80
|
||||
|
||||
extern const uint8_t *const font_data[2][128 - 32];
|
||||
extern const uint8_t *const font_data[FONTS][128 - 32];
|
||||
|
||||
int fontCharWidth(uint8_t font, uint8_t c);
|
||||
const uint8_t *fontCharData(uint8_t font, uint8_t c);
|
||||
|
Loading…
Reference in New Issue
Block a user