You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
952 B
27 lines
952 B
3 years ago
|
###
|
||
|
# @ : Copyright (c) 2021 Phytium Information Technology, Inc.
|
||
|
#
|
||
|
# SPDX-License-Identifier: Apache-2.0.
|
||
|
#
|
||
|
# @Date: 2021-10-19 08:10:14
|
||
|
# @LastEditTime: 2021-10-19 08:29:14
|
||
|
# @Description: This files is for
|
||
|
#
|
||
|
# @Modify History:
|
||
|
# Ver Who Date Changes
|
||
|
# ----- ------ -------- --------------------------------------
|
||
|
###
|
||
|
# 指定sdk profle文件
|
||
|
export sdk_profile=/etc/profile.d/phytium_standalone_sdk.sh
|
||
|
# 检查sdk profile文件是否存在
|
||
|
ls $sdk_profile -l
|
||
|
# 删除profile文件可能存在的DEV目录
|
||
|
sudo sed -i "/export PHYTIUM_DEV_PATH=/d" $sdk_profile
|
||
|
# 将PHYTIUM_DEV_PATH记录在Profile中
|
||
|
echo "export PHYTIUM_DEV_PATH=/mnt/d/phytium-dev" >> $sdk_profile
|
||
|
# 检查DEV目录环境变量是否已定义
|
||
|
cat $sdk_profile | grep PHYTIUM_DEV_PATH
|
||
|
# 在当前控制台窗口中生效PHYTIUM_DEV_PATH
|
||
|
source $sdk_profile
|
||
|
# 检查DEV目录
|
||
|
echo $PHYTIUM_DEV_PATH
|