# HG changeset patch # User Ethan Zonca # Date 2014-10-16 20:39:31 # Node ID 04999406e7163efe27ae84ebd29a8e14aa456ee3 # Parent de0b4c3c6dc25a2367a6045e569876f9de8de35d # Parent 5bb33b7045ecc76aceae5d86732c744f49288b5f Merge diff --git a/Makefile b/Makefile --- a/Makefile +++ b/Makefile @@ -83,7 +83,12 @@ CDEFS+=-DMANGUSTA_DISCOVERY #CDEFS+=-DUSE_USB_OTG_FS CDEFS+=-DHSE_VALUE=8000000 -MCUFLAGS=-mcpu=cortex-m3 -mthumb + +#EMZ Optimized: +MCUFLAGS=-mcpu=cortex-m3 -mthumb -ffunction-sections -fdata-sections + +# Default: MCUFLAGS=-mcpu=cortex-m3 -mthumb -ffunction-sections -fdata-sections + #MCUFLAGS=-mcpu=cortex-m4 -mthumb -mlittle-endian -mfpu=fpa -mfloat-abi=hard -mthumb-interwork #MCUFLAGS=-mcpu=cortex-m4 -mfpu=vfpv4-sp-d16 -mfloat-abi=hard COMMONFLAGS=-O$(OPTLVL) -g -Wall