COREMARK_PRO_LICENSE_FILES = LICENSE.md
COREMARK_PRO_DEPENDENCIES = perl
+COREMARK_PRO_LDFLAGS = -lm
+
ifeq ($(BR2_ENDIAN),"BIG")
-COREMARK_PRO_MAKE_OPTS += PLATFORM_DEFINES='EE_BIG_ENDIAN=1 EE_LITTLE_ENDIAN=0'
+COREMARK_PRO_DEFINES += \
+ EE_BIG_ENDIAN=1 \
+ EE_LITTLE_ENDIAN=0
+else
+COREMARK_PRO_DEFINES += \
+ EE_BIG_ENDIAN=0 \
+ EE_LITTLE_ENDIAN=1
+endif
+
+ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),y)
+COREMARK_PRO_DEFINES += \
+ USE_NATIVE_PTHREAD=1 \
+ USE_SINGLE_CONTEXT=0
+COREMARK_PRO_LDFLAGS += -lpthread
else
-COREMARK_PRO_MAKE_OPTS += PLATFORM_DEFINES='EE_BIG_ENDIAN=0 EE_LITTLE_ENDIAN=1'
+COREMARK_PRO_DEFINES += \
+ USE_NATIVE_PTHREAD=0 \
+ USE_SINGLE_CONTEXT=1
endif
COREMARK_PRO_MAKE_OPTS += \
+ LINKER_LAST="$(COREMARK_PRO_LDFLAGS)" \
+ PLATFORM_DEFINES="$(COREMARK_PRO_DEFINES)" \
TARGET=linux$(if $(BR2_ARCH_IS_64),64) \
EXE=