From d0a6dd40c4ee3cc5da72c9ffaa0ef7cf64f1c5cc Mon Sep 17 00:00:00 2001 From: Bowen Wang Date: Fri, 20 Sep 2024 15:36:51 +0800 Subject: [PATCH] coremark/Makefile: avoid crc function multiple definition /data/project/oh2/rel-4.0/prebuilts/gcc/linux/arm/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/bin/ld: crc16_sw.c.data.project.oh2.rel-4.0.external.zblue.zblue_1.o (symbol from plugin): in function `crc16': (.text+0x0): multiple definition of `crc16'; core_util.c.data.project.oh2.rel-4.0.apps.benchmarks.coremark_1.o (symbol from plugin):(.text+0x0): first defined here Signed-off-by: Bowen Wang --- benchmarks/coremark/Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/benchmarks/coremark/Makefile b/benchmarks/coremark/Makefile index 5965e1bf3..e5526cd57 100644 --- a/benchmarks/coremark/Makefile +++ b/benchmarks/coremark/Makefile @@ -85,6 +85,11 @@ else CFLAGS += ${DEFINE_PREFIX}ITERATIONS=0 endif +CFLAGS += ${DEFINE_PREFIX}crcu8=coremark_crcu8 +CFLAGS += ${DEFINE_PREFIX}crcu16=coremark_crcu16 +CFLAGS += ${DEFINE_PREFIX}crcu32=coremark_crcu32 +CFLAGS += ${DEFINE_PREFIX}crc16=coremark_crc16 + CSRCS += core_list_join.c CSRCS += core_matrix.c CSRCS += core_state.c