syslinux: build syslinux-host

TODO: ugly. needs some rework
This commit is contained in:
Stefan Saraev 2013-09-16 22:18:50 +03:00
parent 51e1179459
commit 4ce825bae6
2 changed files with 23 additions and 5 deletions

View File

@ -24,12 +24,30 @@
$SCRIPTS/build toolchain
LDFLAGS=`echo $LDFLAGS | sed -e "s|-Wl,--as-needed||"`
CFLAGS="$CFLAGS -I../libinstaller -I../libfat"
cd $PKG_BUILD
setup_toolchain host
HOST_LDFLAGS=`echo $HOST_LDFLAGS | sed -e "s|-Wl,--as-needed||"`
HOST_CFLAGS="$HOST_CFLAGS -I../libinstaller -I../libfat"
# TODO: fix
cp $ROOT/$PKG_BUILD/com32/include/com32.h $ROOT/$TOOLCHAIN/include
make clean
make CC=$CC \
AR=$AR \
RANLIB="$RANLIB" \
LDFLAGS="$HOST_LDFLAGS" \
CFLAGS="$HOST_CFLAGS -fomit-frame-pointer -D_FILE_OFFSET_BITS=64" \
installer
# TODO: fix
cp $ROOT/$PKG_BUILD/extlinux/extlinux $ROOT/$PKG_BUILD/extlinux/extlinux.host
setup_toolchain target
LDFLAGS=`echo $LDFLAGS | sed -e "s|-Wl,--as-needed||"`
CFLAGS="$CFLAGS -I../libinstaller -I../libfat"
make clean
make CC=$CC \
AR=$AR \
RANLIB="$RANLIB" \

View File

@ -26,7 +26,7 @@ PKG_LICENSE="GPL"
PKG_SITE="http://syslinux.zytor.com/"
PKG_URL="http://www.kernel.org/pub/linux/utils/boot/$PKG_NAME/$PKG_NAME-$PKG_VERSION.tar.bz2"
PKG_DEPENDS=""
PKG_BUILD_DEPENDS="toolchain util-linux e2fsprogs"
PKG_BUILD_DEPENDS="toolchain util-linux:host util-linux e2fsprogs"
PKG_PRIORITY="optional"
PKG_SECTION="tools"
PKG_SHORTDESC="syslinux: Linux bootloader collection"