This is an automated email from the ASF dual-hosted git repository.
jerpelea pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new bfc51d6a87 boards: cxd56xx: Fix duplicate make target
bfc51d6a87 is described below
commit bfc51d6a87319efe266fcbef24601aa56ee184b4
Author: SPRESENSE <[email protected]>
AuthorDate: Sat Aug 5 14:21:55 2023 +0900
boards: cxd56xx: Fix duplicate make target
Remove a build warning by target 'cxd56_audio.o' given more than once
in the same rule.
---
boards/arm/cxd56xx/common/CMakeLists.txt | 6 +-----
boards/arm/cxd56xx/common/src/Make.defs | 4 +---
2 files changed, 2 insertions(+), 8 deletions(-)
diff --git a/boards/arm/cxd56xx/common/CMakeLists.txt
b/boards/arm/cxd56xx/common/CMakeLists.txt
index ae9eaca2d3..3f7e4165ec 100644
--- a/boards/arm/cxd56xx/common/CMakeLists.txt
+++ b/boards/arm/cxd56xx/common/CMakeLists.txt
@@ -23,11 +23,7 @@ if(CONFIG_ARCH_BOARD_COMMON)
list(APPEND SRCS src/cxd56_boot.c)
- if(CONFIG_AUDIO_CXD56)
- list(APPEND SRCS src/cxd56_audio.c)
- endif()
-
- if(CONFIG_CXD56_AUDIO)
+ if(CONFIG_AUDIO_CXD56 OR CONFIG_CXD56_AUDIO)
list(APPEND SRCS src/cxd56_audio.c)
endif()
diff --git a/boards/arm/cxd56xx/common/src/Make.defs
b/boards/arm/cxd56xx/common/src/Make.defs
index a155eeaa2d..f518d2d630 100644
--- a/boards/arm/cxd56xx/common/src/Make.defs
+++ b/boards/arm/cxd56xx/common/src/Make.defs
@@ -24,9 +24,7 @@ CSRCS += cxd56_boot.c
ifeq ($(CONFIG_AUDIO_CXD56),y)
CSRCS += cxd56_audio.c
-endif
-
-ifeq ($(CONFIG_CXD56_AUDIO),y)
+else ifeq ($(CONFIG_CXD56_AUDIO),y)
CSRCS += cxd56_audio.c
endif