Coremark: update the compilation for 64bit
authorkongfl888 K <kongfl888@outlook.com>
Mon, 24 Aug 2020 04:01:10 +0000 (04:01 +0000)
committerkongfl888 K <kongfl888@outlook.com>
Mon, 24 Aug 2020 04:01:10 +0000 (04:01 +0000)
Signed-off-by: kongfl888 K <kongfl888@outlook.com>
utils/coremark/Makefile

index b37895c644757f5730b8f01037a71e8c50c2a2e5..81f0d101e043215f3c3c2bb2ddbdd60ab5e31346 100644 (file)
@@ -34,10 +34,12 @@ define Package/coremark/description
   Embedded Microprocessor Benchmark
 endef
 
+DIR_ARCH:=linux$(if $(CONFIG_ARCH_64BIT),64)
+
 define Build/Compile
-       $(SED) 's|EXE = .exe|EXE =|' $(PKG_BUILD_DIR)/linux/core_portme.mak
+       $(SED) 's|EXE = .exe|EXE =|' $(PKG_BUILD_DIR)/$(DIR_ARCH)/core_portme.mak
        mkdir $(PKG_BUILD_DIR)/$(ARCH)
-       $(CP) -r $(PKG_BUILD_DIR)/linux/* $(PKG_BUILD_DIR)/$(ARCH)
+       $(CP) -r $(PKG_BUILD_DIR)/$(DIR_ARCH)/* $(PKG_BUILD_DIR)/$(ARCH)
        $(MAKE) -C $(PKG_BUILD_DIR) PORT_DIR=$(ARCH) $(MAKE_FLAGS) \
                compile 
 endef