[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.
This commit is contained in:
BuFran
2013-07-14 08:00:18 +02:00
committed by Piotr Esden-Tempski
parent ea589b9a4e
commit d15a0e63fe
10 changed files with 46 additions and 33 deletions

1
ld/tests/dash.data Normal file
View File

@@ -0,0 +1 @@
dash END A B C D -mcpu=cortex-m0

1
ld/tests/dash.result Normal file
View File

@@ -0,0 +1 @@
-D_A -D_B -D_C -D_D -mcpu=cortex-m0

View File

@@ -1 +1 @@
-DA=parameter -DB=parameter -DC=parameter -DD=parameter -DE==parameter -DF=parameter -DG=parameter
-D_A=parameter -D_B=parameter -D_C=parameter -D_D=parameter -D_E==parameter -D_F=parameter -D_G=parameter

View File

@@ -1 +1 @@
-DA -DB -DC -DD
-D_A -D_B -D_C -D_D

View File

@@ -1 +1 @@
-DA -DB -DC -DD -DE -DF
-D_A -D_B -D_C -D_D -D_E -D_F

View File

@@ -1 +1 @@
-DA -DB -DC -DD -DE -DF
-D_A -D_B -D_C -D_D -D_E -D_F

View File

@@ -1 +1 @@
-DA -DB -DC -DD -DE -DF
-D_A -D_B -D_C -D_D -D_E -D_F