tracing: usb: Fix build issues.

1. Remove usb_descriptor.h as tracing_backend_usb.c doesn't have access
   to that include file.
2. Make TRACING_BACKEND_USB depend on USB being enabled.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
Kumar Gala 2020-02-07 06:40:27 -06:00 committed by Anas Nashif
commit d62dfe8d0e
2 changed files with 1 additions and 1 deletions

View file

@ -151,6 +151,7 @@ config TRACING_BACKEND_UART
config TRACING_BACKEND_USB config TRACING_BACKEND_USB
bool "Enable USB backend" bool "Enable USB backend"
depends on USB
depends on TRACING_ASYNC depends on TRACING_ASYNC
help help
Use USB to output tracing data. Use USB to output tracing data.

View file

@ -10,7 +10,6 @@
#include <sys/byteorder.h> #include <sys/byteorder.h>
#include <usb/usb_device.h> #include <usb/usb_device.h>
#include <usb/usb_common.h> #include <usb/usb_common.h>
#include <usb_descriptor.h>
#include <tracing_core.h> #include <tracing_core.h>
#include <tracing_buffer.h> #include <tracing_buffer.h>
#include <tracing_backend.h> #include <tracing_backend.h>