mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 05:06:43 +00:00
config/optimize: remove Graphite and LOOP optimizations in preparing to update to gcc-4.7 support
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
d06c843cab
commit
270110c88c
@ -238,8 +238,6 @@ show_config() {
|
|||||||
config_message="$config_message\n - Optimizations:\t\t\t $OPTIMIZATIONS"
|
config_message="$config_message\n - Optimizations:\t\t\t $OPTIMIZATIONS"
|
||||||
config_message="$config_message\n - LTO (Link Time Optimization) support: $LTO_SUPPORT"
|
config_message="$config_message\n - LTO (Link Time Optimization) support: $LTO_SUPPORT"
|
||||||
config_message="$config_message\n - GOLD (Google Linker) Support:\t $GOLD_SUPPORT"
|
config_message="$config_message\n - GOLD (Google Linker) Support:\t $GOLD_SUPPORT"
|
||||||
config_message="$config_message\n - Graphite Support:\t\t\t $GRAPHITE_SUPPORT"
|
|
||||||
config_message="$config_message\n - LOOP optimization support:\t\t $LOOP_SUPPORT"
|
|
||||||
config_message="$config_message\n - LLVM support:\t\t\t $LLVM_SUPPORT"
|
config_message="$config_message\n - LLVM support:\t\t\t $LLVM_SUPPORT"
|
||||||
|
|
||||||
# config_message="$config_message\n - CFLAGS:\t $TARGET_CFLAGS"
|
# config_message="$config_message\n - CFLAGS:\t $TARGET_CFLAGS"
|
||||||
|
@ -21,17 +21,6 @@ if [ "$OPTIMIZATIONS" = size ];then
|
|||||||
LD_OPTIM=""
|
LD_OPTIM=""
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$LOOP_SUPPORT" = yes ];then
|
|
||||||
GCC_OPTIM="$GCC_OPTIM -ftree-loop-distribution"
|
|
||||||
GCC_OPTIM="$GCC_OPTIM -floop-interchange"
|
|
||||||
GCC_OPTIM="$GCC_OPTIM -floop-strip-mine"
|
|
||||||
GCC_OPTIM="$GCC_OPTIM -floop-block"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ "$GRAPHITE_SUPPORT" = yes ];then
|
|
||||||
GCC_OPTIM="$GCC_OPTIM -fgraphite-identity"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ "$LTO_SUPPORT" = yes -o "$GOLD_SUPPORT" = yes ];then
|
if [ "$LTO_SUPPORT" = yes -o "$GOLD_SUPPORT" = yes ];then
|
||||||
LD_OPTIM="$LD_OPTIM -fuse-linker-plugin"
|
LD_OPTIM="$LD_OPTIM -fuse-linker-plugin"
|
||||||
fi
|
fi
|
||||||
|
@ -31,13 +31,6 @@ fi
|
|||||||
# busybox fails building with LTO support on gcc-4.6
|
# busybox fails building with LTO support on gcc-4.6
|
||||||
strip_lto
|
strip_lto
|
||||||
|
|
||||||
# fails to build with gcc-4.6.1 (ggc bug #49716
|
|
||||||
CFLAGS=`echo $CFLAGS | sed -e "s|-ftree-loop-distribution||"`
|
|
||||||
CFLAGS=`echo $CFLAGS | sed -e "s|-floop-interchange||"`
|
|
||||||
CFLAGS=`echo $CFLAGS | sed -e "s|-floop-strip-mine||"`
|
|
||||||
CFLAGS=`echo $CFLAGS | sed -e "s|-floop-block||"`
|
|
||||||
CFLAGS=`echo $CFLAGS | sed -e "s|-fgraphite-identity||"`
|
|
||||||
|
|
||||||
# optimize for size
|
# optimize for size
|
||||||
CFLAGS=`echo $CFLAGS | sed -e "s|-Ofast|-Os|"`
|
CFLAGS=`echo $CFLAGS | sed -e "s|-Ofast|-Os|"`
|
||||||
CFLAGS=`echo $CFLAGS | sed -e "s|-O.|-Os|"`
|
CFLAGS=`echo $CFLAGS | sed -e "s|-O.|-Os|"`
|
||||||
|
@ -87,12 +87,6 @@
|
|||||||
# GOLD (Google Linker) support
|
# GOLD (Google Linker) support
|
||||||
GOLD_SUPPORT="no"
|
GOLD_SUPPORT="no"
|
||||||
|
|
||||||
# Graphite Support
|
|
||||||
GRAPHITE_SUPPORT="yes"
|
|
||||||
|
|
||||||
# LOOP optimazion support
|
|
||||||
LOOP_SUPPORT="yes"
|
|
||||||
|
|
||||||
# Bootloader to use (syslinux / u-boot / atv-bootloader)
|
# Bootloader to use (syslinux / u-boot / atv-bootloader)
|
||||||
BOOTLOADER="atv-bootloader"
|
BOOTLOADER="atv-bootloader"
|
||||||
|
|
||||||
|
@ -87,12 +87,6 @@
|
|||||||
# GOLD (Google Linker) support
|
# GOLD (Google Linker) support
|
||||||
GOLD_SUPPORT="no"
|
GOLD_SUPPORT="no"
|
||||||
|
|
||||||
# Graphite Support
|
|
||||||
GRAPHITE_SUPPORT="yes"
|
|
||||||
|
|
||||||
# LOOP optimazion support
|
|
||||||
LOOP_SUPPORT="yes"
|
|
||||||
|
|
||||||
# Bootloader to use (syslinux / u-boot / atv-bootloader)
|
# Bootloader to use (syslinux / u-boot / atv-bootloader)
|
||||||
BOOTLOADER="syslinux"
|
BOOTLOADER="syslinux"
|
||||||
|
|
||||||
|
@ -87,12 +87,6 @@
|
|||||||
# GOLD (Google Linker) support
|
# GOLD (Google Linker) support
|
||||||
GOLD_SUPPORT="no"
|
GOLD_SUPPORT="no"
|
||||||
|
|
||||||
# Graphite Support
|
|
||||||
GRAPHITE_SUPPORT="yes"
|
|
||||||
|
|
||||||
# LOOP optimazion support
|
|
||||||
LOOP_SUPPORT="yes"
|
|
||||||
|
|
||||||
# Bootloader to use (syslinux / u-boot / atv-bootloader)
|
# Bootloader to use (syslinux / u-boot / atv-bootloader)
|
||||||
BOOTLOADER="syslinux"
|
BOOTLOADER="syslinux"
|
||||||
|
|
||||||
|
@ -87,12 +87,6 @@
|
|||||||
# GOLD (Google Linker) support
|
# GOLD (Google Linker) support
|
||||||
GOLD_SUPPORT="no"
|
GOLD_SUPPORT="no"
|
||||||
|
|
||||||
# Graphite Support
|
|
||||||
GRAPHITE_SUPPORT="yes"
|
|
||||||
|
|
||||||
# LOOP optimazion support
|
|
||||||
LOOP_SUPPORT="yes"
|
|
||||||
|
|
||||||
# Bootloader to use (syslinux / u-boot / atv-bootloader)
|
# Bootloader to use (syslinux / u-boot / atv-bootloader)
|
||||||
BOOTLOADER="syslinux"
|
BOOTLOADER="syslinux"
|
||||||
|
|
||||||
|
@ -87,12 +87,6 @@
|
|||||||
# GOLD (Google Linker) support
|
# GOLD (Google Linker) support
|
||||||
GOLD_SUPPORT="no"
|
GOLD_SUPPORT="no"
|
||||||
|
|
||||||
# Graphite Support
|
|
||||||
GRAPHITE_SUPPORT="yes"
|
|
||||||
|
|
||||||
# LOOP optimazion support
|
|
||||||
LOOP_SUPPORT="yes"
|
|
||||||
|
|
||||||
# Bootloader to use (syslinux / u-boot / atv-bootloader)
|
# Bootloader to use (syslinux / u-boot / atv-bootloader)
|
||||||
BOOTLOADER="syslinux"
|
BOOTLOADER="syslinux"
|
||||||
|
|
||||||
|
@ -87,12 +87,6 @@
|
|||||||
# GOLD (Google Linker) support
|
# GOLD (Google Linker) support
|
||||||
GOLD_SUPPORT="no"
|
GOLD_SUPPORT="no"
|
||||||
|
|
||||||
# Graphite Support
|
|
||||||
GRAPHITE_SUPPORT="yes"
|
|
||||||
|
|
||||||
# LOOP optimazion support
|
|
||||||
LOOP_SUPPORT="yes"
|
|
||||||
|
|
||||||
# Bootloader to use (syslinux / u-boot / atv-bootloader)
|
# Bootloader to use (syslinux / u-boot / atv-bootloader)
|
||||||
BOOTLOADER="syslinux"
|
BOOTLOADER="syslinux"
|
||||||
|
|
||||||
|
@ -87,12 +87,6 @@
|
|||||||
# GOLD (Google Linker) support
|
# GOLD (Google Linker) support
|
||||||
GOLD_SUPPORT="no"
|
GOLD_SUPPORT="no"
|
||||||
|
|
||||||
# Graphite Support
|
|
||||||
GRAPHITE_SUPPORT="yes"
|
|
||||||
|
|
||||||
# LOOP optimazion support
|
|
||||||
LOOP_SUPPORT="yes"
|
|
||||||
|
|
||||||
# Bootloader to use (syslinux / u-boot / atv-bootloader)
|
# Bootloader to use (syslinux / u-boot / atv-bootloader)
|
||||||
BOOTLOADER="syslinux"
|
BOOTLOADER="syslinux"
|
||||||
|
|
||||||
|
@ -87,12 +87,6 @@
|
|||||||
# GOLD (Google Linker) support
|
# GOLD (Google Linker) support
|
||||||
GOLD_SUPPORT="no"
|
GOLD_SUPPORT="no"
|
||||||
|
|
||||||
# Graphite Support
|
|
||||||
GRAPHITE_SUPPORT="yes"
|
|
||||||
|
|
||||||
# LOOP optimazion support
|
|
||||||
LOOP_SUPPORT="yes"
|
|
||||||
|
|
||||||
# Bootloader to use (syslinux / u-boot / atv-bootloader)
|
# Bootloader to use (syslinux / u-boot / atv-bootloader)
|
||||||
BOOTLOADER="syslinux"
|
BOOTLOADER="syslinux"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user