u-boot-tools: fix cross and musl builds
This commit is contained in:
parent
157ff7e1c9
commit
9627800f6d
2 changed files with 15 additions and 0 deletions
10
srcpkgs/u-boot-tools/patches/musl.patch
Normal file
10
srcpkgs/u-boot-tools/patches/musl.patch
Normal file
|
@ -0,0 +1,10 @@
|
|||
--- a/tools/termios_linux.h
|
||||
+++ b/tools/termios_linux.h
|
||||
@@ -30,6 +30,7 @@
|
||||
#include <sys/ioctl.h>
|
||||
#include <sys/types.h>
|
||||
#include <asm/termbits.h>
|
||||
+#include <asm/ioctls.h>
|
||||
|
||||
#if defined(BOTHER) && defined(TCGETS2)
|
||||
#define termios termios2
|
|
@ -17,6 +17,7 @@ checksum=68e065413926778e276ec3abd28bb32fa82abaa4a6898d570c1f48fbdb08bcd0
|
|||
|
||||
if [ "$CROSS_BUILD" ]; then
|
||||
make_build_args+=" CROSS_BUILD_TOOLS=y CROSS_COMPILE=${XBPS_CROSS_TRIPLET}-"
|
||||
hostmakedepends+=" u-boot-tools"
|
||||
fi
|
||||
|
||||
post_extract() {
|
||||
|
@ -25,6 +26,10 @@ post_extract() {
|
|||
-i include/env.h \
|
||||
-i tools/mkimage.h \
|
||||
-i tools/proftool.c
|
||||
|
||||
if [ "$CROSS_BUILD" ]; then
|
||||
vsed -e 's;^\t$(obj)/bmp_logo;\tbmp_logo;g' -i tools/Makefile
|
||||
fi
|
||||
}
|
||||
|
||||
do_configure() {
|
||||
|
|
Loading…
Reference in a new issue