libpayload: Clean up CFLAGS
- Add -ffreestanding and -fomit-frame-pointer for all platforms. - Add ARMv7 specific flags to the armv7 Makefile BUG=none TEST=build, boot depthcharge on ARM and x86 BRANCH=none Change-Id: I71ab1b096e505940cc20c266bccd43917bcfad3a Signed-off-by: Stefan Reinauer <reinauer@google.com> Reviewed-on: https://gerrit.chromium.org/gerrit/56104 Commit-Queue: Stefan Reinauer <reinauer@chromium.org> Reviewed-by: Stefan Reinauer <reinauer@chromium.org> Tested-by: Stefan Reinauer <reinauer@chromium.org>
This commit is contained in:
parent
7a32c00755
commit
8d40bbf3e0
2 changed files with 5 additions and 2 deletions
|
|
@ -54,9 +54,10 @@ subdirs-$(CONFIG_LZMA) += liblzma
|
|||
|
||||
INCLUDES := -Iinclude -Iinclude/$(ARCHDIR-y) -I$(obj)
|
||||
CFLAGS = $(EXTRA_CFLAGS) $(INCLUDES) -Os -pipe -nostdinc
|
||||
CFLAGS += -nostdlib -Wall -Wundef -Wstrict-prototypes -Wmissing-prototypes
|
||||
CFLAGS += -nostdlib -fno-builtin -ffreestanding -fomit-frame-pointer
|
||||
CFLAGS += -Wall -Wundef -Wstrict-prototypes -Wmissing-prototypes
|
||||
CFLAGS += -Wwrite-strings -Wredundant-decls -Wno-trigraphs
|
||||
CFLAGS += -Wstrict-aliasing -Wshadow -fno-builtin
|
||||
CFLAGS += -Wstrict-aliasing -Wshadow
|
||||
|
||||
$(obj)/libpayload-config.h: $(KCONFIG_AUTOHEADER)
|
||||
cmp $@ $< 2>/dev/null || cp $< $@
|
||||
|
|
|
|||
|
|
@ -27,6 +27,8 @@
|
|||
## SUCH DAMAGE.
|
||||
##
|
||||
|
||||
CFLAGS += -ffixed-r8 -mfloat-abi=hard -marm -mabi=aapcs-linux
|
||||
|
||||
head.o-y += head.S
|
||||
libc-y += main.c sysinfo.c
|
||||
libc-y += timer.c coreboot.c util.S
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue