Skip to content
This repository has been archived by the owner on May 24, 2022. It is now read-only.

Commit

Permalink
After deleting BSP dir need to change directory, otherwise chdir from
Browse files Browse the repository at this point in the history
sal.py causing error that directory doesn't exist, Strange need to find
out reason of the error.
  • Loading branch information
kbhatt committed Jul 20, 2020
1 parent 0f524a7 commit cfcb5d2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 3 additions & 1 deletion bf_sde.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
get_sde_dir_name_in_tar, get_sde_home_absolute, get_sde_pkg_abs_path, \
get_sde_profile_details, get_sde_profile_name, get_selected_profile_name, \
read_settings, set_env_var, validate_path_existence, \
get_switch_model_from_settings, get_bsp_pkg_abs_path, append_to_env_var
get_switch_model_from_settings, get_bsp_pkg_abs_path, append_to_env_var,\
dname
from drivers import load_and_verify_kernel_modules, \
load_and_verify_kernel_modules_bf2556, load_and_verify_kernel_modules_bf6064

Expand Down Expand Up @@ -230,6 +231,7 @@ def install_switch_bsp():
os.system("make")
os.system("sudo make install")
shutil.rmtree(os.environ['BSP'])
os.chdir(dname)


def just_load_sde():
Expand Down
6 changes: 2 additions & 4 deletions sal.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,7 @@ def install_sal_thirdparty_deps():
def installProtobuf():
print('Installing protobuf.')
protobuf_ver = 'v3.6.1'
#protobuf_dir= '{0}/protobuf{1}/'.format(sal_thirdparty_path,protobuf_ver)
protobuf_dir='{}/protobuf'.format(sal_thirdparty_path)
protobuf_dir= '{0}/protobuf{1}/'.format(sal_thirdparty_path,protobuf_ver)
if os.path.exists(protobuf_dir):
print('{0} already exists, will rebuild.'.format(protobuf_dir))
else:
Expand Down Expand Up @@ -220,8 +219,7 @@ def installProtobuf():
def installgRPC():
print('Installing gRPC.')
gRPC_ver='v1.17.0'
#gRPC_dir='{0}/grpc{1}/'.format(sal_thirdparty_path,gRPC_ver)
gRPC_dir='{}/grpc'.format(sal_thirdparty_path)
gRPC_dir='{0}/grpc{1}/'.format(sal_thirdparty_path,gRPC_ver)
if os.path.exists(gRPC_dir):
print('{0} already exists, will rebuild.'.format(gRPC_dir))
else:
Expand Down

0 comments on commit cfcb5d2

Please sign in to comment.