Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions test/cmocka/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@ if BUILD_XTENSA
LOG_COMPILER = xt-run
endif

AM_CFLAGS = \
override AM_CFLAGS := \
$(filter-out -nostdlib,$(AM_CFLAGS)) \
$(SOF_INCDIR)

AM_LDFLAGS =
override AM_LDFLAGS := \
$(filter-out -nostdlib,$(AM_LDFLAGS))

if HAVE_CMOCKA_PREFIX
AM_CFLAGS += -I$(CMOCKA_PREFIX)/include
Expand All @@ -26,9 +28,6 @@ if BUILD_HOST
AM_CFLAGS += -I../../src/arch/host/include
endif

CFLAGS := $(filter-out -nostdlib,$(CFLAGS))
LDFLAGS := $(filter-out -nostdlib,$(LDFLAGS))

LDADD = -lcmocka

# memory allocator test
Expand Down
3 changes: 3 additions & 0 deletions test/cmocka/src/lib/alloc/mock.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*
* Author: Slawomir Blauciak <slawomir.blauciak@linux.intel.com>
* Janusz Jankowski <janusz.jankowski@linux.intel.com>
*/

#include <stdint.h>
Expand All @@ -38,11 +39,13 @@ struct dma_sg_config;
int dma_copy_from_host(struct dma_copy *dc, struct dma_sg_config *host_sg,
int32_t host_offset, void *local_ptr, int32_t size)
{
return 0;
}

int dma_copy_to_host(struct dma_copy *dc, struct dma_sg_config *host_sg,
int32_t host_offset, void *local_ptr, int32_t size)
{
return 0;
}

void _trace_event_mbox_atomic(uint32_t e)
Expand Down