From 84ec2b862e9c8ae827c1eb841733cb479d021e73 Mon Sep 17 00:00:00 2001 From: Jackie Huang Date: Tue, 17 May 2022 16:27:36 +0800 Subject: [PATCH] build_inf_centos.sh: use relative path for symlinks Issue-ID: INF-274 Signed-off-by: Jackie Huang Change-Id: I5c4ac201bc334982ecd5e512f3b3862ca034ec6e --- scripts/build_inf_centos/build_inf_centos.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/build_inf_centos/build_inf_centos.sh b/scripts/build_inf_centos/build_inf_centos.sh index 989ee28..ddb29f3 100755 --- a/scripts/build_inf_centos/build_inf_centos.sh +++ b/scripts/build_inf_centos/build_inf_centos.sh @@ -127,8 +127,8 @@ prepare_workspace () { mkdir -p ${STX_LOCAL_SRC_DIR} ${STX_LOCAL_PRJ_DIR} ${STX_MIRROR_DIR} ${STX_PRJ_OUTPUT} rm -f ${STX_SRC_DIR} ${STX_PRJ_DIR} - ln -sf ${STX_LOCAL_SRC_DIR} ${STX_SRC_DIR} - ln -sf ${STX_LOCAL_PRJ_DIR} ${STX_PRJ_DIR} + ln -sf $(realpath --relative-to=${WORKSPACE} ${STX_LOCAL_SRC_DIR}) ${STX_SRC_DIR} + ln -sf $(realpath --relative-to=${WORKSPACE} ${STX_LOCAL_PRJ_DIR}) ${STX_PRJ_DIR} echo_info "The following directories are created in your workspace(${WORKSPACE}):" echo_info "For all layers source: ${STX_SRC_DIR}" -- 2.16.6