From 55a17d80cd9e739f33fa1b56267da806cf0a1cf8 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Sat, 18 Nov 2017 10:34:57 -0600 Subject: [PATCH] libnx: Simplify some of the duplicated NX/NXFONTS configuration. --- graphics/Kconfig | 2 ++ libnx/nxfonts/Kconfig | 4 ++-- libnx/nxglib/Kconfig | 3 +-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/graphics/Kconfig b/graphics/Kconfig index e3fcb9c0964..527f8fb01da 100644 --- a/graphics/Kconfig +++ b/graphics/Kconfig @@ -6,6 +6,8 @@ config NX bool "NX Graphics" default n + select NXGLIB + select NXFONTS ---help--- Enables overall support for graphics library and NX diff --git a/libnx/nxfonts/Kconfig b/libnx/nxfonts/Kconfig index cd8e476da19..911f92ab45b 100644 --- a/libnx/nxfonts/Kconfig +++ b/libnx/nxfonts/Kconfig @@ -5,8 +5,8 @@ config NXFONTS bool "Bitmap Font Support" - default n if !NX - default y if NX + default n + select NXGLIB ---help--- Enable support for bitmap fonts, the fonter rendering library, and a font cache. diff --git a/libnx/nxglib/Kconfig b/libnx/nxglib/Kconfig index 54f2f747114..574f6cf0a7e 100644 --- a/libnx/nxglib/Kconfig +++ b/libnx/nxglib/Kconfig @@ -5,5 +5,4 @@ config NXGLIB bool - default y if NX || NXFONTS - default n if !NX && !NXFONTS + default n