package/flashrom: fix build on riscv
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Sun, 7 Feb 2021 19:57:33 +0000 (20:57 +0100)
committerArnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Tue, 16 Feb 2021 22:02:37 +0000 (23:02 +0100)
commit7d73bc52164afbb283d0d8723ed4cf0cbca38521
tree22fe187f1b26ebb4e2898df0d0965d5d4a194199
parent7ecf22a2fe012b038dc0bdad4cabc91f6b720699
package/flashrom: fix build on riscv

Retrieve an upstream patch to fix build with riscv as it fails to
retrieve architecture due to "Use sigaction with SA_RESTART instead"
being caught before riscv:

exec: export LC_ALL=C ; { /home/fabrice/buildroot/output/host/bin/riscv32-linux-gcc -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -E archtest.c 2>/dev/null | grep -v ^# | grep ' | cut -f 2 -d' ; }
Use sigaction with SA_RESTART instead
riscv

Fixes:
 - http://autobuild.buildroot.org/results/61ac6c9bfcd3bd9306aa49faf47b9f16e5abe846

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
package/flashrom/0001-Makefile-Fix-building-on-AArch64-NixOS.patch [new file with mode: 0644]