Commit 2c7a38e
committed
bricks/ev3: use .elf instead of uImage
Replace creating a uImage with using the .elf file directly for the EV3
firmware. This simplifies the build process and avoids the need for
u-boot-tools. U-Boot already knows how to load the .elf file, so we
can use it directly by using `bootelf` instead of `bootm` (this change
was made in the pybricks/v2.0.0 release of u-boot).
In order to keep the size of the .elf file small, we do not enable
`-ffunction-sections` and `-fdata-sections` for the EV3 firmware.
This avoids the large tables of section names that are generated by
these flags, which would otherwise increase the size of the .elf file
by nearly 200 kB. The .elf file is still a bit larger than the uImage
because of a bit more overhead, but only by less than 4kB.1 parent 52a2c62 commit 2c7a38e
File tree
5 files changed
+16
-19
lines changed- .github/workflows
- bricks
- _common
- ev3
5 files changed
+16
-19
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
96 | | - | |
| 96 | + | |
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
160 | 160 | | |
161 | 161 | | |
162 | 162 | | |
163 | | - | |
| 163 | + | |
164 | 164 | | |
165 | 165 | | |
166 | 166 | | |
| |||
196 | 196 | | |
197 | 197 | | |
198 | 198 | | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
199 | 203 | | |
200 | 204 | | |
| 205 | + | |
201 | 206 | | |
202 | 207 | | |
203 | 208 | | |
| |||
623 | 628 | | |
624 | 629 | | |
625 | 630 | | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
626 | 635 | | |
627 | 636 | | |
628 | 637 | | |
| |||
635 | 644 | | |
636 | 645 | | |
637 | 646 | | |
638 | | - | |
639 | | - | |
| 647 | + | |
| 648 | + | |
640 | 649 | | |
641 | 650 | | |
642 | 651 | | |
643 | 652 | | |
644 | | - | |
| 653 | + | |
645 | 654 | | |
646 | 655 | | |
647 | 656 | | |
| |||
664 | 673 | | |
665 | 674 | | |
666 | 675 | | |
667 | | - | |
668 | | - | |
669 | | - | |
670 | | - | |
671 | | - | |
672 | | - | |
673 | 676 | | |
674 | 677 | | |
675 | 678 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | 27 | | |
34 | 28 | | |
35 | 29 | | |
| |||
0 commit comments