Commit c95a417
committed
odroidc1: fix GCC 14 build via config.mk -fpermissive patch (not cflags hook)
The initial fix appended -Wno-error flags to uboot_cflags_array, but that has no
effect on this 2011-era hardkernel u-boot (odroidc-v2011.03): its pre-Kbuild
config.mk assigns CFLAGS with := and ignores the framework's injected
KCFLAGS/env CFLAGS. The build kept failing on the same GCC-14 default-errors
(implicit-function-declaration, int-conversion, incompatible-pointer-types, ...
in board.c/gpio.c/bootm.c) - confirmed by the flags being absent from the actual
per-file gcc command lines.
Replace the hook with a source patch that adds -fpermissive to config.mk's
CFLAGS. In GCC 14, -fpermissive downgrades exactly those C permerrors back to
warnings; verified accepted by arm-linux-gnueabi-gcc 14 and confirmed to build.
ARCH=armhf, so the int<->pointer conversions are same-width and benign.
Signed-off-by: Igor Pecovnik <igor@armbian.com>1 parent e624ccb commit c95a417
2 files changed
Lines changed: 38 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
Lines changed: 34 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
0 commit comments