Skip to content

Commit

Permalink
arch/sim: Guard frame buffer related setting in SIM_X11FB
Browse files Browse the repository at this point in the history
and remove SIM_VNCSERVER

Signed-off-by: Xiang Xiao <[email protected]>
  • Loading branch information
xiaoxiang781216 authored and GUIDINGLI committed Sep 19, 2023
1 parent 4d2cc2a commit 15e7847
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 8 deletions.
10 changes: 3 additions & 7 deletions arch/sim/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -326,10 +326,10 @@ config SIM_X11FB
---help---
Use X11 to provide graphics and input emulation to interact with host.

if SIM_X11FB
config SIM_X11NOSHM
bool "Don't use shared memory with X11"
default n
depends on SIM_X11FB
---help---
Don't use shared memory with the X11 graphics device emulation.

Expand Down Expand Up @@ -383,14 +383,10 @@ config SIM_FRAMEBUFFER
---help---
Emulate a framebuffer

config SIM_VNCSERVER
bool "VNC server"
depends on VNCSERVER
---help---
Serve a VNC server

endchoice

endif # SIM_X11FB

if INPUT
choice
prompt "Input Device"
Expand Down
1 change: 1 addition & 0 deletions boards/sim/sim/sim/configs/fb/defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ CONFIG_DRIVERS_VIDEO=y
CONFIG_EXAMPLES_FB=y
CONFIG_IDLETHREAD_STACKSIZE=4096
CONFIG_INIT_ENTRYPOINT="fb_main"
CONFIG_SIM_X11FB=y
CONFIG_START_DAY=28
CONFIG_START_MONTH=11
CONFIG_START_YEAR=2008
Expand Down
1 change: 1 addition & 0 deletions boards/sim/sim/sim/configs/nx/defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ CONFIG_NXFONT_SANS23X27=y
CONFIG_NX_BLOCKING=y
CONFIG_NX_KBD=y
CONFIG_NX_XYINPUT_MOUSE=y
CONFIG_SIM_X11FB=y
CONFIG_START_DAY=28
CONFIG_START_MONTH=11
CONFIG_START_YEAR=2008
Expand Down
1 change: 0 additions & 1 deletion boards/sim/sim/sim/configs/vncserver/defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ CONFIG_NET_USRSOCK_TCP=y
CONFIG_NET_USRSOCK_UDP=y
CONFIG_SCHED_LPWORK=y
CONFIG_SIM_NETUSRSOCK=y
CONFIG_SIM_VNCSERVER=y
CONFIG_VIDEO_FB=y
CONFIG_VNCSERVER=y
CONFIG_VNCSERVER_COLORFMT_RGB32=y
Expand Down

0 comments on commit 15e7847

Please sign in to comment.