Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 2 additions & 9 deletions config/optimize
Original file line number Diff line number Diff line change
@@ -1,12 +1,5 @@
if [ "$OPTIMIZATIONS" = normal ];then
GCC_OPTIM="-O2"
LD_OPTIM=""
fi

if [ "$OPTIMIZATIONS" = size ];then
GCC_OPTIM="-Os -fexcess-precision=fast"
LD_OPTIM="-Wl,--as-needed"
fi
GCC_OPTIM="-Os"
LD_OPTIM="-Wl,--as-needed"

if [ "$LTO_SUPPORT" = yes ];then
GCC_OPTIM_LTO="-flto -ffat-lto-objects"
Expand Down
6 changes: 6 additions & 0 deletions distributions/LibreELEC/options
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# LTO (Link Time Optimization) support
LTO_SUPPORT="yes"

# GOLD (Google Linker) support
GOLD_SUPPORT="yes"

# Name of the Distro to build (full name, without special characters)
DISTRONAME="LibreELEC"

Expand Down
9 changes: 0 additions & 9 deletions projects/Generic/options
Original file line number Diff line number Diff line change
Expand Up @@ -44,18 +44,9 @@
# setup build defaults
################################################################################

# Build optimizations (size/normal)
OPTIMIZATIONS="size"

# Project CFLAGS
PROJECT_CFLAGS="-mmmx -msse -msse2 -mfpmath=sse"

# LTO (Link Time Optimization) support
LTO_SUPPORT="yes"

# GOLD (Google Linker) support
GOLD_SUPPORT="yes"

# SquashFS compression method (gzip / lzo / xz)
SQUASHFS_COMPRESSION="gzip"

Expand Down
9 changes: 0 additions & 9 deletions projects/Odroid_C2/options
Original file line number Diff line number Diff line change
Expand Up @@ -50,18 +50,9 @@
# setup build defaults
################################################################################

# Build optimizations (size/normal)
OPTIMIZATIONS="size"

# Project CFLAGS
PROJECT_CFLAGS=""

# LTO (Link Time Optimization) support
LTO_SUPPORT="yes"

# GOLD (Google Linker) support
GOLD_SUPPORT="yes"

# SquashFS compression method (gzip / lzo / xz)
SQUASHFS_COMPRESSION="lzo"

Expand Down
9 changes: 0 additions & 9 deletions projects/RPi/options
Original file line number Diff line number Diff line change
Expand Up @@ -69,18 +69,9 @@
# setup build defaults
################################################################################

# Build optimizations (size/normal)
OPTIMIZATIONS="size"

# Project CFLAGS
PROJECT_CFLAGS=""

# LTO (Link Time Optimization) support
LTO_SUPPORT="yes"

# GOLD (Google Linker) support
GOLD_SUPPORT="yes"

# SquashFS compression method (gzip / lzo / xz)
SQUASHFS_COMPRESSION="lzo"

Expand Down
9 changes: 0 additions & 9 deletions projects/RPi2/options
Original file line number Diff line number Diff line change
Expand Up @@ -69,18 +69,9 @@
# setup build defaults
################################################################################

# Build optimizations (size/normal)
OPTIMIZATIONS="size"

# Project CFLAGS
PROJECT_CFLAGS=""

# LTO (Link Time Optimization) support
LTO_SUPPORT="yes"

# GOLD (Google Linker) support
GOLD_SUPPORT="yes"

# SquashFS compression method (gzip / lzo / xz)
SQUASHFS_COMPRESSION="lzo"

Expand Down
9 changes: 0 additions & 9 deletions projects/Virtual/options
Original file line number Diff line number Diff line change
Expand Up @@ -44,18 +44,9 @@
# setup build defaults
################################################################################

# Build optimizations (size/normal)
OPTIMIZATIONS="size"

# Project CFLAGS
PROJECT_CFLAGS="-mmmx -msse -msse2 -mfpmath=sse"

# LTO (Link Time Optimization) support
LTO_SUPPORT="yes"

# GOLD (Google Linker) support
GOLD_SUPPORT="yes"

# SquashFS compression method (gzip / lzo / xz)
SQUASHFS_COMPRESSION="gzip"

Expand Down
9 changes: 0 additions & 9 deletions projects/WeTek_Core/options
Original file line number Diff line number Diff line change
Expand Up @@ -71,18 +71,9 @@
# setup build defaults
################################################################################

# Build optimizations (size/normal)
OPTIMIZATIONS="size"

# Project CFLAGS
PROJECT_CFLAGS=""

# LTO (Link Time Optimization) support
LTO_SUPPORT="yes"

# GOLD (Google Linker) support
GOLD_SUPPORT="yes"

# SquashFS compression method (gzip / lzo / xz)
SQUASHFS_COMPRESSION="lzo"

Expand Down
9 changes: 0 additions & 9 deletions projects/WeTek_Hub/options
Original file line number Diff line number Diff line change
Expand Up @@ -58,18 +58,9 @@
# setup build defaults
################################################################################

# Build optimizations (size/normal)
OPTIMIZATIONS="size"

# Project CFLAGS
PROJECT_CFLAGS=""

# LTO (Link Time Optimization) support
LTO_SUPPORT="yes"

# GOLD (Google Linker) support
GOLD_SUPPORT="yes"

# SquashFS compression method (gzip / lzo / xz)
SQUASHFS_COMPRESSION="lzo"

Expand Down
9 changes: 0 additions & 9 deletions projects/WeTek_Play/options
Original file line number Diff line number Diff line change
Expand Up @@ -65,18 +65,9 @@
# setup build defaults
################################################################################

# Build optimizations (size/normal)
OPTIMIZATIONS="size"

# Project CFLAGS
PROJECT_CFLAGS=""

# LTO (Link Time Optimization) support
LTO_SUPPORT="yes"

# GOLD (Google Linker) support
GOLD_SUPPORT="yes"

# SquashFS compression method (gzip / lzo / xz)
SQUASHFS_COMPRESSION="lzo"

Expand Down
9 changes: 0 additions & 9 deletions projects/imx6/options
Original file line number Diff line number Diff line change
Expand Up @@ -76,18 +76,9 @@
# setup build defaults
################################################################################

# Build optimizations (size/normal)
OPTIMIZATIONS="size"

# Project CFLAGS
PROJECT_CFLAGS=""

# LTO (Link Time Optimization) support
LTO_SUPPORT="yes"

# GOLD (Google Linker) support
GOLD_SUPPORT="yes"

# SquashFS compression method (gzip / lzo / xz)
SQUASHFS_COMPRESSION="gzip"

Expand Down