From ddd111f51037b1df767cef16ba94df61953d6c03 Mon Sep 17 00:00:00 2001 From: Juan RP <xtraeme@voidlinux.eu> Date: Wed, 10 Jun 2015 09:22:45 +0200 Subject: [PATCH] usbarmory-u-boot: unbreak musl build. --- .../patches/include-sys-types.patch | 41 +++++++++++++++++++ srcpkgs/usbarmory-u-boot/template | 8 ++-- 2 files changed, 45 insertions(+), 4 deletions(-) create mode 100644 srcpkgs/usbarmory-u-boot/patches/include-sys-types.patch diff --git a/srcpkgs/usbarmory-u-boot/patches/include-sys-types.patch b/srcpkgs/usbarmory-u-boot/patches/include-sys-types.patch new file mode 100644 index 0000000000..2f1ffe310e --- /dev/null +++ b/srcpkgs/usbarmory-u-boot/patches/include-sys-types.patch @@ -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> diff --git a/srcpkgs/usbarmory-u-boot/template b/srcpkgs/usbarmory-u-boot/template index 34e2786f90..9ed3ea08eb 100644 --- a/srcpkgs/usbarmory-u-boot/template +++ b/srcpkgs/usbarmory-u-boot/template @@ -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