You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by ut...@apache.org on 2019/07/15 10:14:57 UTC

[mynewt-newt] branch master updated: Fix IMAGE_F_NON_BOOTABLE definition to match mcuboot

This is an automated email from the ASF dual-hosted git repository.

utzig pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-newt.git


The following commit(s) were added to refs/heads/master by this push:
     new af7956d  Fix IMAGE_F_NON_BOOTABLE definition to match mcuboot
af7956d is described below

commit af7956d6929cd57c018d04574e36b03197671386
Author: Alvaro Prieto <so...@alvaroprieto.com>
AuthorDate: Thu Jul 4 12:25:24 2019 -0700

    Fix IMAGE_F_NON_BOOTABLE definition to match mcuboot
    
    The correct flag for IMAGE_F_NON_BOOTABLE should be 0x10 instead of 0x02
    according to the mcuboot files:
    https://github.com/JuulLabs-OSS/mcuboot/blob/3c469bc698a9767859ed73cd0201c44161204d5c/boot/bootutil/include/bootutil/image.h#L46
    
    Signed-off-by: Alvaro Prieto <so...@alvaroprieto.com>
---
 artifact/image/image.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/artifact/image/image.go b/artifact/image/image.go
index ab57b36..fc38339 100644
--- a/artifact/image/image.go
+++ b/artifact/image/image.go
@@ -50,8 +50,8 @@ const (
  */
 const (
 	IMAGE_F_PIC          = 0x00000001
-	IMAGE_F_NON_BOOTABLE = 0x00000002 /* non bootable image */
 	IMAGE_F_ENCRYPTED    = 0x00000004 /* encrypted image */
+	IMAGE_F_NON_BOOTABLE = 0x00000010 /* non bootable image */
 )
 
 /*