Loading boot/bootutil/include/bootutil/caps.h +1 −0 Changes for boot/bootutil/include/bootutil/caps.h: 1 added line, 0 removed lines. Original line number Diff line number Diff line Loading @@ -50,6 +50,7 @@ uint32_t bootutil_get_caps(void); #define BOOTUTIL_CAP_BOOTSTRAP (1<<14) #define BOOTUTIL_CAP_AES256 (1<<15) #define BOOTUTIL_CAP_RAM_LOAD (1<<16) #define BOOTUTIL_CAP_DIRECT_XIP (1<<17) /* * Query the number of images this bootloader is configured for. This Loading boot/bootutil/src/caps.c +3 −0 Changes for boot/bootutil/src/caps.c: 3 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -75,6 +75,9 @@ uint32_t bootutil_get_caps(void) #if defined(MCUBOOT_RAM_LOAD) res |= BOOTUTIL_CAP_RAM_LOAD; #endif #if defined(MCUBOOT_DIRECT_XIP) res |= BOOTUTIL_CAP_DIRECT_XIP; #endif return res; } Loading sim/src/caps.rs +2 −1 Changes for sim/src/caps.rs: 2 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -27,6 +27,7 @@ pub enum Caps { Bootstrap = (1 << 14), Aes256 = (1 << 15), RamLoad = (1 << 16), DirectXip = (1 << 17), } impl Caps { Loading @@ -44,7 +45,7 @@ impl Caps { /// Query if this configuration performs some kind of upgrade by writing to flash. pub fn modifies_flash() -> bool { // All other configurations perform upgrades by writing to flash. !Self::RamLoad.present() !(Self::RamLoad.present() || Self::DirectXip.present()) } } Loading Loading
boot/bootutil/include/bootutil/caps.h +1 −0 Changes for boot/bootutil/include/bootutil/caps.h: 1 added line, 0 removed lines. Original line number Diff line number Diff line Loading @@ -50,6 +50,7 @@ uint32_t bootutil_get_caps(void); #define BOOTUTIL_CAP_BOOTSTRAP (1<<14) #define BOOTUTIL_CAP_AES256 (1<<15) #define BOOTUTIL_CAP_RAM_LOAD (1<<16) #define BOOTUTIL_CAP_DIRECT_XIP (1<<17) /* * Query the number of images this bootloader is configured for. This Loading
boot/bootutil/src/caps.c +3 −0 Changes for boot/bootutil/src/caps.c: 3 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -75,6 +75,9 @@ uint32_t bootutil_get_caps(void) #if defined(MCUBOOT_RAM_LOAD) res |= BOOTUTIL_CAP_RAM_LOAD; #endif #if defined(MCUBOOT_DIRECT_XIP) res |= BOOTUTIL_CAP_DIRECT_XIP; #endif return res; } Loading
sim/src/caps.rs +2 −1 Changes for sim/src/caps.rs: 2 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -27,6 +27,7 @@ pub enum Caps { Bootstrap = (1 << 14), Aes256 = (1 << 15), RamLoad = (1 << 16), DirectXip = (1 << 17), } impl Caps { Loading @@ -44,7 +45,7 @@ impl Caps { /// Query if this configuration performs some kind of upgrade by writing to flash. pub fn modifies_flash() -> bool { // All other configurations perform upgrades by writing to flash. !Self::RamLoad.present() !(Self::RamLoad.present() || Self::DirectXip.present()) } } Loading