diff --git a/bsp/cvitek/c906_little/SConstruct b/bsp/cvitek/c906_little/SConstruct index 0a1878479d..6d07b7f5a7 100755 --- a/bsp/cvitek/c906_little/SConstruct +++ b/bsp/cvitek/c906_little/SConstruct @@ -26,10 +26,7 @@ Export('rtconfig') SDK_ROOT = os.path.abspath('./') -if os.path.exists(SDK_ROOT + '/drivers'): - drivers_path_prefix = SDK_ROOT + '/drivers' -else: - drivers_path_prefix = os.path.dirname(SDK_ROOT) + '/drivers' +drivers_path_prefix = os.path.dirname(SDK_ROOT) + '/drivers' # prepare building environment objs = PrepareBuilding(env, RTT_ROOT, has_libcpu = False) diff --git a/bsp/cvitek/cv18xx_aarch64/SConstruct b/bsp/cvitek/cv18xx_aarch64/SConstruct index 1642f6ef13..a6d47ce514 100644 --- a/bsp/cvitek/cv18xx_aarch64/SConstruct +++ b/bsp/cvitek/cv18xx_aarch64/SConstruct @@ -38,10 +38,7 @@ Export('rtconfig') SDK_ROOT = os.path.abspath('./') -if os.path.exists(SDK_ROOT + '/drivers'): - drivers_path_prefix = SDK_ROOT + '/drivers' -else: - drivers_path_prefix = os.path.dirname(SDK_ROOT) + '/drivers' +drivers_path_prefix = os.path.dirname(SDK_ROOT) + '/drivers' # prepare building environment objs = PrepareBuilding(env, RTT_ROOT) diff --git a/bsp/cvitek/cv18xx_risc-v/SConstruct b/bsp/cvitek/cv18xx_risc-v/SConstruct index 8743a97fe9..d8f57e0def 100755 --- a/bsp/cvitek/cv18xx_risc-v/SConstruct +++ b/bsp/cvitek/cv18xx_risc-v/SConstruct @@ -26,10 +26,7 @@ rtconfig.ARCH='risc-v' SDK_ROOT = os.path.abspath('./') -if os.path.exists(SDK_ROOT + '/drivers'): - drivers_path_prefix = SDK_ROOT + '/drivers' -else: - drivers_path_prefix = os.path.dirname(SDK_ROOT) + '/drivers' +drivers_path_prefix = os.path.dirname(SDK_ROOT) + '/drivers' # prepare building environment objs = PrepareBuilding(env, RTT_ROOT, has_libcpu = False)