From deb35d3fb3123f7f88d84d33c73f94dd773ec2a4 Mon Sep 17 00:00:00 2001 From: Chen Wang Date: Wed, 7 Aug 2024 10:21:23 +0800 Subject: [PATCH] bsp: cvitek: SConstruct: optimize drivers_path_prefix For bsp/cvitek, all drivers related files are moved to the directory bsp/cvitek/drivers, so the drivers_path_prefix processing in the SConstruct of the three bsp projects can be simplified. Signed-off-by: Chen Wang --- bsp/cvitek/c906_little/SConstruct | 5 +---- bsp/cvitek/cv18xx_aarch64/SConstruct | 5 +---- bsp/cvitek/cv18xx_risc-v/SConstruct | 5 +---- 3 files changed, 3 insertions(+), 12 deletions(-) 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)