diff --git a/port/esp32/.gitignore b/port/esp32/.gitignore index 6e454860b..b47add076 100644 --- a/port/esp32/.gitignore +++ b/port/esp32/.gitignore @@ -1,3 +1,29 @@ build/ sdkconfig.old !*.a +ancs_client_demo/ +gap_dedicated_bonding/ +gap_inquiry/ +gap_le_advertisements/ +gatt_battery_query/ +gatt_browser/ +hfp_ag_demo/ +hfp_hf_demo/ +hsp_ag_demo/ +hsp_hs_demo/ +le_counter/ +le_streamer/ +le_streamer_client/ +led_counter/ +panu_demo/ +pbap_client_demo/ +sco_demo_util/ +sdp_bnep_query/ +sdp_general_query/ +sdp_rfcomm_query/ +sm_pairing_central/ +sm_pairing_peripheral/ +spp_and_le_counter/ +spp_counter/ +spp_flowcontrol/ +spp_streamer/ \ No newline at end of file diff --git a/port/esp32/Makefile b/port/esp32/Makefile new file mode 100644 index 000000000..e51d1b079 --- /dev/null +++ b/port/esp32/Makefile @@ -0,0 +1,8 @@ +.phony: examples +all: examples + +examples: + ./create_examples.py + +clean: + ./delete_examples.py diff --git a/port/esp32/delete_examples.py b/port/esp32/delete_examples.py new file mode 100755 index 000000000..833efc915 --- /dev/null +++ b/port/esp32/delete_examples.py @@ -0,0 +1,31 @@ +#!/usr/bin/env python +# +# Delete project files for all BTstack embedded examples in local port/esp32 folder + +import os +import shutil +import sys +import time +import subprocess + +# get script path +script_path = os.path.abspath(os.path.dirname(sys.argv[0])) + +# path to examples +examples_embedded = script_path + "/../../example/" + +# path to port/esp32 +apps_btstack = "" + +print("Deleting examples in local folder") + +# iterate over btstack examples +for file in os.listdir(examples_embedded): + if not file.endswith(".c"): + continue + example = file[:-2] + apps_folder = apps_btstack + example + "/" + if os.path.exists(apps_folder): + shutil.rmtree(apps_folder) + print("- %s" % example) +