mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 05:06:43 +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"
|
LD_OPTIM="$LD_OPTIM -flto"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ "$PRELINK_SUPPORT" = yes ]; then
|
||||||
|
GCC_OPTIM="$GCC_OPTIM -fPIC"
|
||||||
|
LD_OPTIM="$LD_OPTIM -fPIC"
|
||||||
|
fi
|
||||||
|
|
||||||
if [ "$DEBUG" = yes ]; then
|
if [ "$DEBUG" = yes ]; then
|
||||||
TARGET_CFLAGS="$TARGET_CFLAGS -ggdb"
|
TARGET_CFLAGS="$TARGET_CFLAGS -ggdb"
|
||||||
TARGET_CXXFLAGS="$TARGET_CXXFLAGS -ggdb"
|
TARGET_CXXFLAGS="$TARGET_CXXFLAGS -ggdb"
|
||||||
|
@ -91,6 +91,9 @@
|
|||||||
# LTO (Link Time Optimization) support
|
# LTO (Link Time Optimization) support
|
||||||
LTO_SUPPORT="no"
|
LTO_SUPPORT="no"
|
||||||
|
|
||||||
|
# Prelink binarys and librarys
|
||||||
|
PRELINK_SUPPORT="yes"
|
||||||
|
|
||||||
# Bootloader to use (syslinux / u-boot / atv-bootloader)
|
# Bootloader to use (syslinux / u-boot / atv-bootloader)
|
||||||
# BOOTLOADER="atv-bootloader" disabled for now
|
# BOOTLOADER="atv-bootloader" disabled for now
|
||||||
BOOTLOADER=""
|
BOOTLOADER=""
|
||||||
|
@ -91,6 +91,9 @@
|
|||||||
# LTO (Link Time Optimization) support
|
# LTO (Link Time Optimization) support
|
||||||
LTO_SUPPORT="no"
|
LTO_SUPPORT="no"
|
||||||
|
|
||||||
|
# Prelink binarys and librarys
|
||||||
|
PRELINK_SUPPORT="yes"
|
||||||
|
|
||||||
# Bootloader to use (syslinux / u-boot / atv-bootloader)
|
# Bootloader to use (syslinux / u-boot / atv-bootloader)
|
||||||
BOOTLOADER="syslinux"
|
BOOTLOADER="syslinux"
|
||||||
|
|
||||||
|
@ -91,6 +91,9 @@
|
|||||||
# LTO (Link Time Optimization) support
|
# LTO (Link Time Optimization) support
|
||||||
LTO_SUPPORT="no"
|
LTO_SUPPORT="no"
|
||||||
|
|
||||||
|
# Prelink binarys and librarys
|
||||||
|
PRELINK_SUPPORT="yes"
|
||||||
|
|
||||||
# Bootloader to use (syslinux / u-boot / atv-bootloader)
|
# Bootloader to use (syslinux / u-boot / atv-bootloader)
|
||||||
BOOTLOADER="syslinux"
|
BOOTLOADER="syslinux"
|
||||||
|
|
||||||
|
@ -91,6 +91,9 @@
|
|||||||
# LTO (Link Time Optimization) support
|
# LTO (Link Time Optimization) support
|
||||||
LTO_SUPPORT="no"
|
LTO_SUPPORT="no"
|
||||||
|
|
||||||
|
# Prelink binarys and librarys
|
||||||
|
PRELINK_SUPPORT="yes"
|
||||||
|
|
||||||
# Bootloader to use (syslinux / u-boot / atv-bootloader)
|
# Bootloader to use (syslinux / u-boot / atv-bootloader)
|
||||||
BOOTLOADER="syslinux"
|
BOOTLOADER="syslinux"
|
||||||
|
|
||||||
|
@ -91,6 +91,9 @@
|
|||||||
# LTO (Link Time Optimization) support
|
# LTO (Link Time Optimization) support
|
||||||
LTO_SUPPORT="no"
|
LTO_SUPPORT="no"
|
||||||
|
|
||||||
|
# Prelink binarys and librarys
|
||||||
|
PRELINK_SUPPORT="yes"
|
||||||
|
|
||||||
# Bootloader to use (syslinux / u-boot / atv-bootloader)
|
# Bootloader to use (syslinux / u-boot / atv-bootloader)
|
||||||
BOOTLOADER="syslinux"
|
BOOTLOADER="syslinux"
|
||||||
|
|
||||||
|
@ -91,6 +91,9 @@
|
|||||||
# LTO (Link Time Optimization) support
|
# LTO (Link Time Optimization) support
|
||||||
LTO_SUPPORT="no"
|
LTO_SUPPORT="no"
|
||||||
|
|
||||||
|
# Prelink binarys and librarys
|
||||||
|
PRELINK_SUPPORT="yes"
|
||||||
|
|
||||||
# Bootloader to use (syslinux / u-boot / atv-bootloader)
|
# Bootloader to use (syslinux / u-boot / atv-bootloader)
|
||||||
BOOTLOADER="syslinux"
|
BOOTLOADER="syslinux"
|
||||||
|
|
||||||
|
@ -82,8 +82,6 @@
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Build optimizations (size/normal/speed)
|
# Build optimizations (size/normal/speed)
|
||||||
OPTIMIZATIONS="speed"
|
OPTIMIZATIONS="speed"
|
||||||
|
|
||||||
@ -93,6 +91,9 @@
|
|||||||
# LTO (Link Time Optimization) support
|
# LTO (Link Time Optimization) support
|
||||||
LTO_SUPPORT="no"
|
LTO_SUPPORT="no"
|
||||||
|
|
||||||
|
# Prelink binarys and librarys
|
||||||
|
PRELINK_SUPPORT="yes"
|
||||||
|
|
||||||
# Bootloader to use (syslinux / u-boot / atv-bootloader / bcm2835-bootloader)
|
# Bootloader to use (syslinux / u-boot / atv-bootloader / bcm2835-bootloader)
|
||||||
BOOTLOADER="bcm2835-bootloader"
|
BOOTLOADER="bcm2835-bootloader"
|
||||||
|
|
||||||
|
@ -91,6 +91,9 @@
|
|||||||
# LTO (Link Time Optimization) support
|
# LTO (Link Time Optimization) support
|
||||||
LTO_SUPPORT="no"
|
LTO_SUPPORT="no"
|
||||||
|
|
||||||
|
# Prelink binarys and librarys
|
||||||
|
PRELINK_SUPPORT="yes"
|
||||||
|
|
||||||
# Bootloader to use (syslinux / u-boot / atv-bootloader)
|
# Bootloader to use (syslinux / u-boot / atv-bootloader)
|
||||||
BOOTLOADER="syslinux"
|
BOOTLOADER="syslinux"
|
||||||
|
|
||||||
|
@ -86,6 +86,9 @@
|
|||||||
# LTO (Link Time Optimization) support
|
# LTO (Link Time Optimization) support
|
||||||
LTO_SUPPORT="no"
|
LTO_SUPPORT="no"
|
||||||
|
|
||||||
|
# Prelink binarys and librarys
|
||||||
|
PRELINK_SUPPORT="yes"
|
||||||
|
|
||||||
# Bootloader to use (syslinux / u-boot / atv-bootloader)
|
# Bootloader to use (syslinux / u-boot / atv-bootloader)
|
||||||
BOOTLOADER="syslinux"
|
BOOTLOADER="syslinux"
|
||||||
|
|
||||||
|
@ -159,8 +159,11 @@ IMAGE_NAME="$DISTRONAME-$TARGET_VERSION"
|
|||||||
$STRIP --strip-debug $MOD
|
$STRIP --strip-debug $MOD
|
||||||
done
|
done
|
||||||
|
|
||||||
|
if [ "$PRELINK_SUPPORT" = "yes" ]; then
|
||||||
$SCRIPTS/install prelink-cross
|
$SCRIPTS/install prelink-cross
|
||||||
$TOOLCHAIN/sbin/prelink -amRvf --root=$INSTALL
|
$TOOLCHAIN/sbin/prelink -amRvf --root=$INSTALL
|
||||||
|
rm -rf $INSTALL/etc/prelink.conf
|
||||||
|
fi
|
||||||
|
|
||||||
# make target dir
|
# make target dir
|
||||||
mkdir -p $TARGET_IMG
|
mkdir -p $TARGET_IMG
|
||||||
|
Loading…
x
Reference in New Issue
Block a user