diff --git a/CMakeLists.txt b/CMakeLists.txt index 429ede95..143a925e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -16,5 +16,5 @@ if(CONFIG_M5STACK_FIRE) list(APPEND DEFINITIONS "M5STACK_FIRE") endif(CONFIG_M5STACK_FIRE) -target_compile_definitions(${COMPONENT_NAME} PUBLIC ${DEFINITIONS}) +target_compile_definitions(${COMPONENT_TARGET} PUBLIC ${DEFINITIONS}) diff --git a/Kconfig.projbuild b/Kconfig.projbuild new file mode 100644 index 00000000..e52f5c8d --- /dev/null +++ b/Kconfig.projbuild @@ -0,0 +1,20 @@ +menu "M5Stack" + +choice CORE_TYPE + prompt "Type of Core" + default M5STACK_BASIC + help + Type of Core. + +config M5STICK + bool "M5Stick" +config M5STACK_BASIC + bool "M5Stack Basic" +config M5STACK_GRAY + bool "M5Stack Gray" +config M5STACK_FIRE + bool "M5Stack Fire" +endchoice + +endmenu +