From bfc51d6a87319efe266fcbef24601aa56ee184b4 Mon Sep 17 00:00:00 2001 From: SPRESENSE <41312067+SPRESENSE@users.noreply.github.com> Date: Sat, 5 Aug 2023 14:21:55 +0900 Subject: [PATCH] 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