From b4d037a24c23172b3e590c6d8da437b3d0863c16 Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Wed, 4 Oct 2023 16:31:35 +0200 Subject: [PATCH] port: skip '*demo_util*' in create example scripts --- port/esp32/create_examples.py | 4 +++- port/renesas-tb-s1ja-cc256x/create_examples.py | 4 +++- port/wiced-h4/create_examples.py | 5 ++++- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/port/esp32/create_examples.py b/port/esp32/create_examples.py index 02dbf2fcf..844a81409 100755 --- a/port/esp32/create_examples.py +++ b/port/esp32/create_examples.py @@ -58,7 +58,9 @@ def create_examples(script_path, suffix): for file in os.listdir(examples_embedded): if not file.endswith(".c"): continue - if file in ['panu_demo.c', 'sco_demo_util.c', 'ant_test.c']: + if file in ['panu_demo.c', 'ant_test.c']: + continue + if 'demo_util' in file: continue example = file[:-2] diff --git a/port/renesas-tb-s1ja-cc256x/create_examples.py b/port/renesas-tb-s1ja-cc256x/create_examples.py index 8f0f178c7..6e3501b69 100755 --- a/port/renesas-tb-s1ja-cc256x/create_examples.py +++ b/port/renesas-tb-s1ja-cc256x/create_examples.py @@ -60,7 +60,9 @@ def create_examples(port_folder, suffix): for file in example_files: if not file.endswith(".c"): continue - if file in ['panu_demo.c', 'sco_demo_util.c', 'ant_test.c', 'audio_duplex.c', 'mod_player.c']: + if file in ['panu_demo.c', 'ant_test.c', 'audio_duplex.c', 'mod_player.c']: + continue + if 'demo_util' in file: continue if file in ['a2dp_sink_demo.c', 'a2dp_source_demo.c', 'hfp_hf_demo.c', 'hfp_ag_demo.c', 'hsp_hs_demo.c', 'hsp_ag_demo.c']: continue diff --git a/port/wiced-h4/create_examples.py b/port/wiced-h4/create_examples.py index ad7ddaa26..7b237f032 100755 --- a/port/wiced-h4/create_examples.py +++ b/port/wiced-h4/create_examples.py @@ -104,8 +104,11 @@ print("\nCreating examples in apps/btstack:") for file in os.listdir(examples_embedded): if not file.endswith(".c"): continue - if file in ['panu_demo.c', 'sco_demo_util.c', 'ant_test.c', 'pan_lwip_http_server.c']: + if file in ['panu_demo.c', 'ant_test.c', 'pan_lwip_http_server.c']: continue + if 'demo_util' in file: + continue + example = file[:-2] # create folder