mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-27 12:46:53 +00:00
syslinux: build syslinux-host
TODO: ugly. needs some rework
This commit is contained in:
parent
51e1179459
commit
4ce825bae6
@ -24,12 +24,30 @@
|
|||||||
|
|
||||||
$SCRIPTS/build toolchain
|
$SCRIPTS/build toolchain
|
||||||
|
|
||||||
LDFLAGS=`echo $LDFLAGS | sed -e "s|-Wl,--as-needed||"`
|
|
||||||
|
|
||||||
CFLAGS="$CFLAGS -I../libinstaller -I../libfat"
|
|
||||||
|
|
||||||
cd $PKG_BUILD
|
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 \
|
make CC=$CC \
|
||||||
AR=$AR \
|
AR=$AR \
|
||||||
RANLIB="$RANLIB" \
|
RANLIB="$RANLIB" \
|
||||||
|
@ -26,7 +26,7 @@ PKG_LICENSE="GPL"
|
|||||||
PKG_SITE="http://syslinux.zytor.com/"
|
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_URL="http://www.kernel.org/pub/linux/utils/boot/$PKG_NAME/$PKG_NAME-$PKG_VERSION.tar.bz2"
|
||||||
PKG_DEPENDS=""
|
PKG_DEPENDS=""
|
||||||
PKG_BUILD_DEPENDS="toolchain util-linux e2fsprogs"
|
PKG_BUILD_DEPENDS="toolchain util-linux:host util-linux e2fsprogs"
|
||||||
PKG_PRIORITY="optional"
|
PKG_PRIORITY="optional"
|
||||||
PKG_SECTION="tools"
|
PKG_SECTION="tools"
|
||||||
PKG_SHORTDESC="syslinux: Linux bootloader collection"
|
PKG_SHORTDESC="syslinux: Linux bootloader collection"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user