mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-04-15 23:42:52 +00:00
esp32: fix create samples
This commit is contained in:
parent
bd2a400864
commit
766aac70d9
@ -94,16 +94,13 @@ def create_examples(script_path, suffix):
|
||||
os.makedirs(apps_folder)
|
||||
|
||||
# copy files
|
||||
for item in ['sdkconfig', 'set_port.sh']:
|
||||
for item in ['sdkconfig']:
|
||||
src = script_path + '/template/' + item
|
||||
if item == 'sdkconfig':
|
||||
src = src + suffix
|
||||
dst = apps_folder + '/' + item
|
||||
shutil.copyfile(src, dst)
|
||||
|
||||
# mark set_port.sh as executable
|
||||
os.chmod(apps_folder + '/set_port.sh', 0o755)
|
||||
|
||||
# create Makefile file
|
||||
with open(apps_folder + "Makefile", "wt") as fout:
|
||||
fout.write(mk_template.replace("EXAMPLE", example).replace("TOOL", script_path).replace("DATE",time.strftime("%c")))
|
||||
|
Loading…
x
Reference in New Issue
Block a user