[Buildroot] [PATCH v3 0/1] Fix Rock 5B build, broken by gcc 12 warnings

Kilian Zinnecker kilian.zinnecker at mail.de
Sun Aug 20 19:04:37 UTC 2023


Building the image for the Radxa Rock 5B currently breaks: The gcc
version was recently changed to version 12 and gcc 12 seems to stop
compiling, if certain warnings occur. See the broken build here:

https://gitlab.com/buildroot.org/buildroot/-/jobs/4795673759

This patch series adds two patches from the mainline Linux kernel,
which fix two of the warnings. However, also custom code parts of the
used custom kernel break due to warnings from gcc 12. The best
solution would be that the vendor fixes those issues. However, until
the vendor provides fixes (if ever), the affected code parts (i.e.,
custom board support for WiFi) are disabled.

v2 -> v3:

  - Properly disabled a kernel config item in the linux.fragment
  - Added both, signed-of-by for myself and link to upstream commit
    to the added patch files
  - Documented disabling of WiFi to the board's readme

Kilian Zinnecker (1):
  configs/rock5b: Add patches to fix gcc12 warnings

 board/radxa/rock5b/linux.fragment             |  3 +
 ...st-ether_addr-prototypes-to-silence-.patch | 64 +++++++++++++++++++
 ...x-building-error-on-Werror-array-com.patch | 43 +++++++++++++
 board/radxa/rock5b/readme.txt                 | 20 ++++++
 configs/rock5b_defconfig                      |  1 +
 5 files changed, 131 insertions(+)
 create mode 100644 board/radxa/rock5b/patches/0001-etherdevice-Adjust-ether_addr-prototypes-to-silence-.patch
 create mode 100644 board/radxa/rock5b/patches/0002-mm-page_alloc-fix-building-error-on-Werror-array-com.patch

-- 
2.34.1




More information about the buildroot mailing list