[Buildroot] [PATCH 1/1] package/avrdude: spi needs headers >= 4.8

Peter Korsgaard peter at korsgaard.com
Sun May 22 10:07:46 UTC 2022


>>>>> "Fabrice" == Fabrice Fontaine <fontaine.fabrice at gmail.com> writes:

 > SPI unconditionally uses GPIOHANDLE_SET_LINE_VALUES_IOCTL which is only
 > available since kernel 4.8 and
 > https://github.com/torvalds/linux/commit/d7c51b47ac11e66f547b55640405c1c474642d72
 > resulting in the following build failure since switch to upstream in
 > commit 03fa36df7e6aca0f4a1c8ae2fe691c0cda6ddc7a:

 > linuxspi.c: In function 'linuxspi_reset_mcu':
 > linuxspi.c:102:28: error: storage size of 'data' isn't known
 >      struct gpiohandle_data data;
 >                             ^~~~
 > linuxspi.c:110:32: error: 'GPIOHANDLE_SET_LINE_VALUES_IOCTL' undeclared (first use in this function)
 >      ret = ioctl(fd_linehandle, GPIOHANDLE_SET_LINE_VALUES_IOCTL, &data);
 >                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

 > Fixes:
 >  - http://autobuild.buildroot.org/results/769021040e5e9293584734e4f461baeaa6dd91cd

 > Signed-off-by: Fabrice Fontaine <fontaine.fabrice at gmail.com>

Committed to 2022.02.x, thanks.

-- 
Bye, Peter Korsgaard



More information about the buildroot mailing list