mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-04-16 08:42:28 +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)
|
os.makedirs(apps_folder)
|
||||||
|
|
||||||
# copy files
|
# copy files
|
||||||
for item in ['sdkconfig', 'set_port.sh']:
|
for item in ['sdkconfig']:
|
||||||
src = script_path + '/template/' + item
|
src = script_path + '/template/' + item
|
||||||
if item == 'sdkconfig':
|
if item == 'sdkconfig':
|
||||||
src = src + suffix
|
src = src + suffix
|
||||||
dst = apps_folder + '/' + item
|
dst = apps_folder + '/' + item
|
||||||
shutil.copyfile(src, dst)
|
shutil.copyfile(src, dst)
|
||||||
|
|
||||||
# mark set_port.sh as executable
|
|
||||||
os.chmod(apps_folder + '/set_port.sh', 0o755)
|
|
||||||
|
|
||||||
# create Makefile file
|
# create Makefile file
|
||||||
with open(apps_folder + "Makefile", "wt") as fout:
|
with open(apps_folder + "Makefile", "wt") as fout:
|
||||||
fout.write(mk_template.replace("EXAMPLE", example).replace("TOOL", script_path).replace("DATE",time.strftime("%c")))
|
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