From 5ab824b7fbcb24c8a4a84117276d1a3a298d9aef Mon Sep 17 00:00:00 2001 From: Rye Sears Date: Thu, 10 Apr 2025 15:36:31 +0800 Subject: [PATCH] coremark: fix error when it was built in the second run When there is an error building packages other than coremark and re-run with make -j1 V=s, the coremark package will report error. the root cause is the folder was already created in the first run, and not removed before the second run. To fix this, use 'mkdir -p' instead of 'mkdir'. Co-authored-by: Jonas Gorski Signed-off-by: Rye Sears --- utils/coremark/Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/utils/coremark/Makefile b/utils/coremark/Makefile index 06a05c8753..cc3d6dd7f1 100644 --- a/utils/coremark/Makefile +++ b/utils/coremark/Makefile @@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=coremark PKG_SOURCE_DATE:=2023-01-25 PKG_SOURCE_VERSION:=d5fad6bd094899101a4e5fd53af7298160ced6ab -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE:=$(PKG_NAME)-$(PKG_SOURCE_DATE).tar.gz PKG_SOURCE_URL:=https://codeload.github.com/eembc/coremark/tar.gz/$(PKG_SOURCE_VERSION)? @@ -70,8 +70,8 @@ endif define Build/Compile $(SED) 's|EXE = .exe|EXE =|' $(PKG_BUILD_DIR)/posix/core_portme.mak - mkdir $(PKG_BUILD_DIR)/$(ARCH) - $(CP) -r $(PKG_BUILD_DIR)/linux/* $(PKG_BUILD_DIR)/$(ARCH) + mkdir -p $(PKG_BUILD_DIR)/$(ARCH) + $(CP) $(PKG_BUILD_DIR)/linux/* $(PKG_BUILD_DIR)/$(ARCH)/ $(MAKE) -C $(PKG_BUILD_DIR) PORT_DIR=$(ARCH) $(MAKE_FLAGS) \ PORT_CFLAGS="$(TARGET_CFLAGS)" XCFLAGS="$(EXTRA_CFLAGS)" compile endef -- 2.30.2