diff options
| author | Bernard Xiong <[email protected]> | 2019-07-19 19:29:48 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2019-07-19 19:29:48 +0800 |
| commit | c352c2be6329ab4617c44550a355444c6fe6ac8a (patch) | |
| tree | 4b230d6b637e3462e22a5e376492d601925af8a9 /tools | |
| parent | badac5175e96b58312f284338ddc36ebb21b7398 (diff) | |
| parent | 9333bbadbf65f65aed5736268d849b2b2dd846a5 (diff) | |
Merge pull request #2844 from ErnestChen1/drv_crypto
[drivers][crypto]add device CRC/RNG
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/mkdist.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tools/mkdist.py b/tools/mkdist.py index 3b77739282..7e4b9a8bbe 100644 --- a/tools/mkdist.py +++ b/tools/mkdist.py @@ -141,6 +141,19 @@ def bsp_update_kconfig_library(dist_dir): found = 0 f.write(line) + # change board/kconfig path + if not os.path.isfile(os.path.join(dist_dir, 'board/Kconfig')): + return + + with open(os.path.join(dist_dir, 'board/Kconfig'), 'r') as f: + data = f.readlines() + with open(os.path.join(dist_dir, 'board/Kconfig'), 'w') as f: + for line in data: + if line.find('../libraries/HAL_Drivers/Kconfig') != -1: + position = line.find('../libraries/HAL_Drivers/Kconfig') + line = line[0:position] + 'libraries/HAL_Drivers/Kconfig"\n' + f.write(line) + def bs_update_ide_project(bsp_root, rtt_root, rttide = None): import subprocess # default update the projects which have template file |
