forked from metaverse/kernel-dev
支持构建时修改字体缩放
This commit is contained in:
parent
6913dede05
commit
3014893c50
|
@ -152,7 +152,9 @@ bool tty_is_enabled(tty *ttyx);
|
|||
bool tty_enable(tty *ttyx);
|
||||
void tty_disable(tty *ttyx);
|
||||
|
||||
#define TTY_FONT_SCALE 2
|
||||
#ifndef TTY_FONT_SCALE
|
||||
#define TTY_FONT_SCALE 1
|
||||
#endif
|
||||
|
||||
typedef struct __tty_font_t
|
||||
{
|
||||
|
|
|
@ -27,6 +27,9 @@ DEFINES = ARCH="${ARCH}" ASM="${ASM}" ASMFLAGS="${ASMFLAGS}" SOURCE="${SOURCE}"
|
|||
ifdef release
|
||||
DEFINES := ${DEFINES} release=1
|
||||
endif
|
||||
ifdef ttyfont_scale
|
||||
DEFINES := ${DEFINES} ttyfont_scale=${ttyfont_scale}
|
||||
endif
|
||||
|
||||
################################
|
||||
# rust语言环境变量
|
||||
|
|
|
@ -12,6 +12,9 @@ CCFLAGS = -m64 -mcmodel=large -I ../../include \
|
|||
ifdef release
|
||||
CCFLAGS := ${CCFLAGS} -O2
|
||||
endif
|
||||
ifdef ttyfont_scale
|
||||
CCFLAGS := ${CCFLAGS} -DTTY_FONT_SCALE=${ttyfont_scale}
|
||||
endif
|
||||
|
||||
C_SRCS = main.c tty.c font.c memm.c memm_${ARCH}.c raw.c time.c syscall_${ARCH}.c interrupt_${ARCH}.c
|
||||
C_OBJS = ${C_SRCS:.c=.c.o}
|
||||
|
|
Loading…
Reference in New Issue