projects/*/options: make prelink support optional

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2012-05-22 15:41:14 +02:00
parent fe7fdfb6a2
commit ff84723996
11 changed files with 35 additions and 2 deletions

View File

@ -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"

View File

@ -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=""

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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