TO ALL
Best practice is to use realpath.
-. $LKP_SRC/lib/env.sh -. $LKP_SRC/sbin/set-env.sh +. lib/env.sh +. sbin/set-env.sh
SCRIPT_DIR=$(dirname $(realpath $0)) PROJECT_DIR=$(dirname $SCRIPT_DIR) $PROJECT_DIR/lib/env.sh $PROJECT_DIR/sbin/set-env.sh
Thanks, Fengguang