|
1 | | -add_executable(picow_ota_update_background |
| 1 | +add_executable(picow_ota_update |
2 | 2 | picow_ota_update.c |
3 | 3 | ) |
4 | | -target_compile_definitions(picow_ota_update_background PRIVATE |
| 4 | +target_compile_definitions(picow_ota_update PRIVATE |
5 | 5 | WIFI_SSID=\"${WIFI_SSID}\" |
6 | 6 | WIFI_PASSWORD=\"${WIFI_PASSWORD}\" |
7 | 7 | PICO_CRT0_IMAGE_TYPE_TBYB=1 |
8 | 8 | ) |
9 | | -target_include_directories(picow_ota_update_background PRIVATE |
| 9 | +target_include_directories(picow_ota_update PRIVATE |
10 | 10 | ${CMAKE_CURRENT_LIST_DIR} |
11 | 11 | ${CMAKE_CURRENT_LIST_DIR}/.. # for our common lwipopts |
12 | 12 | ) |
13 | | -target_link_libraries(picow_ota_update_background |
| 13 | +target_link_libraries(picow_ota_update |
14 | 14 | pico_cyw43_arch_lwip_threadsafe_background |
15 | 15 | pico_stdlib |
16 | 16 | pico_sha256 |
17 | 17 | boot_uf2_headers |
18 | 18 | ) |
19 | 19 |
|
20 | | -pico_use_wifi_firmware_partition(picow_ota_update_background) |
| 20 | +pico_use_wifi_firmware_partition(picow_ota_update) |
21 | 21 |
|
22 | | -pico_hash_binary(picow_ota_update_background) |
23 | | -pico_sign_binary(picow_ota_update_background ${CMAKE_CURRENT_LIST_DIR}/private.pem) |
24 | | -# pico_set_binary_type(picow_ota_update_background no_flash) |
25 | | -# pico_package_uf2_output(picow_ota_update_background 0x10000000) |
| 22 | +pico_hash_binary(picow_ota_update) |
| 23 | +pico_sign_binary(picow_ota_update ${CMAKE_CURRENT_LIST_DIR}/private.pem) |
| 24 | +# pico_set_binary_type(picow_ota_update no_flash) |
| 25 | +# pico_package_uf2_output(picow_ota_update 0x10000000) |
26 | 26 |
|
27 | | -pico_add_extra_outputs(picow_ota_update_background) |
28 | | - |
29 | | -add_executable(picow_ota_update_poll |
30 | | - picow_ota_update.c |
31 | | - ) |
32 | | -target_compile_definitions(picow_ota_update_poll PRIVATE |
33 | | - WIFI_SSID=\"${WIFI_SSID}\" |
34 | | - WIFI_PASSWORD=\"${WIFI_PASSWORD}\" |
35 | | - PICO_CRT0_IMAGE_TYPE_TBYB=1 |
36 | | - ) |
37 | | -target_include_directories(picow_ota_update_poll PRIVATE |
38 | | - ${CMAKE_CURRENT_LIST_DIR} |
39 | | - ${CMAKE_CURRENT_LIST_DIR}/.. # for our common lwipopts |
40 | | - ) |
41 | | -target_link_libraries(picow_ota_update_poll |
42 | | - pico_cyw43_arch_lwip_poll |
43 | | - pico_stdlib |
44 | | - pico_sha256 |
45 | | - boot_uf2_headers |
46 | | - ) |
47 | | - |
48 | | -pico_use_wifi_firmware_partition(picow_ota_update_poll) |
49 | | - |
50 | | -pico_hash_binary(picow_ota_update_poll) |
51 | | -pico_sign_binary(picow_ota_update_poll ${CMAKE_CURRENT_LIST_DIR}/private.pem) |
52 | | -# pico_set_binary_type(picow_ota_update_poll no_flash) |
53 | | -# pico_package_uf2_output(picow_ota_update_poll 0x10000000) |
54 | | - |
55 | | -pico_add_extra_outputs(picow_ota_update_poll) |
| 27 | +pico_add_extra_outputs(picow_ota_update) |
0 commit comments