Olimex STM32 p407: Add module build flags to NSH Make.defs

This commit is contained in:
Gregory Nutt 2017-01-22 15:08:42 -06:00
parent 4574a1ca42
commit 1b9f2795f6
2 changed files with 13 additions and 2 deletions

View File

@ -1,7 +1,7 @@
############################################################################
# configs/olimex-stm32-p407/nsh/Make.defs
#
# Copyright (C) 2009, 2012 Gregory Nutt. All rights reserved.
# Copyright (C) 2016 Gregory Nutt. All rights reserved.
# Author: Gregory Nutt <gnutt@nuttx.org>
#
# Redistribution and use in source and binary forms, with or without
@ -93,6 +93,17 @@ NXFLATLDFLAGS1 = -r -d -warn-common
NXFLATLDFLAGS2 = $(NXFLATLDFLAGS1) -T$(TOPDIR)/binfmt/libnxflat/gnu-nxflat-gotoff.ld -no-check-sections
LDNXFLATFLAGS = -e main -s 2048
# Loadable module definitions
CMODULEFLAGS = $(CFLAGS) -mlong-calls # --target1-abs
LDMODULEFLAGS = -r -e module_initialize
ifeq ($(WINTOOL),y)
LDMODULEFLAGS += -T "${shell cygpath -w $(TOPDIR)/sched/module/gnu-elf.ld}"
else
LDMODULEFLAGS += -T $(TOPDIR)/sched/module/gnu-elf.ld
endif
ASMEXT = .S
OBJEXT = .o
LIBEXT = .a

View File

@ -1,7 +1,7 @@
#!/bin/bash
# configs/olimex-stm32-p407/nsh/setenv.sh
#
# Copyright (C) 2009 Gregory Nutt. All rights reserved.
# Copyright (C) 2016 Gregory Nutt. All rights reserved.
# Author: Gregory Nutt <gnutt@nuttx.org>
#
# Redistribution and use in source and binary forms, with or without