From 2051e3c18e4af25efc30f238da6edbd400bab49f Mon Sep 17 00:00:00 2001 From: Alberto Escolar Piedras Date: Wed, 24 Apr 2024 14:32:45 +0200 Subject: [PATCH] samples shell_module: Avoid setting incompatible options Currently the USB configuration of this sample is selecting POSIX_CLOCK and being built by default with USB_NATIVE_POSIX. This combination is currently not possible due to mutually exclusive dependencies (the host C library) which results in a configuration warning and POSIX_CLOCK being forced to 'n'. Let's instead disable POSIX_CLOCK in this sample USB config overlay, until the USB native driver supports building with embedded C libraries. Signed-off-by: Alberto Escolar Piedras --- samples/subsys/shell/shell_module/overlay-usb.conf | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/samples/subsys/shell/shell_module/overlay-usb.conf b/samples/subsys/shell/shell_module/overlay-usb.conf index ef7ec4357f9..692287e23a1 100644 --- a/samples/subsys/shell/shell_module/overlay-usb.conf +++ b/samples/subsys/shell/shell_module/overlay-usb.conf @@ -3,3 +3,9 @@ CONFIG_USB_DEVICE_PRODUCT="Zephyr USB shell sample" CONFIG_SHELL_BACKEND_SERIAL_CHECK_DTR=y CONFIG_UART_LINE_CTRL=y CONFIG_USB_DEVICE_INITIALIZE_AT_BOOT=n + +# POSIX_CLOCK requires an embedded C library while the native USB driver is incompatible with it. +# So let's disable it. Once USB_NATIVE_POSIX supports embedded C libraries this can be removed. +CONFIG_POSIX_CLOCK=n +# DATE_SHELL requires POSIX_CLOCK +CONFIG_DATE_SHELL=n