If an example is in the libopencm3 source directory it will use the
locally built library instead of the system library.
When you copy an example out of the libopencm3 tree it will
automatically detect it and build using the system wide installation.
This is needed even in plain C when 64 bit variable (e.g. long long int)
arithmetic is used. For example it is required when newlib is compiled with
--enable-newlib-io-long-long.
Conflicts:
lib/stm32/f1/libopencm3_stm32f1.ld
lib/stm32/f2/libopencm3_stm32f2.ld
Changed the license to LGPL3+ for some makefiles that got ommited in the
previous big patch commit.
Corrected a find and replace error in a linker file.
Only add one linker script per eval board, and have the Makefiles use that.
This avoids duplication, and various copy-paste errors and left-overs
which we already have in the tree.
Some of the linker scripts are not really correct, yet. Both, the comments
which say which board, chip, and RAM/ROM sizes are used, as well as the
actual RAM/ROM size definitions are sometimes copy-pasted from other boards
and are thus incorrect. This needs to be fixed.
Newer versions of OpenOCD expect
stm32f1x mass_erase 0
or
stm32f2x mass_erase 0
instead of
stm32x mass_erase 0
So far, there doesn't seem to be an explicit F4 command, so leave that
untouched for now.