diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-08-24 12:56:28 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-08-24 12:56:28 -0600 |
commit | 9f1f24faa04da13e1edc7534111fe4fdf6ab8621 (patch) | |
tree | b07da38cf7f206531e331665dc403e5b16f50000 /nuttx/configs/sama5d4-ek/at25boot | |
parent | 6d3dfa06b1bdf66eb9e0f0e8b6f2da84be6e158a (diff) | |
download | px4-nuttx-9f1f24faa04da13e1edc7534111fe4fdf6ab8621.tar.gz px4-nuttx-9f1f24faa04da13e1edc7534111fe4fdf6ab8621.tar.bz2 px4-nuttx-9f1f24faa04da13e1edc7534111fe4fdf6ab8621.zip |
Add ELF CFLAGS and LDFLAGS in some Make.defs files
Diffstat (limited to 'nuttx/configs/sama5d4-ek/at25boot')
-rw-r--r-- | nuttx/configs/sama5d4-ek/at25boot/Make.defs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/nuttx/configs/sama5d4-ek/at25boot/Make.defs b/nuttx/configs/sama5d4-ek/at25boot/Make.defs index cc534bf9b..f653031e4 100644 --- a/nuttx/configs/sama5d4-ek/at25boot/Make.defs +++ b/nuttx/configs/sama5d4-ek/at25boot/Make.defs @@ -93,10 +93,24 @@ CXXPICFLAGS = $(ARCHPICFLAGS) $(CXXFLAGS) CPPFLAGS = $(ARCHINCLUDES) $(ARCHDEFINES) $(EXTRADEFINES) AFLAGS = $(CFLAGS) -D__ASSEMBLY__ +# NXFLAT module definitions + NXFLATLDFLAGS1 = -r -d -warn-common NXFLATLDFLAGS2 = $(NXFLATLDFLAGS1) -T$(TOPDIR)$(DELIM)binfmt$(DELIM)libnxflat$(DELIM)gnu-nxflat-pcrel.ld -no-check-sections LDNXFLATFLAGS = -e main -s 2048 +# ELF module definitions + +CELFFLAGS = $(CFLAGS) -mlong-calls # --target1-abs +CXXELFFLAGS = $(CXXFLAGS) -mlong-calls # --target1-abs + +LDELFFLAGS = -r -e main +ifeq ($(WINTOOL),y) + LDELFFLAGS += -T "${shell cygpath -w $(TOPDIR)/configs/$(CONFIG_ARCH_BOARD)/scripts/gnu-elf.ld}" +else + LDELFFLAGS += -T $(TOPDIR)/configs/$(CONFIG_ARCH_BOARD)/scripts/gnu-elf.ld +endif + OBJEXT = .o LIBEXT = .a EXEEXT = |