11 Commits

Author SHA1 Message Date
Jonas Meyer
6aeb55c5d7 mk rules: Improve behaviour when DEVICE is set to family. Improved Warning
The warning now uses family instead of subfamily, which is available
sooner.
2016-08-18 22:07:36 +00:00
Jonas Meyer
60ca09c61e genlink.awk: no need to make mode a regexp
Since I don't understand regular expressions and don't see how they are
useful in this case I made the mode selection a simple string match
2016-08-18 22:07:36 +00:00
Jonas Meyer
c025dc0327 mk/genlink: change devices.data format to remove gcc specific options
As discussed with karlp on irc the devices.data file should not contain
gcc specific command line options.

For that reason the command line options for gcc are now generated from
the variables CPU and FPU by the rules in the mk directory.

This breaks the genlink tests.

genlink: simplified devices.data

devices.data already had the information about the family name.
By using the first field (by the pattern used to match it) as family name information that data doesn't
have to be provided explicitly. The same data is used to generate the
CPPFLAGS, such as -DSTM32F1

The architectures block of the devices.data file was redundant.

genlink-config.mk uses family and subfamily to figure out which libopencm3
variant actually exists.
2016-08-18 22:07:36 +00:00
Torsten Raudssus
0cb1db0967 genlink: properly escape regexp special characters
Fixes compatibility with mawk, as used on debian and ubuntu now.
2016-07-08 22:24:48 +00:00
Frantisek Burian
b7785100c8 Add support of splitting parameter classes to ARCH, DEFS, LIB
in ARCH, there are all -m flags (will be expanded into ARCH_FLAGS in Makefile)
in DEFS, there are all -D flags (will be expanded into DEFS in Makefile)
in LIB, there are all -l flags (will be expanded into LIBNAME in Makefile)

If no MODE option specified, the generator behaves as in previous version.
2014-01-12 00:21:33 +01:00
BuFran
d15a0e63fe [LINKER] Add single underscore to all definitions, no -D for dashed param.
This makes possibility for the script to append the definitions to CFLAGS
and LDFLAGS, and with the feature of disabling of -D prependation it will
make possible to generate ARCH_FLAGS generic to each specific chip.
2014-01-02 21:50:02 +01:00
BuFran
08e08f5f84 [GENLINK] Edit the documentation to match current version 2014-01-02 21:50:02 +01:00
BuFran
30d4540d9e [GENLINK] Code Cleanup 2014-01-02 21:50:01 +01:00
BuFran
bfdc2cd991 [GENLINK] correct the whitespace bug 2014-01-02 21:50:01 +01:00
Piotr Esden-Tempski
56e2928ebe [Style] Removed trailing spaces. 2013-06-30 23:40:44 -07:00
BuFran
c2f7128459 Linker generation script for most of the supported chips 2013-06-30 23:30:35 -07:00