diff --git a/srcpkgs/u-boot-tools/patches/musl.patch b/srcpkgs/u-boot-tools/patches/musl.patch new file mode 100644 index 00000000000..7cf89c52b8f --- /dev/null +++ b/srcpkgs/u-boot-tools/patches/musl.patch @@ -0,0 +1,10 @@ +--- a/tools/termios_linux.h ++++ b/tools/termios_linux.h +@@ -30,6 +30,7 @@ + #include + #include + #include ++#include + + #if defined(BOTHER) && defined(TCGETS2) + #define termios termios2 diff --git a/srcpkgs/u-boot-tools/template b/srcpkgs/u-boot-tools/template index d6aea6282b4..e7efda46885 100644 --- a/srcpkgs/u-boot-tools/template +++ b/srcpkgs/u-boot-tools/template @@ -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() {