Skip to content

Commit 97532e6

Browse files
donghengMr-Pi
dongheng
authored andcommitted
feat(freertos): Add option to disable FreeRTOS
1 parent 3cca703 commit 97532e6

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

components/freertos/Kconfig

+7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
menu "FreeRTOS"
22

3+
config DISABLE_FREERTOS
4+
bool "Disable FreeRTOS"
5+
default n
6+
help
7+
Enable this option, FreeRTOS will not be compiled and linked, and the user
8+
can user other OS platform.
9+
310
config FREERTOS_ENABLE_REENT
411
bool "Enable \"reent\" function"
512
default n

components/freertos/component.mk

+8-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11

22
# Component Makefile
33
#
4-
COMPONENT_ADD_INCLUDEDIRS += include include/freertos include/freertos/private port/esp8266/include port/esp8266/include/freertos
54

5+
COMPONENT_ADD_INCLUDEDIRS += include \
6+
include/freertos \
7+
include/freertos/private \
8+
port/esp8266/include \
9+
port/esp8266/include/freertos
10+
11+
ifndef CONFIG_DISABLE_FREERTOS
612
COMPONENT_SRCDIRS := freertos port/esp8266
13+
endif

0 commit comments

Comments
 (0)