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