blob: 9eb67a17580a7044a8e6335fd2785580ca7d0360 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
find_package(Python3 REQUIRED)
function(mcuboot_sign_app mcuboot key target sink source)
add_custom_target(
"${target}"
ALL
DEPENDS
${sink}
)
add_custom_command(
OUTPUT
${sink}
COMMAND
${Python3_EXECUTABLE} ${mcuboot}/scripts/imgtool.py sign --version 0.0.0 --header-size 0x200 --slot-size 0xc0000 --key ${key} ${source} ${sink}
COMMAND
echo "${sink}"
DEPENDS
${source}
)
endfunction()
|