Skip to content

Commit

Permalink
coremark: fix error when it was built in the second run
Browse files Browse the repository at this point in the history
when there is an error building packages, and re-run with `make -j1 V=s`,  the coremark package will report error

`mkdir: cannot create directory '.../coremark-d5fad6bd094899101a4e5fd53af7298160ced6ab/XXX': File exists`

so, add a check to see if that dir is already there;

also add a '/' to the destination folder of the `cp` command

fixes immortalwrt#1380
  • Loading branch information
xlighting2017 authored Nov 28, 2024
1 parent dfea4d0 commit a8d2a41
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utils/coremark/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,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)
[ -d "$(PKG_BUILD_DIR)/$(ARCH)" ] || mkdir $(PKG_BUILD_DIR)/$(ARCH)
$(CP) -r $(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
Expand Down

0 comments on commit a8d2a41

Please sign in to comment.