1#
2# Licensed to the Apache Software Foundation (ASF) under one
3# or more contributor license agreements.  See the NOTICE file
4# distributed with this work for additional information
5# regarding copyright ownership.  The ASF licenses this file
6# to you under the Apache License, Version 2.0 (the
7# "License"); you may not use this file except in compliance
8# with the License.  You may obtain a copy of the License at
9#
10#  http://www.apache.org/licenses/LICENSE-2.0
11#
12# Unless required by applicable law or agreed to in writing,
13# software distributed under the License is distributed on an
14# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15# KIND, either express or implied.  See the License for the
16# specific language governing permissions and limitations
17# under the License.
18#
19
20pkg.name: boot/bootutil
21pkg.description: The bootutil library performs most of the functions of a boot loader.
22pkg.author: "Apache Mynewt <dev@mynewt.apache.org>"
23pkg.homepage: "http://mynewt.apache.org/"
24pkg.keywords:
25    - boot
26    - bootloader
27
28pkg.apis:
29    - bootloader
30
31pkg.cflags:
32    - "-DMCUBOOT_MYNEWT=1"
33
34pkg.cflags.BOOTUTIL_USE_MBED_TLS:
35    - '-DMBEDTLS_USER_CONFIG_FILE="mbedtls/config_mynewt.h"'
36
37pkg.deps:
38    - "@mcuboot/boot/mynewt/mcuboot_config"
39    - "@apache-mynewt-core/hw/hal"
40    - "@apache-mynewt-core/kernel/os"
41    - "@apache-mynewt-core/sys/defs"
42    - "@mcuboot/boot/mynewt/flash_map_backend"
43
44pkg.ign_files.BOOTUTIL_SINGLE_APPLICATION_SLOT:
45    - "loader.c"
46    - "swap_scratch.c"
47
48pkg.deps.BOOTUTIL_USE_MBED_TLS:
49    - "@apache-mynewt-core/crypto/mbedtls"
50
51pkg.deps.BOOTUTIL_USE_TINYCRYPT:
52    - "@mcuboot/ext/tinycrypt/lib"
53    - "@mcuboot/ext/mbedtls-asn1"
54
55pkg.deps.BOOTUTIL_SIGN_ED25519:
56    - "@mcuboot/ext/tinycrypt/lib"
57    - "@mcuboot/ext/tinycrypt-sha512/lib"
58    - "@mcuboot/ext/mbedtls-asn1"
59    - "@mcuboot/ext/fiat"
60
61pkg.deps.BOOTUTIL_ENCRYPT_X25519:
62    - "@mcuboot/ext/tinycrypt/lib"
63    - "@mcuboot/ext/tinycrypt-sha512/lib"
64    - "@mcuboot/ext/mbedtls-asn1"
65    - "@mcuboot/ext/fiat"
66