@@ -192,6 +192,10 @@ elseif(CONFIG_BOARD_TYPE_XMINI_C3)
192192 set (BOARD_TYPE "xmini-c3" )
193193 set (BUILTIN_TEXT_FONT font_puhui_basic_14_1)
194194 set (BUILTIN_ICON_FONT font_awesome_14_1)
195+ elseif (CONFIG_BOARD_TYPE_XMINI_C3_SUPERMINI)
196+ set (BOARD_TYPE "xmini-c3-supermini" )
197+ set (BUILTIN_TEXT_FONT font_puhui_basic_14_1)
198+ set (BUILTIN_ICON_FONT font_awesome_14_1)
195199elseif (CONFIG_BOARD_TYPE_ESP32S3_KORVO2_V3)
196200 set (BOARD_TYPE "esp32s3-korvo2-v3" )
197201 set (BUILTIN_TEXT_FONT font_puhui_basic_20_4)
@@ -518,6 +522,17 @@ elseif(CONFIG_BOARD_TYPE_WTP4C5MP07S)
518522 set (BUILTIN_TEXT_FONT font_puhui_basic_30_4)
519523 set (BUILTIN_ICON_FONT font_awesome_30_4)
520524 set (DEFAULT_EMOJI_COLLECTION twemoji_64)
525+ elseif (CONFIG_BOARD_TYPE_DOGEPET_V2)
526+ # Folder name for DogePetV2 board
527+ set (BOARD_TYPE "dogepeV2" )
528+ set (BUILTIN_TEXT_FONT font_puhui_basic_16_4)
529+ set (BUILTIN_ICON_FONT font_awesome_16_4)
530+ set (DEFAULT_EMOJI_COLLECTION twemoji_32)
531+ elseif (CONFIG_BOARD_TYPE_DOGEPET)
532+ set (BOARD_TYPE "dogepet" )
533+ set (BUILTIN_TEXT_FONT font_puhui_basic_16_4)
534+ set (BUILTIN_ICON_FONT font_awesome_16_4)
535+ set (DEFAULT_EMOJI_COLLECTION twemoji_32)
521536endif ()
522537
523538file (GLOB BOARD_SOURCES
@@ -532,11 +547,19 @@ if(CONFIG_USE_AUDIO_PROCESSOR)
532547else ()
533548 list (APPEND SOURCES "audio/processors/no_audio_processor.cc" )
534549endif ()
550+ # Include wake word sources only for the selected implementation and target
551+ # Note: WAKE_WORD_TYPE is a Kconfig choice; only one of these will be set
535552if (CONFIG_IDF_TARGET_ESP32S3 OR CONFIG_IDF_TARGET_ESP32P4)
536- list (APPEND SOURCES "audio/wake_words/afe_wake_word.cc" )
537- list (APPEND SOURCES "audio/wake_words/custom_wake_word.cc" )
553+ if (CONFIG_USE_AFE_WAKE_WORD)
554+ list (APPEND SOURCES "audio/wake_words/afe_wake_word.cc" )
555+ endif ()
556+ if (CONFIG_USE_CUSTOM_WAKE_WORD)
557+ list (APPEND SOURCES "audio/wake_words/custom_wake_word.cc" )
558+ endif ()
538559else ()
539- list (APPEND SOURCES "audio/wake_words/esp_wake_word.cc" )
560+ if (CONFIG_USE_ESP_WAKE_WORD)
561+ list (APPEND SOURCES "audio/wake_words/esp_wake_word.cc" )
562+ endif ()
540563endif ()
541564
542565# Select language directory according to Kconfig
@@ -662,7 +685,6 @@ endif()
662685idf_component_register(SRCS ${SOURCES}
663686 EMBED_FILES ${LANG_SOUNDS} ${COMMON_SOUNDS}
664687 INCLUDE_DIRS ${INCLUDE_DIRS}
665- WHOLE_ARCHIVE
666688 )
667689
668690# Use target_compile_definitions to define BOARD_TYPE, BOARD_NAME
0 commit comments