File tree Expand file tree Collapse file tree 2 files changed +31
-0
lines changed Expand file tree Collapse file tree 2 files changed +31
-0
lines changed Original file line number Diff line number Diff line change @@ -729,6 +729,33 @@ config MCUBOOT_BOOT_BANNER
729
729
config BOOT_BANNER_STRING
730
730
default "Using Zephyr OS build" if MCUBOOT_BOOT_BANNER
731
731
732
+ config BOOT_DECOMPRESSION_SUPPORT
733
+ bool
734
+ help
735
+ Hidden symbol which should be selected if a system provided decompression support.
736
+
737
+ if BOOT_DECOMPRESSION_SUPPORT
738
+
739
+ menuconfig BOOT_DECOMPRESSION
740
+ bool "Decompression"
741
+ help
742
+ If enabled, will include support for compressed images being loaded to the secondary slot
743
+ which then get decompressed into the primary slot. This mode allows the secondary slot to
744
+ be smaller than primary slot which otherwise would not be allowed.
745
+
746
+ if BOOT_DECOMPRESSION
747
+
748
+ config BOOT_DECOMPRESSION_BUFFER_SIZE
749
+ int "Write buffer size"
750
+ range 16 16384
751
+ default 4096
752
+ help
753
+ The size of a secondary buffer used for writing decompressed data to the storage device.
754
+
755
+ endif # BOOT_DECOMPRESSION
756
+
757
+ endif # BOOT_DECOMPRESSION_SUPPORT
758
+
732
759
endmenu
733
760
734
761
config MCUBOOT_DEVICE_SETTINGS
Original file line number Diff line number Diff line change 127
127
#define MCUBOOT_ENCRYPT_X25519
128
128
#endif
129
129
130
+ #ifdef CONFIG_BOOT_DECOMPRESSION
131
+ #define MCUBOOT_DECOMPRESS_IMAGES
132
+ #endif
133
+
130
134
#ifdef CONFIG_BOOT_BOOTSTRAP
131
135
#define MCUBOOT_BOOTSTRAP 1
132
136
#endif
You can’t perform that action at this time.
0 commit comments