mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-09-18 09:21:56 +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.conf | ||
README.rst | ||
sample.yaml |
.. _syslog-net-sample: Syslog net Application ###################### Overview ******** This sample application enables a remote syslog service that will send syslog messages to a remote server, as configured in ``prj.conf``. See https://tools.ietf.org/html/rfc5424 and https://tools.ietf.org/html/rfc5424 for more details about syslog protocol over UDP. The source code for this sample application can be found at: :file:`samples/net/syslog_net`. Requirements ************ - :ref:`networking_with_qemu` Building and Running ******************** For configuring the remote IPv6 syslog server, set the following variables in prj.conf file: .. code-block:: console CONFIG_SYS_LOG_BACKEND_NET=y CONFIG_SYS_LOG_BACKEND_NET_SERVER="[2001:db8::2]:514" Default port number is 514 if user does not specify a value. The following syntax is supported for the server address and port: .. code-block:: console 192.0.2.1:514 192.0.2.42 [2001:db8::1]:514 [2001:db8::2] 2001:db::42 Build syslog_net sample application like this: .. zephyr-app-commands:: :zephyr-app: samples/net/syslog_net :board: <board to use> :conf: <config file to use> :goals: build :compact: