NX: Remove configuration CONFIG_NX_NXSTART. nx_start.c is now built unconditionally in multi-user mode.
This commit is contained in:
parent
db24f237d7
commit
6dda185e8a
@ -1162,7 +1162,6 @@ CONFIG_NX_MULTIUSER=y
|
||||
CONFIG_NX_BLOCKING=y
|
||||
CONFIG_NX_MXSERVERMSGS=32
|
||||
CONFIG_NX_MXCLIENTMSGS=16
|
||||
# CONFIG_NX_NXSTART is not set
|
||||
|
||||
#
|
||||
# Memory Management
|
||||
|
@ -782,7 +782,6 @@ CONFIG_NX_MULTIUSER=y
|
||||
CONFIG_NX_BLOCKING=y
|
||||
CONFIG_NX_MXSERVERMSGS=32
|
||||
CONFIG_NX_MXCLIENTMSGS=16
|
||||
# CONFIG_NX_NXSTART is not set
|
||||
|
||||
#
|
||||
# Memory Management
|
||||
|
@ -1054,7 +1054,6 @@ CONFIG_NX_MULTIUSER=y
|
||||
CONFIG_NX_BLOCKING=y
|
||||
CONFIG_NX_MXSERVERMSGS=32
|
||||
CONFIG_NX_MXCLIENTMSGS=16
|
||||
# CONFIG_NX_NXSTART is not set
|
||||
|
||||
#
|
||||
# Memory Management
|
||||
|
@ -853,7 +853,6 @@ CONFIG_NX_MULTIUSER=y
|
||||
CONFIG_NX_BLOCKING=y
|
||||
CONFIG_NX_MXSERVERMSGS=32
|
||||
CONFIG_NX_MXCLIENTMSGS=16
|
||||
# CONFIG_NX_NXSTART is not set
|
||||
|
||||
#
|
||||
# Memory Management
|
||||
|
@ -1146,7 +1146,6 @@ CONFIG_NX_MULTIUSER=y
|
||||
CONFIG_NX_BLOCKING=y
|
||||
CONFIG_NX_MXSERVERMSGS=32
|
||||
CONFIG_NX_MXCLIENTMSGS=16
|
||||
# CONFIG_NX_NXSTART is not set
|
||||
|
||||
#
|
||||
# Memory Management
|
||||
|
@ -898,7 +898,6 @@ CONFIG_NX_MULTIUSER=y
|
||||
CONFIG_NX_BLOCKING=y
|
||||
CONFIG_NX_MXSERVERMSGS=32
|
||||
CONFIG_NX_MXCLIENTMSGS=16
|
||||
# CONFIG_NX_NXSTART is not set
|
||||
|
||||
#
|
||||
# Memory Management
|
||||
|
@ -1040,7 +1040,6 @@ CONFIG_NX_MULTIUSER=y
|
||||
CONFIG_NX_BLOCKING=y
|
||||
CONFIG_NX_MXSERVERMSGS=32
|
||||
CONFIG_NX_MXCLIENTMSGS=16
|
||||
# CONFIG_NX_NXSTART is not set
|
||||
CONFIG_VNCSERVER=y
|
||||
# CONFIG_VNCSERVER_PROTO3p3 is not set
|
||||
CONFIG_VNCSERVER_PROTO3p8=y
|
||||
|
@ -1220,7 +1220,6 @@ CONFIG_NX_MULTIUSER=y
|
||||
CONFIG_NX_BLOCKING=y
|
||||
CONFIG_NX_MXSERVERMSGS=32
|
||||
CONFIG_NX_MXCLIENTMSGS=16
|
||||
# CONFIG_NX_NXSTART is not set
|
||||
|
||||
#
|
||||
# Memory Management
|
||||
|
@ -519,7 +519,6 @@ CONFIG_NX_MULTIUSER=y
|
||||
CONFIG_NX_BLOCKING=y
|
||||
CONFIG_NX_MXSERVERMSGS=32
|
||||
CONFIG_NX_MXCLIENTMSGS=16
|
||||
# CONFIG_NX_NXSTART is not set
|
||||
|
||||
#
|
||||
# Memory Management
|
||||
|
@ -1024,7 +1024,6 @@ CONFIG_NX_MULTIUSER=y
|
||||
CONFIG_NX_BLOCKING=y
|
||||
CONFIG_NX_MXSERVERMSGS=32
|
||||
CONFIG_NX_MXCLIENTMSGS=16
|
||||
# CONFIG_NX_NXSTART is not set
|
||||
|
||||
#
|
||||
# Memory Management
|
||||
|
@ -1248,7 +1248,6 @@ CONFIG_NX_MULTIUSER=y
|
||||
CONFIG_NX_BLOCKING=y
|
||||
CONFIG_NX_MXSERVERMSGS=32
|
||||
CONFIG_NX_MXCLIENTMSGS=16
|
||||
# CONFIG_NX_NXSTART is not set
|
||||
|
||||
#
|
||||
# Memory Management
|
||||
|
@ -1056,7 +1056,6 @@ CONFIG_NX_MULTIUSER=y
|
||||
CONFIG_NX_BLOCKING=y
|
||||
CONFIG_NX_MXSERVERMSGS=32
|
||||
CONFIG_NX_MXCLIENTMSGS=16
|
||||
CONFIG_NX_NXSTART=y
|
||||
# CONFIG_NXSTART_EXTERNINIT is not set
|
||||
CONFIG_NXSTART_SERVERPRIO=110
|
||||
CONFIG_NXSTART_SERVERSTACK=1596
|
||||
|
@ -1204,7 +1204,6 @@ CONFIG_NX_MULTIUSER=y
|
||||
CONFIG_NX_BLOCKING=y
|
||||
CONFIG_NX_MXSERVERMSGS=32
|
||||
CONFIG_NX_MXCLIENTMSGS=16
|
||||
# CONFIG_NX_NXSTART is not set
|
||||
|
||||
#
|
||||
# Memory Management
|
||||
|
@ -1245,7 +1245,6 @@ CONFIG_NX_MULTIUSER=y
|
||||
CONFIG_NX_BLOCKING=y
|
||||
CONFIG_NX_MXSERVERMSGS=32
|
||||
CONFIG_NX_MXCLIENTMSGS=16
|
||||
# CONFIG_NX_NXSTART is not set
|
||||
|
||||
#
|
||||
# Memory Management
|
||||
|
@ -49,11 +49,11 @@
|
||||
* Pre-processor Definitions
|
||||
************************************************************************************/
|
||||
/* Configuration ********************************************************************/
|
||||
/* Should we initialize the NX server? This is done for NxWidgets (CONFIG_NXWIDGETS=y)
|
||||
* if nx_start() is available (CONFIG_NX_NXSTART=y) and if the NxWidget::CNxServer
|
||||
* class expects the RTOS to do the NX initialization (CONFIG_NXWIDGET_SERVERINIT=n).
|
||||
* This combination of settings is normally only used in the kernel build mode
|
||||
* (CONFIG_BUILD_PROTECTED) when NxWidgets is unable to initialize NX from user-space.
|
||||
/* Should we initialize the NX server using nx_start? This is done for NxWidgets
|
||||
* (CONFIG_NXWIDGETS=y) and if the NxWidget::CNxServer class expects the RTOS do the
|
||||
* the NX initialization (CONFIG_NXWIDGET_SERVERINIT=n). This combination of
|
||||
* settings is normally only used in the kernel build mode* (CONFIG_BUILD_PROTECTED)
|
||||
* when NxWidgets is unable to initialize NX from user-space.
|
||||
*/
|
||||
|
||||
#undef HAVE_NXSTART
|
||||
@ -62,17 +62,9 @@
|
||||
# undef CONFIG_NX_START
|
||||
#endif
|
||||
|
||||
#if defined(CONFIG_NXWIDGETS)
|
||||
# if defined(CONFIG_NX_NXSTART)
|
||||
# if !defined(CONFIG_NXWIDGET_SERVERINIT)
|
||||
# define HAVE_NXSTART
|
||||
# include <nuttx/nx/nx.h>
|
||||
# endif
|
||||
# else
|
||||
# if !defined(CONFIG_NXWIDGET_SERVERINIT) && defined(CONFIG_BUILD_PROTECTED)
|
||||
# error CONFIG_NX_NXSTART=y is needed
|
||||
# endif
|
||||
# endif
|
||||
#if defined(CONFIG_NXWIDGETS) && !defined(CONFIG_NXWIDGET_SERVERINIT)
|
||||
# define HAVE_NXSTART
|
||||
# include <nuttx/nx/nx.h>
|
||||
#endif
|
||||
|
||||
/* Should we initialize the touchscreen for the NxWM (CONFIG_NXWM=y)? This
|
||||
|
@ -989,7 +989,6 @@ CONFIG_NX_MULTIUSER=y
|
||||
CONFIG_NX_BLOCKING=y
|
||||
CONFIG_NX_MXSERVERMSGS=32
|
||||
CONFIG_NX_MXCLIENTMSGS=16
|
||||
# CONFIG_NX_NXSTART is not set
|
||||
|
||||
#
|
||||
# Memory Management
|
||||
|
@ -691,16 +691,6 @@ config NX_MXCLIENTMSGS
|
||||
flooding of the client or server with too many messages (PREALLOC_MQ_MSGS
|
||||
controls how many messages are pre-allocated).
|
||||
|
||||
config NX_NXSTART
|
||||
bool "nx_start()"
|
||||
default n
|
||||
---help---
|
||||
If this option is selected, then the nx_start() interface will be
|
||||
built. The nx_start() interface provides a single call to initialize
|
||||
and start the NX server.
|
||||
|
||||
if NX_NXSTART
|
||||
|
||||
config NXSTART_EXTERNINIT
|
||||
bool "External display Initialization"
|
||||
default n
|
||||
@ -743,7 +733,6 @@ config NXSTART_VPLANE
|
||||
---help---
|
||||
Only a single video plane is supported. Default: 0
|
||||
|
||||
endif # NX_NXSTART
|
||||
endif # NX_MULTIUSER
|
||||
|
||||
source "graphics/vnc/Kconfig"
|
||||
|
@ -38,10 +38,7 @@ ifeq ($(CONFIG_NX_MULTIUSER),y)
|
||||
CSRCS += nxmu_kbdin.c nxmu_mouse.c nxmu_openwindow.c nxmu_redrawreq.c
|
||||
CSRCS += nxmu_releasebkgd.c nxmu_requestbkgd.c nxmu_reportposition.c
|
||||
CSRCS += nxmu_sendclient.c nxmu_sendclientwindow.c nxmu_server.c
|
||||
|
||||
ifeq ($(CONFIG_NX_NXSTART),y)
|
||||
CSRCS += nx_start.c
|
||||
endif
|
||||
|
||||
DEPPATH += --dep-path nxmu
|
||||
CFLAGS += ${shell $(INCDIR) $(INCDIROPT) "$(CC)" $(TOPDIR)/graphics/nxmu}
|
||||
|
@ -51,8 +51,6 @@
|
||||
|
||||
#include "nxfe.h"
|
||||
|
||||
#ifdef CONFIG_NX_NXSTART
|
||||
|
||||
/****************************************************************************
|
||||
* Private Functions
|
||||
****************************************************************************/
|
||||
@ -155,6 +153,9 @@ int nx_server(int argc, char *argv[])
|
||||
* work in the NuttX kernel build because the resources required by the
|
||||
* NX server are private to the kernel mode logic.
|
||||
*
|
||||
* nx_start() can be called (indirectly) from applications via the
|
||||
* boardctl() interface with the BOARDIOC_NX_START command.
|
||||
*
|
||||
* Input Parameters:
|
||||
* None
|
||||
*
|
||||
@ -193,5 +194,3 @@ int nx_start(void)
|
||||
usleep(50*1000);
|
||||
return OK;
|
||||
}
|
||||
|
||||
#endif /* CONFIG_NX_NXSTART */
|
||||
|
@ -287,6 +287,9 @@ int nx_runinstance(FAR const char *mqname, FAR NX_DRIVERTYPE *dev);
|
||||
* work in the NuttX kernel build because the resources required by the
|
||||
* NX server are private to the kernel mode logic.
|
||||
*
|
||||
* nx_start() can be called (indirectly) from applications via the
|
||||
* boardctl() interface with the BOARDIOC_NX_START command.
|
||||
*
|
||||
* Input Parameters:
|
||||
* None
|
||||
*
|
||||
@ -300,7 +303,7 @@ int nx_runinstance(FAR const char *mqname, FAR NX_DRIVERTYPE *dev);
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
#if defined(CONFIG_NX_MULTIUSER) && defined(CONFIG_NX_NXSTART)
|
||||
#ifdef CONFIG_NX_MULTIUSER
|
||||
int nx_start(void);
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user