flashrom: fix musl.
This commit is contained in:
parent
3d3eb03328
commit
d5db98526f
2 changed files with 36 additions and 0 deletions
33
srcpkgs/flashrom/patches/spi-ioctl.patch
Normal file
33
srcpkgs/flashrom/patches/spi-ioctl.patch
Normal file
|
@ -0,0 +1,33 @@
|
||||||
|
--- linux_spi.c.orig
|
||||||
|
+++ linux_spi.c
|
||||||
|
@@ -26,6 +26,7 @@
|
||||||
|
#include <errno.h>
|
||||||
|
#include <ctype.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
+#include <asm/ioctl.h>
|
||||||
|
#include <linux/types.h>
|
||||||
|
#include <linux/spi/spidev.h>
|
||||||
|
#include <sys/ioctl.h>
|
||||||
|
--- linux_spi.c.orig
|
||||||
|
+++ linux_spi.c
|
||||||
|
@@ -22,7 +22,7 @@
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <string.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
-#include <sys/fcntl.h>
|
||||||
|
+#include <fcntl.h>
|
||||||
|
#include <errno.h>
|
||||||
|
#include <ctype.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
--- hwaccess.h.orig
|
||||||
|
+++ hwaccess.h
|
||||||
|
@@ -25,9 +25,7 @@
|
||||||
|
#define __HWACCESS_H__ 1
|
||||||
|
|
||||||
|
#if IS_X86
|
||||||
|
-#if defined(__GLIBC__)
|
||||||
|
#include <sys/io.h>
|
||||||
|
-#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if NEED_PCI == 1
|
|
@ -15,6 +15,9 @@ post_extract() {
|
||||||
sed -i "s:sbin:bin:g" Makefile
|
sed -i "s:sbin:bin:g" Makefile
|
||||||
}
|
}
|
||||||
|
|
||||||
|
do_configure() {
|
||||||
|
sed -i 's/u_int\([0-9]*\)_t/uint\1_t/' $(find -name '*.[ch]')
|
||||||
|
}
|
||||||
do_build() {
|
do_build() {
|
||||||
make PREFIX=/usr ${makejobs} \
|
make PREFIX=/usr ${makejobs} \
|
||||||
CONFIG_INTERNAL=no CONFIG_RAYER_SPI=no CONFIG_NIC3COM=no CONFIG_GFXNVIDIA=no CONFIG_SATASII=no \
|
CONFIG_INTERNAL=no CONFIG_RAYER_SPI=no CONFIG_NIC3COM=no CONFIG_GFXNVIDIA=no CONFIG_SATASII=no \
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue