freemyipod r883 - Code Review

Jump to: navigation, search
Repository:freemyipod
Revision:r882‎ | r883 | r884 >
Date:14:27, 1 August 2013
Author:theseven
Status:new
Tags:
Comment:
A crude attempt at fixing the build server
Modified paths:
  • /umsboot/Makefile (modified) (history)

Diff [purge]

Index: umsboot/Makefile
@@ -1,5 +1,15 @@
22 CCACHE ?= $(shell which ccache)
3 -CROSS ?= arm-elf-eabi-
 3+
 4+CROSS ?= arm-none-eabi-
 5+ifeq ($(shell which $(CROSS)gcc),)
 6+CROSS := arm-elf-eabi-
 7+endif
 8+
 9+FLTO ?= -flto -flto-partition=none
 10+ifneq ($(shell LC_ALL=C $(CROSS)gcc -flto 2>&1 | grep 'unrecognized command line option'),)
 11+FLTO :=
 12+endif
 13+
414 CC := $(CCACHE) $(CROSS)gcc
515 LD := $(CROSS)ld
616 OBJCOPY := $(CROSS)objcopy
@@ -8,10 +18,10 @@
919 CFLAGS_GENERAL := -c -ffunction-sections -fdata-sections -fmessage-length=0 -Wall $(CFLAGS_GENERAL)
1020 CFLAGS_ASM := -x assembler-with-cpp $(CFLAGS_ASM)
1121 CFLAGS_debug := -O0 -g3 -gdwarf-2 $(CFLAGS_DEBUG)
12 -CFLAGS_release := -flto -flto-partition=none -Os -fno-pie -fno-stack-protector -fomit-frame-pointer $(CFLAGS_RELEASE)
 22+CFLAGS_release := $(FLTO) -Os -fno-pie -fno-stack-protector -fomit-frame-pointer $(CFLAGS_RELEASE)
1323 LDFLAGS_GENERAL := -nostdlib --gc-sections $(LDFLAGS_GENERAL)
1424 LDFLAGS_debug := -O0 $(LDFLAGS_DEBUG)
15 -LDFLAGS_release := -flto -flto-partition=none -Os $(LDFLAGS_RELEASE)
 25+LDFLAGS_release := $(FLTO) -Os $(LDFLAGS_RELEASE)
1626 PPFLAGS_GENERAL := -DTARGET_$(subst /,_,$(TARGET)) -DTARGET=$(TARGET) -DCONFIG_H=target/$(TARGET)/config.h -DTARGET_H=target/$(TARGET)/target.h -Isrc
1727 PPFLAGS_debug := -DDEBUG
1828 PPFLAGS_release := -DRELEASE