diff --git a/arch/sim/src/Makefile b/arch/sim/src/Makefile index bd669e8678..29b5380fed 100644 --- a/arch/sim/src/Makefile +++ b/arch/sim/src/Makefile @@ -104,12 +104,6 @@ endif HOSTSRCS += up_simsmp.c endif -ifeq ($(CONFIG_SCHED_INSTRUMENTATION),y) -ifneq ($(CONFIG_SCHED_INSTRUMENTATION_BUFFER),y) - CSRCS += up_schednote.c -endif -endif - ifeq ($(CONFIG_ONESHOT),y) CSRCS += up_oneshot.c endif diff --git a/drivers/note/Kconfig b/drivers/note/Kconfig index 61a22740e0..0644402f08 100644 --- a/drivers/note/Kconfig +++ b/drivers/note/Kconfig @@ -46,6 +46,12 @@ config DRIVER_NOTEARCH ---help--- The note driver is provided by arch specific code. +config DRIVER_NOTELOG + bool "Note syslog driver" + select SCHED_INSTRUMENTATION_EXTERNAL + ---help--- + The note driver output to syslog. + endchoice config DRIVER_NOTERAM_BUFSIZE diff --git a/drivers/note/Make.defs b/drivers/note/Make.defs index 943e4ff01c..fc74611f99 100644 --- a/drivers/note/Make.defs +++ b/drivers/note/Make.defs @@ -26,6 +26,10 @@ ifeq ($(CONFIG_DRIVER_NOTERAM),y) CSRCS += noteram_driver.c endif +ifeq ($(CONFIG_DRIVER_NOTELOG),y) + CSRCS += notelog_driver.c +endif + ifeq ($(CONFIG_DRIVER_NOTECTL),y) CSRCS += notectl_driver.c endif diff --git a/arch/sim/src/sim/up_schednote.c b/drivers/note/notelog_driver.c similarity index 99% rename from arch/sim/src/sim/up_schednote.c rename to drivers/note/notelog_driver.c index e06976b612..4b855e3ece 100644 --- a/arch/sim/src/sim/up_schednote.c +++ b/drivers/note/notelog_driver.c @@ -1,5 +1,5 @@ /**************************************************************************** - * arch/sim/src/sim/up_schednote.c + * drivers/note/notelog_driver.c * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with