mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
projects/*/options: make prelink support optional
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
fe7fdfb6a2
commit
ff84723996
@ -27,6 +27,11 @@ if [ "$LTO_SUPPORT" = yes ];then
|
||||
LD_OPTIM="$LD_OPTIM -flto"
|
||||
fi
|
||||
|
||||
if [ "$PRELINK_SUPPORT" = yes ]; then
|
||||
GCC_OPTIM="$GCC_OPTIM -fPIC"
|
||||
LD_OPTIM="$LD_OPTIM -fPIC"
|
||||
fi
|
||||
|
||||
if [ "$DEBUG" = yes ]; then
|
||||
TARGET_CFLAGS="$TARGET_CFLAGS -ggdb"
|
||||
TARGET_CXXFLAGS="$TARGET_CXXFLAGS -ggdb"
|
||||
|
@ -91,6 +91,9 @@
|
||||
# LTO (Link Time Optimization) support
|
||||
LTO_SUPPORT="no"
|
||||
|
||||
# Prelink binarys and librarys
|
||||
PRELINK_SUPPORT="yes"
|
||||
|
||||
# Bootloader to use (syslinux / u-boot / atv-bootloader)
|
||||
# BOOTLOADER="atv-bootloader" disabled for now
|
||||
BOOTLOADER=""
|
||||
|
@ -91,6 +91,9 @@
|
||||
# LTO (Link Time Optimization) support
|
||||
LTO_SUPPORT="no"
|
||||
|
||||
# Prelink binarys and librarys
|
||||
PRELINK_SUPPORT="yes"
|
||||
|
||||
# Bootloader to use (syslinux / u-boot / atv-bootloader)
|
||||
BOOTLOADER="syslinux"
|
||||
|
||||
|
@ -91,6 +91,9 @@
|
||||
# LTO (Link Time Optimization) support
|
||||
LTO_SUPPORT="no"
|
||||
|
||||
# Prelink binarys and librarys
|
||||
PRELINK_SUPPORT="yes"
|
||||
|
||||
# Bootloader to use (syslinux / u-boot / atv-bootloader)
|
||||
BOOTLOADER="syslinux"
|
||||
|
||||
|
@ -91,6 +91,9 @@
|
||||
# LTO (Link Time Optimization) support
|
||||
LTO_SUPPORT="no"
|
||||
|
||||
# Prelink binarys and librarys
|
||||
PRELINK_SUPPORT="yes"
|
||||
|
||||
# Bootloader to use (syslinux / u-boot / atv-bootloader)
|
||||
BOOTLOADER="syslinux"
|
||||
|
||||
|
@ -91,6 +91,9 @@
|
||||
# LTO (Link Time Optimization) support
|
||||
LTO_SUPPORT="no"
|
||||
|
||||
# Prelink binarys and librarys
|
||||
PRELINK_SUPPORT="yes"
|
||||
|
||||
# Bootloader to use (syslinux / u-boot / atv-bootloader)
|
||||
BOOTLOADER="syslinux"
|
||||
|
||||
|
@ -91,6 +91,9 @@
|
||||
# LTO (Link Time Optimization) support
|
||||
LTO_SUPPORT="no"
|
||||
|
||||
# Prelink binarys and librarys
|
||||
PRELINK_SUPPORT="yes"
|
||||
|
||||
# Bootloader to use (syslinux / u-boot / atv-bootloader)
|
||||
BOOTLOADER="syslinux"
|
||||
|
||||
|
@ -82,8 +82,6 @@
|
||||
;;
|
||||
esac
|
||||
|
||||
|
||||
|
||||
# Build optimizations (size/normal/speed)
|
||||
OPTIMIZATIONS="speed"
|
||||
|
||||
@ -93,6 +91,9 @@
|
||||
# LTO (Link Time Optimization) support
|
||||
LTO_SUPPORT="no"
|
||||
|
||||
# Prelink binarys and librarys
|
||||
PRELINK_SUPPORT="yes"
|
||||
|
||||
# Bootloader to use (syslinux / u-boot / atv-bootloader / bcm2835-bootloader)
|
||||
BOOTLOADER="bcm2835-bootloader"
|
||||
|
||||
|
@ -91,6 +91,9 @@
|
||||
# LTO (Link Time Optimization) support
|
||||
LTO_SUPPORT="no"
|
||||
|
||||
# Prelink binarys and librarys
|
||||
PRELINK_SUPPORT="yes"
|
||||
|
||||
# Bootloader to use (syslinux / u-boot / atv-bootloader)
|
||||
BOOTLOADER="syslinux"
|
||||
|
||||
|
@ -86,6 +86,9 @@
|
||||
# LTO (Link Time Optimization) support
|
||||
LTO_SUPPORT="no"
|
||||
|
||||
# Prelink binarys and librarys
|
||||
PRELINK_SUPPORT="yes"
|
||||
|
||||
# Bootloader to use (syslinux / u-boot / atv-bootloader)
|
||||
BOOTLOADER="syslinux"
|
||||
|
||||
|
@ -159,8 +159,11 @@ IMAGE_NAME="$DISTRONAME-$TARGET_VERSION"
|
||||
$STRIP --strip-debug $MOD
|
||||
done
|
||||
|
||||
if [ "$PRELINK_SUPPORT" = "yes" ]; then
|
||||
$SCRIPTS/install prelink-cross
|
||||
$TOOLCHAIN/sbin/prelink -amRvf --root=$INSTALL
|
||||
rm -rf $INSTALL/etc/prelink.conf
|
||||
fi
|
||||
|
||||
# make target dir
|
||||
mkdir -p $TARGET_IMG
|
||||
|
Loading…
x
Reference in New Issue
Block a user