stm32f4: switch two examples to linker generation
Proves that the tree can have projects specifying the linker script explicitly, and also "modern" projects specifying simply the DEVICE= variable.
This commit is contained in:
@@ -19,11 +19,14 @@
|
||||
## along with this library. If not, see <http://www.gnu.org/licenses/>.
|
||||
##
|
||||
|
||||
# You should use linker script generation! Specify device!
|
||||
ifeq ($(DEVICE),)
|
||||
LIBNAME = opencm3_stm32f4
|
||||
DEFS += -DSTM32F4
|
||||
|
||||
FP_FLAGS ?= -mfloat-abi=hard -mfpu=fpv4-sp-d16
|
||||
ARCH_FLAGS = -mthumb -mcpu=cortex-m4 $(FP_FLAGS)
|
||||
endif
|
||||
|
||||
################################################################################
|
||||
# OpenOCD specific variables
|
||||
|
||||
Reference in New Issue
Block a user