Commit 30b9064
committed
newt/builder: read BOOTUTIL_MAX_IMG_SECTORS from syscfg for boot trailer
Boot trailer size was hardcoded to 128 sectors, ignoring the value
set in syscfg. This caused mismatches between trailer size and
the actual image size when BOOTUTIL_MAX_IMG_SECTORS was set to
value other than 128, potentially making images not fit
in the slot. Now the trailer size is calculated based on the syscfg
value.1 parent 1a2a075 commit 30b9064
1 file changed
+24
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
777 | 777 | | |
778 | 778 | | |
779 | 779 | | |
| 780 | + | |
780 | 781 | | |
781 | 782 | | |
782 | 783 | | |
| |||
797 | 798 | | |
798 | 799 | | |
799 | 800 | | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
| 807 | + | |
| 808 | + | |
| 809 | + | |
| 810 | + | |
| 811 | + | |
| 812 | + | |
| 813 | + | |
| 814 | + | |
| 815 | + | |
| 816 | + | |
| 817 | + | |
| 818 | + | |
| 819 | + | |
| 820 | + | |
800 | 821 | | |
801 | 822 | | |
802 | 823 | | |
| |||
814 | 835 | | |
815 | 836 | | |
816 | 837 | | |
| 838 | + | |
817 | 839 | | |
818 | | - | |
| 840 | + | |
819 | 841 | | |
820 | 842 | | |
821 | 843 | | |
822 | | - | |
| 844 | + | |
823 | 845 | | |
824 | 846 | | |
825 | 847 | | |
| |||
0 commit comments