You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by cc...@apache.org on 2019/07/18 21:40:40 UTC

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

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

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


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

commit 8a1fee9751c819fb0be947ca5310d55e524aec96
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>
---
 image/image.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/image/image.go b/image/image.go
index f5dd1bb..1530ea3 100644
--- a/image/image.go
+++ b/image/image.go
@@ -46,8 +46,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 */
 )
 
 /*