mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-02-23 00:39:51 +00:00
esp32: update port, only add required files to esp-idf component
This commit is contained in:
parent
7fbe4b77ee
commit
5524a00429
@ -48,7 +48,6 @@
|
|||||||
#include "btstack_debug.h"
|
#include "btstack_debug.h"
|
||||||
#include "btstack_audio.h"
|
#include "btstack_audio.h"
|
||||||
#include "btstack_run_loop.h"
|
#include "btstack_run_loop.h"
|
||||||
#include "hal_audio.h"
|
|
||||||
|
|
||||||
#include "freertos/FreeRTOS.h"
|
#include "freertos/FreeRTOS.h"
|
||||||
#include "freertos/queue.h"
|
#include "freertos/queue.h"
|
||||||
|
@ -45,7 +45,6 @@ dirs_to_copy = [
|
|||||||
'3rd-party/micro-ecc',
|
'3rd-party/micro-ecc',
|
||||||
'3rd-party/yxml',
|
'3rd-party/yxml',
|
||||||
'platform/freertos',
|
'platform/freertos',
|
||||||
'platform/embedded',
|
|
||||||
'platform/lwip',
|
'platform/lwip',
|
||||||
'tool'
|
'tool'
|
||||||
]
|
]
|
||||||
@ -54,5 +53,18 @@ for dir in dirs_to_copy:
|
|||||||
print('- %s' % dir)
|
print('- %s' % dir)
|
||||||
shutil.copytree(local_dir + '/../../' + dir, IDF_BTSTACK + '/' + dir)
|
shutil.copytree(local_dir + '/../../' + dir, IDF_BTSTACK + '/' + dir)
|
||||||
|
|
||||||
|
# manually prepare platform/embedded
|
||||||
|
print('- platform/embedded')
|
||||||
|
platform_embedded_path = IDF_BTSTACK + '/platform/embedded'
|
||||||
|
os.makedirs(platform_embedded_path)
|
||||||
|
platform_embedded_files_to_copy = [
|
||||||
|
'hal_time_ms.h',
|
||||||
|
'hal_uart_dma.h',
|
||||||
|
'hci_dump_embedded_stdout.h',
|
||||||
|
'hci_dump_embedded_stdout.c',
|
||||||
|
]
|
||||||
|
for file in platform_embedded_files_to_copy:
|
||||||
|
shutil.copy(local_dir+'/../../platform/embedded/'+file, platform_embedded_path)
|
||||||
|
|
||||||
# create example/btstack
|
# create example/btstack
|
||||||
create_examples.create_examples(local_dir, '')
|
create_examples.create_examples(local_dir, '')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user