kiss-mfavila-small/ports/syslinux/build
2021-05-09 03:10:08 -03:00

22 lines
459 B
Bash
Executable File

#!/bin/sh -e
patch -p1 < 0018-prevent-pow-optimization.patch
patch -p1 < fcommon.patch
# Fix missing <sys/sysmacros.h> include.
sed -i 's@vfs.h>@vfs.h>\n#include <sys/sysmacros.h>@' extlinux/main.c
# Disable debugging and development "stuff".
: > mk/devel.mk
make -j1 \
PYTHON=python \
bios efi64 installer
make -j1 \
INSTALLROOT="$1" \
MANDIR=/usr/share/man \
SBINDIR=/usr/bin \
AUXDIR=/usr/lib/syslinux \
bios efi64 install