mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-09-04 00:43:24 +00:00
Prepend the text 'cmake_minimum_required(VERSION 3.8.2)' into the application and test build scripts. Modern versions of CMake will spam users with a deprecation warning when the toplevel CMakeLists.txt does not specify a CMake version. This is documented in bug #8355. To resolve this we include a cmake_minimum_required() line into the toplevel build scripts. Additionally, cmake_minimum_required is invoked from within boilerplate.cmake. The highest version will be enforced. This patch allows us to afterwards change CMake policy CMP000 from OLD to NEW which in turn finally rids us of the verbose warning. The extra boilerplate is considered more acceptable than the verbosity of the CMP0000 policy. Signed-off-by: Sebastian Bøe <sebastian.boe@nordicsemi.no> |
||
---|---|---|
.. | ||
src | ||
CMakeLists.txt | ||
prj_tls.conf | ||
prj.conf | ||
README.rst | ||
sample.yaml |
.. _websocket-console-sample: Websocket Console ################# Overview ******** The websocket-console sample application for Zephyr implements a console over a websocket. The websocket-console sample application listens for incoming IPv4 or IPv6 HTTP(S) requests and provides Zephyr console to the browser over a websocket. The source code for this sample application can be found at: :file:`samples/net/ws_console`. Requirements ************ - :ref:`networking_with_qemu` Building and Running ******************** There are multiple ways to use this application. One of the most common usage scenario is to run websocket-console application inside QEMU. This is described in :ref:`networking_with_qemu`. Build ws_console sample application like this: .. zephyr-app-commands:: :zephyr-app: samples/net/ws_console :board: qemu_x86 :goals: run :compact: The default make BOARD configuration for this sample is ``qemu_x86``. Connect to the console from your browser using these URLs http://[2001:db8::1] or http://192.0.2.1 as configured in the project's ``prj.conf`` file.