Skip to content

Commit

Permalink
Replace /bin/cp with cp for nix-build (#730)
Browse files Browse the repository at this point in the history
* Replace /bin/cp with cp for nix-build

When using nix-build, /bin/cp cannot be found as there's nothing under
/bin except for sh.

Signed-off-by: Sylvain Bellemare <[email protected]>

* Call getconf(1) relative to `PATH`

Signed-off-by: Vincent Haupert <[email protected]>

Co-authored-by: Vincent Haupert <[email protected]>
  • Loading branch information
sbellem and veehaitch authored Jan 5, 2022
1 parent 71211ef commit 2ee53db
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion buildenv.mk
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ LINUX_UNITTESTS := $(ROOT_DIR)/unittests
DCAP_DIR := $(LINUX_EXTERNAL_DIR)/dcap_source
LIBUNWIND_DIR := $(ROOT_DIR)/sdk/cpprt/linux/libunwind

CP := /bin/cp -f
CP := cp -f
MKDIR := mkdir -p
STRIP := strip
OBJCOPY := objcopy
Expand Down
2 changes: 1 addition & 1 deletion psw/ae/aesm_service/source/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ set(CMAKE_SKIP_BUILD_RPATH true)
########## SGX SDK Settings ##########
set(SGX_ARCH x64)
execute_process (
COMMAND /usr/bin/getconf LONG_BIT
COMMAND getconf LONG_BIT
OUTPUT_VARIABLE LONG_BIT
)

Expand Down

0 comments on commit 2ee53db

Please sign in to comment.