#!/bin/sh -e patch -p1 < 0018-prevent-pow-optimization.patch patch -p1 < fcommon.patch # Fix missing include. sed -i 's@vfs.h>@vfs.h>\n#include @' 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