mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-05 21:59:45 +00:00
esp32: add make examples, make clean to create/delete example projects
This commit is contained in:
parent
40e336b75a
commit
1701a7440a
26
port/esp32/.gitignore
vendored
26
port/esp32/.gitignore
vendored
@ -1,3 +1,29 @@
|
|||||||
build/
|
build/
|
||||||
sdkconfig.old
|
sdkconfig.old
|
||||||
!*.a
|
!*.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/
|
8
port/esp32/Makefile
Normal file
8
port/esp32/Makefile
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
.phony: examples
|
||||||
|
all: examples
|
||||||
|
|
||||||
|
examples:
|
||||||
|
./create_examples.py
|
||||||
|
|
||||||
|
clean:
|
||||||
|
./delete_examples.py
|
31
port/esp32/delete_examples.py
Executable file
31
port/esp32/delete_examples.py
Executable file
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user