ncurses: disable big core only for target

Message ID 20211119150139.1120348-1-a1ba.omarov@gmail.com
State New
Headers show
Series ncurses: disable big core only for target | expand

Commit Message

Alibek Omarov Nov. 19, 2021, 3:01 p.m. UTC
Building some terminal emulators(foot, for example) may require
tic to be built with enabled big core.

It's highly likely that tic will be used as native or in SDK,
so we can lift memory restriction.

Signed-off-by: Alibek Omarov <a1ba.omarov@gmail.com>
---
 meta/recipes-core/ncurses/ncurses.inc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Patch

diff --git a/meta/recipes-core/ncurses/ncurses.inc b/meta/recipes-core/ncurses/ncurses.inc
index a0ecd8a80b8..793056c8901 100644
--- a/meta/recipes-core/ncurses/ncurses.inc
+++ b/meta/recipes-core/ncurses/ncurses.inc
@@ -38,7 +38,6 @@  base_libdir:class-native = "${libdir}"
 # Display corruption occurs on 64 bit hosts without these settings
 # This was derrived from the upstream debian ncurses which uses
 # these settings for 32 and 64 bit hosts.
-EXCONFIG_ARGS = ""
 EXCONFIG_ARGS:class-native = " \
 		--disable-lp64 \
 		--with-chtype='long' \
@@ -47,6 +46,8 @@  EXCONFIG_ARGS:class-nativesdk = " \
 		--disable-lp64 \
 		--with-chtype='long' \
 		--with-mmask-t='long'"
+# Assume target system has little memory but native has enough
+EXCONFIG_ARGS = "--disable-big-core"
 
 PACKAGES_DYNAMIC = "^${PN}-lib.*"
 
@@ -80,7 +81,6 @@  ncurses_configure() {
 	        --with-termpath='${sysconfdir}/termcap:${datadir}/misc/termcap${EX_TERMCAP}' \
 	        --with-terminfo-dirs='${sysconfdir}/terminfo:${datadir}/terminfo${EX_TERMINFO}' \
 	        --with-shared \
-	        --disable-big-core \
 	        --program-prefix= \
 	        --with-ticlib \
 	        --with-termlib=${EX_TERMLIB} \