Skip to content

Commit

Permalink
[action][nrf5x] add ci config
Browse files Browse the repository at this point in the history
  • Loading branch information
hydevcode committed Nov 5, 2024
1 parent 977f382 commit 21a5b1e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
nimble:
kconfig:
- CONFIG_BSP_USING_NIMBLE=y
- CONFIG_PKG_USING_NIMBLE_V100=y
# ------ NimBLE Sample CI ------
nimble.advertiser:
depends:
- nimble
kconfig:
- CONFIG_BSP_USING_NIMBLE=y
- CONFIG_PKG_NIMBLE_SAMPLE_ADVERTISER=y
Expand Down
6 changes: 6 additions & 0 deletions tools/ci/bsp_buildings.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,11 +174,17 @@ def build_bsp_attachconfig(bsp, attach_file):

for projects in yml_files_content:
for name, details in projects.items():
for line in details.get('depends'):
depends_item=projects.get(line)
if(depends_item):
for depends_line in depends_item.get('kconfig'):
details['kconfig'].append(depends_line)
count += 1
config_bacakup = config_file+'.origin'
shutil.copyfile(config_file, config_bacakup)
with open(config_file, 'a') as destination:
for line in details.get('kconfig'):
print(f"::group::\t{line}")
destination.write(line + '\n')
scons_arg = details.get('scons_arg')
scons_arg_str = scons_arg[0] if scons_arg else ' '
Expand Down

0 comments on commit 21a5b1e

Please sign in to comment.