u-boot-tools: fix cross and musl builds

This commit is contained in:
Duncaen 2022-04-06 20:58:09 +02:00
parent 157ff7e1c9
commit 9627800f6d
No known key found for this signature in database
GPG key ID: 335C1D17EC3D6E35
2 changed files with 15 additions and 0 deletions

View 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

View file

@ -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() {