File tree Expand file tree Collapse file tree 5 files changed +12
-7
lines changed Expand file tree Collapse file tree 5 files changed +12
-7
lines changed Original file line number Diff line number Diff line change @@ -47,9 +47,6 @@ function(add_subdirectory_exclude_platforms NAME)
47
47
add_subdirectory (${NAME} )
48
48
endfunction ()
49
49
50
- # Set signing file for entire project
51
- set_property (GLOBAL PROPERTY PICOTOOL_SIGFILE "${CMAKE_CURRENT_LIST_DIR} /sample_keys/private.pem" )
52
-
53
50
# Add blink example
54
51
add_subdirectory_exclude_platforms (blink )
55
52
add_subdirectory_exclude_platforms (blink_simple )
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ endfunction()
39
39
add_linker_script (enc_bootloader "0x20078000" "32k" )
40
40
41
41
# sign, hash, and clear SRAM
42
- pico_sign_binary (enc_bootloader )
42
+ pico_sign_binary (enc_bootloader ${CMAKE_CURRENT_LIST_DIR} /private.pem )
43
43
pico_hash_binary (enc_bootloader )
44
44
pico_load_map_clear_sram (enc_bootloader )
45
45
@@ -76,7 +76,7 @@ add_linker_script(hello_serial_enc "0x20000000" "448k")
76
76
pico_set_otp_key_output_file (hello_serial_enc ${CMAKE_CURRENT_BINARY_DIR} /otp.json )
77
77
78
78
# sign, hash, and encrypt
79
- pico_sign_binary (hello_serial_enc )
79
+ pico_sign_binary (hello_serial_enc ${CMAKE_CURRENT_LIST_DIR} /private.pem )
80
80
pico_hash_binary (hello_serial_enc )
81
81
pico_encrypt_binary (hello_serial_enc ${CMAKE_CURRENT_LIST_DIR} /privateaes.bin ${CMAKE_CURRENT_LIST_DIR} /ivsalt.bin )
82
82
File renamed without changes.
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ target_link_libraries(picow_ota_update_background
20
20
pico_use_wifi_firmware_partition (picow_ota_update_background )
21
21
22
22
pico_hash_binary (picow_ota_update_background )
23
- pico_sign_binary (picow_ota_update_background )
23
+ pico_sign_binary (picow_ota_update_background ${CMAKE_CURRENT_LIST_DIR} /private.pem )
24
24
# pico_set_binary_type(picow_ota_update_background no_flash)
25
25
# pico_package_uf2_output(picow_ota_update_background 0x10000000)
26
26
@@ -48,7 +48,7 @@ target_link_libraries(picow_ota_update_poll
48
48
pico_use_wifi_firmware_partition (picow_ota_update_poll )
49
49
50
50
pico_hash_binary (picow_ota_update_poll )
51
- pico_sign_binary (picow_ota_update_poll )
51
+ pico_sign_binary (picow_ota_update_poll ${CMAKE_CURRENT_LIST_DIR} /private.pem )
52
52
# pico_set_binary_type(picow_ota_update_background no_flash)
53
53
# pico_package_uf2_output(picow_ota_update_background 0x10000000)
54
54
Original file line number Diff line number Diff line change
1
+ -----BEGIN EC PARAMETERS-----
2
+ BgUrgQQACg==
3
+ -----END EC PARAMETERS-----
4
+ -----BEGIN EC PRIVATE KEY-----
5
+ MHQCAQEEIAXAdiilH8wT07TESUzWPt+BY9+NcchvYU3xbnpK+CBNoAcGBSuBBAAK
6
+ oUQDQgAEYYJtMQFGW4AB94tU3u/Qir5sRcYjBYMqCa+8gxsYd9OwMS3dqWKsnVBz
7
+ dyy7bFWdJzXDMb9o20xRRd57Q9xSYw==
8
+ -----END EC PRIVATE KEY-----
You can’t perform that action at this time.
0 commit comments