usbarmory-u-boot: unbreak musl build.
This commit is contained in:
parent
0e3c4e8d11
commit
ddd111f510
2 changed files with 45 additions and 4 deletions
41
srcpkgs/usbarmory-u-boot/patches/include-sys-types.patch
Normal file
41
srcpkgs/usbarmory-u-boot/patches/include-sys-types.patch
Normal file
|
@ -0,0 +1,41 @@
|
|||
--- include/image.h
|
||||
+++ include/image.h
|
||||
@@ -24,6 +24,8 @@
|
||||
|
||||
#ifdef USE_HOSTCC
|
||||
|
||||
+#include <sys/types.h>
|
||||
+
|
||||
/* new uImage format support enabled on host */
|
||||
#define CONFIG_FIT 1
|
||||
#define CONFIG_OF_LIBFDT 1
|
||||
--- tools/imagetool.h
|
||||
+++ tools/imagetool.h
|
||||
@@ -16,6 +16,7 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <sys/stat.h>
|
||||
+#include <sys/types.h>
|
||||
#include <time.h>
|
||||
#include <unistd.h>
|
||||
#include <u-boot/sha1.h>
|
||||
--- tools/mkimage.h
|
||||
+++ tools/mkimage.h
|
||||
@@ -16,6 +16,7 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <sys/stat.h>
|
||||
+#include <sys/types.h>
|
||||
#include <time.h>
|
||||
#include <unistd.h>
|
||||
#include <u-boot/sha1.h>
|
||||
--- tools/proftool.c
|
||||
+++ tools/proftool.c
|
||||
@@ -16,6 +16,7 @@
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
#include <sys/param.h>
|
||||
+#include <sys/types.h>
|
||||
|
||||
#include <compiler.h>
|
||||
#include <trace.h>
|
|
@ -1,17 +1,17 @@
|
|||
# Template file for 'usbarmory-uboot'
|
||||
pkgname=usbarmory-u-boot
|
||||
version=2015.04
|
||||
revision=2
|
||||
revision=3
|
||||
wrksrc="u-boot-$version"
|
||||
hostmakedepends="uboot-mkimage"
|
||||
hostmakedepends="uboot-mkimage bc"
|
||||
short_desc="USB armory U-Boot files for SD booting"
|
||||
maintainer="Enno Boland <gottox@voidlinux.eu>"
|
||||
license="GPL-2"
|
||||
homepage="https://github.com/hardkernel/u-boot"
|
||||
distfiles="http://ftp.denx.de/pub/u-boot/u-boot-$version.tar.bz2"
|
||||
distfiles="ftp://ftp.denx.de/pub/u-boot/u-boot-$version.tar.bz2"
|
||||
checksum="0a1a70df586655f527befa6f12e184e96ed61b126e5a567382321b17200f5d60"
|
||||
|
||||
only_for_archs="armv7l"
|
||||
only_for_archs="armv7l armv7l-musl"
|
||||
|
||||
do_configure() {
|
||||
make distclean
|
||||
|
|
Loading…
Add table
Reference in a new issue