From 62f37274e1801ecc970320857604a30a7a77f39b Mon Sep 17 00:00:00 2001 From: Victor Date: Mon, 17 Feb 2020 22:41:33 +0800 Subject: [PATCH 1/2] modify for add code as components in idf project --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}) From e0416155b33e8ab78663dc5a1be3f0638c03c2db Mon Sep 17 00:00:00 2001 From: Victor Date: Mon, 17 Feb 2020 22:44:28 +0800 Subject: [PATCH 2/2] modify kconfig for add code as components in idf project --- Kconfig.projbuild | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 Kconfig.projbuild 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 +