Commit ea34f9a7 authored by Fabio Utzig's avatar Fabio Utzig Committed by Fabio Utzig
Browse files

Fix Mynewt boot_serial unittest

The boot_serial test was failing build because it hadn't been updated to
use new multi-image flash area nomenclature. This fixes the build.

Signed-off-by: default avatarFabio Utzig <utzig@apache.org>
parent 61fd888a
Loading
Loading
Loading
Loading
+2 −1
Changes for boot/boot_serial/test/src/testcases/boot_serial_upload_bigger_image.c: 2 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -17,6 +17,7 @@
 * under the License.
 */

#include <flash_map_backend/flash_map_backend.h>
#include <tinycbor/cborconstants_p.h>

#include "boot_test.h"
@@ -105,7 +106,7 @@ TEST_CASE(boot_serial_upload_bigger_image)
    /*
     * Validate contents inside the primary slot
     */
    rc = flash_area_open(FLASH_AREA_IMAGE_PRIMARY, &fap);
    rc = flash_area_open(FLASH_AREA_IMAGE_PRIMARY(0), &fap);
    assert(rc == 0);

    for (off = 0; off < sizeof(img); off += sizeof(enc_img)) {
+1 −0
Changes for boot/mynewt/flash_map_backend/pkg.yml: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
@@ -11,3 +11,4 @@ pkg.homepage: "http://mcuboot.com"

pkg.deps:
    - "@apache-mynewt-core/sys/flash_map"
    - "@mcuboot/boot/mynewt/mcuboot_config"