changeset 103:1155be085fc1

components/*: added -g to CFLAGS_gcc
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 22 Jul 2018 20:44:47 +0000
parents b65e1c503a14
children 82ae724ca0d7
files components/abb components/aci components/aci_dti_mng components/aciext components/alr components/atiext components/audio components/audio_bgd components/buzzer components/cc components/ccd_na7_db components/ccddata components/cci components/cci_ir components/cl components/comlib components/config_gprs_fl components/config_gprs_ir components/config_gsm_fl components/config_gsm_ir components/cst components/dar components/dar_gbl_var components/dl components/drivers_flash components/dti components/etm components/fad components/fchg components/ffs components/ffs_drv components/ffs_pcm components/frame_na7_db_fl components/frame_na7_db_ir components/gdi components/gmm components/grlc components/grlc_ir components/grr components/kpd components/l1_custom_ext components/l1_custom_int components/l1_ext components/l1_int components/l1_pei components/l2r components/libsys_fl components/llc components/lls components/main components/misc_na7_db_fl components/misc_na7_db_ir components/mm components/nucleus_flash components/nucleus_intram components/osx_na7_db components/power components/ppp components/ppp_ir components/ra components/riviera_core_flash components/riviera_cust_flash components/rlp components/rr components/rtc_drv components/sim_b_lib components/sim_drv components/sm components/sms components/sndcp components/spi_drv components/ss components/t30 components/tif_na7_db_fl components/tif_na7_db_ir components/tpudrv components/uart_b_lib components/uart_drv components/upm scripts/add-g.ex
diffstat 80 files changed, 83 insertions(+), 81 deletions(-) [+]
line wrap: on
line diff
--- a/components/abb	Sun Jul 22 20:06:18 2018 +0000
+++ b/components/abb	Sun Jul 22 20:44:47 2018 +0000
@@ -8,7 +8,7 @@
 fi
 
 CFLAGS="-mn -mt -mw -me -pw2"
-CFLAGS_gcc="-O2 -fno-builtin -mthumb-interwork -mthumb"
+CFLAGS_gcc="-g -O2 -fno-builtin -mthumb-interwork -mthumb"
 CPPFLAGS="-DIDS=$IDS -DTOOL_CHOICE=0 -D_TMS470"
 
 # Includes
--- a/components/aci	Sun Jul 22 20:06:18 2018 +0000
+++ b/components/aci	Sun Jul 22 20:44:47 2018 +0000
@@ -1,7 +1,7 @@
 # Building the TCS3.2 version of aci.lib
 
 CFLAGS="-me -mt -o -pw2 -x -mw"
-CFLAGS_gcc="-O2 -fno-builtin -mthumb-interwork -mthumb"
+CFLAGS_gcc="-g -O2 -fno-builtin -mthumb-interwork -mthumb"
 CPPFLAGS=
 
 make_version aci
--- a/components/aci_dti_mng	Sun Jul 22 20:06:18 2018 +0000
+++ b/components/aci_dti_mng	Sun Jul 22 20:44:47 2018 +0000
@@ -1,7 +1,7 @@
 # Building the TCS3.2 version of aci_dti_mng.lib
 
 CFLAGS="-me -mt -o -pw2 -x -mw"
-CFLAGS_gcc="-O2 -fno-builtin -mthumb-interwork -mthumb"
+CFLAGS_gcc="-g -O2 -fno-builtin -mthumb-interwork -mthumb"
 
 # Defines
 
--- a/components/aciext	Sun Jul 22 20:06:18 2018 +0000
+++ b/components/aciext	Sun Jul 22 20:44:47 2018 +0000
@@ -1,7 +1,7 @@
 # Building the TCS3.2 version of aciext.lib
 
 CFLAGS="-me -mt -o -pw2 -x -mw"
-CFLAGS_gcc="-O2 -fno-builtin -mthumb-interwork -mthumb"
+CFLAGS_gcc="-g -O2 -fno-builtin -mthumb-interwork -mthumb"
 CPPFLAGS=
 
 make_version aci_ext
--- a/components/alr	Sun Jul 22 20:06:18 2018 +0000
+++ b/components/alr	Sun Jul 22 20:44:47 2018 +0000
@@ -2,7 +2,7 @@
 # with our copy of TCS211 from Sotovik
 
 CFLAGS="-me -mt -o -pw2 -x -mw"
-CFLAGS_gcc="-O2 -fno-builtin -mthumb-interwork -mthumb"
+CFLAGS_gcc="-g -O2 -fno-builtin -mthumb-interwork -mthumb"
 CPPFLAGS=
 
 make_version alr
--- a/components/atiext	Sun Jul 22 20:06:18 2018 +0000
+++ b/components/atiext	Sun Jul 22 20:44:47 2018 +0000
@@ -1,7 +1,7 @@
 # Building the TCS3.2 version of atiext.lib
 
 CFLAGS="-me -mt -o -pw2 -x -mw"
-CFLAGS_gcc="-O2 -fno-builtin -mthumb-interwork -mthumb"
+CFLAGS_gcc="-g -O2 -fno-builtin -mthumb-interwork -mthumb"
 CPPFLAGS=
 
 make_version ati_ext
--- a/components/audio	Sun Jul 22 20:06:18 2018 +0000
+++ b/components/audio	Sun Jul 22 20:44:47 2018 +0000
@@ -1,7 +1,7 @@
 # Building audio.lib
 
 CFLAGS="-mn -mt -mw -me -pw2"
-CFLAGS_gcc="-O2 -fno-builtin -mthumb-interwork -mthumb"
+CFLAGS_gcc="-g -O2 -fno-builtin -mthumb-interwork -mthumb"
 CPPFLAGS="-DTOOL_CHOICE=0 -D_TMS470"
 
 # Includes
--- a/components/audio_bgd	Sun Jul 22 20:06:18 2018 +0000
+++ b/components/audio_bgd	Sun Jul 22 20:44:47 2018 +0000
@@ -1,7 +1,7 @@
 # Building audio_bgd.lib
 
 CFLAGS="-mn -mt -mw -me -pw2"
-CFLAGS_gcc="-O2 -fno-builtin -mthumb-interwork -mthumb"
+CFLAGS_gcc="-g -O2 -fno-builtin -mthumb-interwork -mthumb"
 CPPFLAGS="-DTOOL_CHOICE=0 -D_TMS470"
 
 # Includes
--- a/components/buzzer	Sun Jul 22 20:06:18 2018 +0000
+++ b/components/buzzer	Sun Jul 22 20:44:47 2018 +0000
@@ -1,7 +1,7 @@
 # Building buzzer.lib
 
 CFLAGS="-mn -mt -o -x -mw -me -pw2"
-CFLAGS_gcc="-O2 -fno-builtin -mthumb-interwork -mthumb"
+CFLAGS_gcc="-g -O2 -fno-builtin -mthumb-interwork -mthumb"
 CPPFLAGS="-DTOOL_CHOICE=0 -D_TMS470"
 
 # Includes
--- a/components/cc	Sun Jul 22 20:06:18 2018 +0000
+++ b/components/cc	Sun Jul 22 20:44:47 2018 +0000
@@ -1,7 +1,7 @@
 # Building cc.lib from the TCS3.2 source
 
 CFLAGS="-me -mt -o -pw2 -x -mw"
-CFLAGS_gcc="-O2 -fno-builtin -mthumb-interwork -mthumb"
+CFLAGS_gcc="-g -O2 -fno-builtin -mthumb-interwork -mthumb"
 CPPFLAGS=
 
 make_version cc
--- a/components/ccd_na7_db	Sun Jul 22 20:06:18 2018 +0000
+++ b/components/ccd_na7_db	Sun Jul 22 20:44:47 2018 +0000
@@ -1,7 +1,7 @@
 # Building ccd_na7_db.lib using TCS3.2 CCD source
 
 CFLAGS="-mw -x -pw2 -me -mt -o -g -mn"
-CFLAGS_gcc="-O2 -fno-builtin -mthumb-interwork -mthumb"
+CFLAGS_gcc="-g -O2 -fno-builtin -mthumb-interwork -mthumb"
 
 # Defines
 
--- a/components/ccddata	Sun Jul 22 20:06:18 2018 +0000
+++ b/components/ccddata	Sun Jul 22 20:44:47 2018 +0000
@@ -1,7 +1,7 @@
 # Building ccddata.lib using TCS3.2 CCD source
 
 CFLAGS="-me -mt -o -pw2 -x -mw"
-CFLAGS_gcc="-O2 -fno-builtin -mthumb-interwork -mthumb"
+CFLAGS_gcc="-g -O2 -fno-builtin -mthumb-interwork -mthumb"
 CPPFLAGS="-D_TMS470 -DNEW_FRAME -DNEW_ENTITY -DCCDDATA_STATIC_DATA"
 
 # Includes
--- a/components/cci	Sun Jul 22 20:06:18 2018 +0000
+++ b/components/cci	Sun Jul 22 20:44:47 2018 +0000
@@ -1,7 +1,7 @@
 # Building cci.lib from the TCS3.2 source
 
 CFLAGS="-me -mt -o -pw2 -x -mw"
-CFLAGS_gcc="-O2 -fno-builtin -mthumb-interwork -mthumb"
+CFLAGS_gcc="-g -O2 -fno-builtin -mthumb-interwork -mthumb"
 
 # Defines
 
--- a/components/cci_ir	Sun Jul 22 20:06:18 2018 +0000
+++ b/components/cci_ir	Sun Jul 22 20:44:47 2018 +0000
@@ -1,7 +1,7 @@
 # Building cci_ir.lib from the TCS3.2 source
 
 CFLAGS="-me -mt -o -pw2 -x -mw"
-CFLAGS_gcc="-O2 -fno-builtin -mthumb-interwork"
+CFLAGS_gcc="-g -O2 -fno-builtin -mthumb-interwork"
 
 # Defines
 
--- a/components/cl	Sun Jul 22 20:06:18 2018 +0000
+++ b/components/cl	Sun Jul 22 20:44:47 2018 +0000
@@ -1,7 +1,7 @@
 # Building cl.lib from the TCS3.2 source
 
 CFLAGS="-me -mt -o -pw2 -x -mw"
-CFLAGS_gcc="-O2 -fno-builtin -mthumb-interwork -mthumb"
+CFLAGS_gcc="-g -O2 -fno-builtin -mthumb-interwork -mthumb"
 
 # Defines
 
--- a/components/comlib	Sun Jul 22 20:06:18 2018 +0000
+++ b/components/comlib	Sun Jul 22 20:44:47 2018 +0000
@@ -1,7 +1,7 @@
 # Building comlib.lib
 
 CFLAGS="-me -mt -o -pw2 -x -mw"
-CFLAGS_gcc="-O2 -fno-builtin -mthumb-interwork -mthumb"
+CFLAGS_gcc="-g -O2 -fno-builtin -mthumb-interwork -mthumb"
 
 # Defines
 
--- a/components/config_gprs_fl	Sun Jul 22 20:06:18 2018 +0000
+++ b/components/config_gprs_fl	Sun Jul 22 20:44:47 2018 +0000
@@ -1,7 +1,7 @@
 # Building config_gprs_fl.lib for the TCS2/TCS3 hybrid configuration
 
 CFLAGS="-me -mt -o -pw2 -x -mw"
-CFLAGS_gcc="-O2 -fno-builtin -mthumb-interwork -mthumb"
+CFLAGS_gcc="-g -O2 -fno-builtin -mthumb-interwork -mthumb"
 
 # Defines
 
--- a/components/config_gprs_ir	Sun Jul 22 20:06:18 2018 +0000
+++ b/components/config_gprs_ir	Sun Jul 22 20:44:47 2018 +0000
@@ -1,7 +1,7 @@
 # Building config_gprs_ir.lib for the TCS2/TCS3 hybrid configuration
 
 CFLAGS="-me -mt -o -pw2 -x -mw"
-CFLAGS_gcc="-O2 -fno-builtin -mthumb-interwork"
+CFLAGS_gcc="-g -O2 -fno-builtin -mthumb-interwork"
 
 # Defines
 
--- a/components/config_gsm_fl	Sun Jul 22 20:06:18 2018 +0000
+++ b/components/config_gsm_fl	Sun Jul 22 20:44:47 2018 +0000
@@ -1,7 +1,7 @@
 # Building config_gsm_fl.lib
 
 CFLAGS="-me -mt -o -pw2 -x -mw"
-CFLAGS_gcc="-O2 -fno-builtin -mthumb-interwork -mthumb"
+CFLAGS_gcc="-g -O2 -fno-builtin -mthumb-interwork -mthumb"
 
 # Defines
 
--- a/components/config_gsm_ir	Sun Jul 22 20:06:18 2018 +0000
+++ b/components/config_gsm_ir	Sun Jul 22 20:44:47 2018 +0000
@@ -1,7 +1,7 @@
 # Building config_gsm_ir.lib
 
 CFLAGS="-me -mt -o -pw2 -x -mw"
-CFLAGS_gcc="-O2 -fno-builtin -mthumb-interwork"
+CFLAGS_gcc="-g -O2 -fno-builtin -mthumb-interwork"
 
 # Defines
 
--- a/components/cst	Sun Jul 22 20:06:18 2018 +0000
+++ b/components/cst	Sun Jul 22 20:44:47 2018 +0000
@@ -1,7 +1,7 @@
 # Building cst.lib
 
 CFLAGS="-mt -o -x -mw -me -pw2"
-CFLAGS_gcc="-O2 -fno-builtin -mthumb-interwork -mthumb"
+CFLAGS_gcc="-g -O2 -fno-builtin -mthumb-interwork -mthumb"
 
 # Defines
 
--- a/components/dar	Sun Jul 22 20:06:18 2018 +0000
+++ b/components/dar	Sun Jul 22 20:44:47 2018 +0000
@@ -1,7 +1,7 @@
 # Building dar.lib
 
 CFLAGS="-mn -mt -me -pw2"
-CFLAGS_gcc="-O2 -fno-builtin -mthumb-interwork -mthumb"
+CFLAGS_gcc="-g -O2 -fno-builtin -mthumb-interwork -mthumb"
 CPPFLAGS="-DTOOL_CHOICE=0 -D_TMS470"
 
 # Includes
--- a/components/dar_gbl_var	Sun Jul 22 20:06:18 2018 +0000
+++ b/components/dar_gbl_var	Sun Jul 22 20:44:47 2018 +0000
@@ -1,7 +1,7 @@
 # Building dar_gbl_var.lib
 
 CFLAGS="-mn -mt -me -pw2"
-CFLAGS_gcc="-O2 -fno-builtin -mthumb-interwork -mthumb"
+CFLAGS_gcc="-g -O2 -fno-builtin -mthumb-interwork -mthumb"
 CPPFLAGS="-DTOOL_CHOICE=0 -D_TMS470"
 
 # Includes
--- a/components/dl	Sun Jul 22 20:06:18 2018 +0000
+++ b/components/dl	Sun Jul 22 20:44:47 2018 +0000
@@ -1,7 +1,7 @@
 # Building dl.lib from the TCS3.2 source
 
 CFLAGS="-me -mt -o -pw2 -x -mw"
-CFLAGS_gcc="-O2 -fno-builtin -mthumb-interwork -mthumb"
+CFLAGS_gcc="-g -O2 -fno-builtin -mthumb-interwork -mthumb"
 CPPFLAGS=
 
 make_version dl
--- a/components/drivers_flash	Sun Jul 22 20:06:18 2018 +0000
+++ b/components/drivers_flash	Sun Jul 22 20:44:47 2018 +0000
@@ -1,7 +1,7 @@
 # Building drivers_flash.lib
 
 CFLAGS="-me -pw2 -mn -x -mt -o2 -mw"
-CFLAGS_gcc="-O2 -fno-builtin -mthumb-interwork -mthumb"
+CFLAGS_gcc="-g -O2 -fno-builtin -mthumb-interwork -mthumb"
 CPPFLAGS="-DTOOL_CHOICE=0 -D_TMS470"
 
 # Includes
@@ -68,6 +68,6 @@
 # niq32
 
 CFLAGS="-me -pw2 -x -o -mw"
-CFLAGS_gcc="-O2 -fno-builtin -mthumb-interwork"
+CFLAGS_gcc="-g -O2 -fno-builtin -mthumb-interwork"
 
 c_file $SRCDIR/inth/niq32.c
--- a/components/dti	Sun Jul 22 20:06:18 2018 +0000
+++ b/components/dti	Sun Jul 22 20:44:47 2018 +0000
@@ -1,7 +1,7 @@
 # Building dti.lib from the TCS3.2 source
 
 CFLAGS="-me -mt -o -pw2 -x -mw"
-CFLAGS_gcc="-O2 -fno-builtin -mthumb-interwork -mthumb"
+CFLAGS_gcc="-g -O2 -fno-builtin -mthumb-interwork -mthumb"
 CPPFLAGS=
 
 make_version dti
--- a/components/etm	Sun Jul 22 20:06:18 2018 +0000
+++ b/components/etm	Sun Jul 22 20:44:47 2018 +0000
@@ -1,7 +1,7 @@
 # Building etm.lib
 
 CFLAGS="-mn -mt -mw -me -pw2"
-CFLAGS_gcc="-O2 -fno-builtin -mthumb-interwork -mthumb"
+CFLAGS_gcc="-g -O2 -fno-builtin -mthumb-interwork -mthumb"
 CPPFLAGS="-DTOOL_CHOICE=0 -D_TMS470"
 
 # Includes
--- a/components/fad	Sun Jul 22 20:06:18 2018 +0000
+++ b/components/fad	Sun Jul 22 20:44:47 2018 +0000
@@ -1,7 +1,7 @@
 # Building fad.lib from the TCS3.2 source
 
 CFLAGS="-me -mt -o -pw2 -x -mw"
-CFLAGS_gcc="-O2 -fno-builtin -mthumb-interwork -mthumb"
+CFLAGS_gcc="-g -O2 -fno-builtin -mthumb-interwork -mthumb"
 CPPFLAGS=
 
 make_version fad
--- a/components/fchg	Sun Jul 22 20:06:18 2018 +0000
+++ b/components/fchg	Sun Jul 22 20:44:47 2018 +0000
@@ -1,7 +1,7 @@
 # Building FCHG SWE - an original FreeCalypso addition
 
 CFLAGS="-mn -mt -o -x -mw -me -pw2"
-CFLAGS_gcc="-O2 -fno-builtin -mthumb-interwork -mthumb"
+CFLAGS_gcc="-g -O2 -fno-builtin -mthumb-interwork -mthumb"
 CPPFLAGS="-DTOOL_CHOICE=0 -D_TMS470"
 
 # Includes
--- a/components/ffs	Sun Jul 22 20:06:18 2018 +0000
+++ b/components/ffs	Sun Jul 22 20:44:47 2018 +0000
@@ -1,7 +1,7 @@
 # Building ffs.lib
 
 CFLAGS="-mn -mt -o -x -mw -me -pw2"
-CFLAGS_gcc="-O2 -fno-builtin -mthumb-interwork -mthumb"
+CFLAGS_gcc="-g -O2 -fno-builtin -mthumb-interwork -mthumb"
 
 # Defines
 
--- a/components/ffs_drv	Sun Jul 22 20:06:18 2018 +0000
+++ b/components/ffs_drv	Sun Jul 22 20:44:47 2018 +0000
@@ -1,7 +1,7 @@
 # Building ffs_drv.lib
 
 CFLAGS="-mn -mt -o -x -mw -me -pw2"
-CFLAGS_gcc="-O2 -fno-builtin -mthumb-interwork -mthumb"
+CFLAGS_gcc="-g -O2 -fno-builtin -mthumb-interwork -mthumb"
 
 # Defines
 
--- a/components/ffs_pcm	Sun Jul 22 20:06:18 2018 +0000
+++ b/components/ffs_pcm	Sun Jul 22 20:44:47 2018 +0000
@@ -1,7 +1,7 @@
 # Building ffs_pcm.lib
 
 CFLAGS="-mn -mt -o -x -mw -me -pw2"
-CFLAGS_gcc="-O2 -fno-builtin -mthumb-interwork -mthumb"
+CFLAGS_gcc="-g -O2 -fno-builtin -mthumb-interwork -mthumb"
 
 # Defines
 
--- a/components/frame_na7_db_fl	Sun Jul 22 20:06:18 2018 +0000
+++ b/components/frame_na7_db_fl	Sun Jul 22 20:44:47 2018 +0000
@@ -1,7 +1,7 @@
 # Building frame_na7_db_fl.lib using the GPF source bits we got with TCS3.2
 
 CFLAGS="-mw -x -pw2 -o3 -me -mt -g -mn"
-CFLAGS_gcc="-O2 -fno-builtin -mthumb-interwork -mthumb"
+CFLAGS_gcc="-g -O2 -fno-builtin -mthumb-interwork -mthumb"
 
 # Defines
 
--- a/components/frame_na7_db_ir	Sun Jul 22 20:06:18 2018 +0000
+++ b/components/frame_na7_db_ir	Sun Jul 22 20:44:47 2018 +0000
@@ -1,7 +1,7 @@
 # Building frame_na7_db_ir.lib using the GPF source bits we got with TCS3.2
 
 CFLAGS="-mw -x -pw2 -o3 -me -mt -g -mn"
-CFLAGS_gcc="-O2 -fno-builtin -mthumb-interwork"
+CFLAGS_gcc="-g -O2 -fno-builtin -mthumb-interwork"
 
 # Defines
 
--- a/components/gdi	Sun Jul 22 20:06:18 2018 +0000
+++ b/components/gdi	Sun Jul 22 20:44:47 2018 +0000
@@ -1,7 +1,7 @@
 # Building gdi.lib
 
 CFLAGS="-me -mt -o -pw2 -x -mw"
-CFLAGS_gcc="-O2 -fno-builtin -mthumb-interwork -mthumb"
+CFLAGS_gcc="-g -O2 -fno-builtin -mthumb-interwork -mthumb"
 
 # Defines
 
--- a/components/gmm	Sun Jul 22 20:06:18 2018 +0000
+++ b/components/gmm	Sun Jul 22 20:44:47 2018 +0000
@@ -1,7 +1,7 @@
 # Building gmm.lib from the TCS3.2 source
 
 CFLAGS="-me -mt -o -pw2 -x -mw"
-CFLAGS_gcc="-O2 -fno-builtin -mthumb-interwork -mthumb"
+CFLAGS_gcc="-g -O2 -fno-builtin -mthumb-interwork -mthumb"
 
 # Defines
 
--- a/components/grlc	Sun Jul 22 20:06:18 2018 +0000
+++ b/components/grlc	Sun Jul 22 20:44:47 2018 +0000
@@ -1,7 +1,7 @@
 # Building grlc.lib from the TCS3.2 source
 
 CFLAGS="-me -mt -o -pw2 -x -mw"
-CFLAGS_gcc="-O2 -fno-builtin -mthumb-interwork -mthumb"
+CFLAGS_gcc="-g -O2 -fno-builtin -mthumb-interwork -mthumb"
 
 # Defines
 
--- a/components/grlc_ir	Sun Jul 22 20:06:18 2018 +0000
+++ b/components/grlc_ir	Sun Jul 22 20:44:47 2018 +0000
@@ -1,7 +1,7 @@
 # Building grlc_ir.lib from the TCS3.2 source
 
 CFLAGS="-me -mt -o -pw2 -x -mw"
-CFLAGS_gcc="-O2 -fno-builtin -mthumb-interwork"
+CFLAGS_gcc="-g -O2 -fno-builtin -mthumb-interwork"
 
 # Defines
 
--- a/components/grr	Sun Jul 22 20:06:18 2018 +0000
+++ b/components/grr	Sun Jul 22 20:44:47 2018 +0000
@@ -1,7 +1,7 @@
 # Building grr.lib from the TCS3.2 source
 
 CFLAGS="-me -mt -o -pw2 -x -mw"
-CFLAGS_gcc="-O2 -fno-builtin -mthumb-interwork -mthumb"
+CFLAGS_gcc="-g -O2 -fno-builtin -mthumb-interwork -mthumb"
 
 # Defines
 
--- a/components/kpd	Sun Jul 22 20:06:18 2018 +0000
+++ b/components/kpd	Sun Jul 22 20:44:47 2018 +0000
@@ -1,7 +1,7 @@
 # Building kpd.lib
 
 CFLAGS="-mn -mt -me -pw2"
-CFLAGS_gcc="-O2 -fno-builtin -mthumb-interwork -mthumb"
+CFLAGS_gcc="-g -O2 -fno-builtin -mthumb-interwork -mthumb"
 CPPFLAGS="-DTOOL_CHOICE=0 -D_TMS470"
 
 # Includes
--- a/components/l1_custom_ext	Sun Jul 22 20:06:18 2018 +0000
+++ b/components/l1_custom_ext	Sun Jul 22 20:44:47 2018 +0000
@@ -1,7 +1,7 @@
 # Building l1_custom_ext.lib
 
 CFLAGS="-g -me -pw2 -mt -o -mw"
-CFLAGS_gcc="-O2 -fno-builtin -mthumb-interwork -mthumb"
+CFLAGS_gcc="-g -O2 -fno-builtin -mthumb-interwork -mthumb"
 CPPFLAGS="-DRV_TRACE_LEVEL_WARNING=2 -DTOOL_CHOICE=0 -D_TMS470"
 
 # Includes
--- a/components/l1_custom_int	Sun Jul 22 20:06:18 2018 +0000
+++ b/components/l1_custom_int	Sun Jul 22 20:44:47 2018 +0000
@@ -1,7 +1,7 @@
 # Building l1_custom_int.lib
 
 CFLAGS="-g -me -pw2 -mt -o -mw"
-CFLAGS_gcc="-O2 -fno-builtin -mthumb-interwork"
+CFLAGS_gcc="-g -O2 -fno-builtin -mthumb-interwork"
 CPPFLAGS="-DRV_TRACE_LEVEL_WARNING=2 -DTOOL_CHOICE=0 -D_TMS470"
 
 # Includes
--- a/components/l1_ext	Sun Jul 22 20:06:18 2018 +0000
+++ b/components/l1_ext	Sun Jul 22 20:44:47 2018 +0000
@@ -1,7 +1,7 @@
 # Building l1_ext.lib
 
 CFLAGS="-g -me -pw2 -mt -o -mw"
-CFLAGS_gcc="-O2 -fno-builtin -mthumb-interwork -mthumb"
+CFLAGS_gcc="-g -O2 -fno-builtin -mthumb-interwork -mthumb"
 CPPFLAGS="-DRV_TRACE_LEVEL_WARNING=2 -DTOOL_CHOICE=0 -D_TMS470"
 
 # Includes
--- a/components/l1_int	Sun Jul 22 20:06:18 2018 +0000
+++ b/components/l1_int	Sun Jul 22 20:44:47 2018 +0000
@@ -34,7 +34,7 @@
 # Compilation
 
 CFLAGS="-g -me -pw2 -mt -o -mw"
-CFLAGS_gcc="-O2 -fno-builtin -mthumb-interwork"
+CFLAGS_gcc="-g -O2 -fno-builtin -mthumb-interwork"
 CPPFLAGS="-DRV_TRACE_LEVEL_WARNING=2 -DTOOL_CHOICE=0 -D_TMS470"
 
 # Includes
--- a/components/l1_pei	Sun Jul 22 20:06:18 2018 +0000
+++ b/components/l1_pei	Sun Jul 22 20:44:47 2018 +0000
@@ -1,7 +1,7 @@
 # Building l1_pei.lib
 
 CFLAGS="-me -mt -o -pw2 -x -mw"
-CFLAGS_gcc="-O2 -fno-builtin -mthumb-interwork -mthumb"
+CFLAGS_gcc="-g -O2 -fno-builtin -mthumb-interwork -mthumb"
 CPPFLAGS=
 
 make_version l1 l1_pei
--- a/components/l2r	Sun Jul 22 20:06:18 2018 +0000
+++ b/components/l2r	Sun Jul 22 20:44:47 2018 +0000
@@ -1,7 +1,7 @@
 # Building l2r.lib from the TCS3.2 source
 
 CFLAGS="-me -mt -o -pw2 -x -mw"
-CFLAGS_gcc="-O2 -fno-builtin -mthumb-interwork -mthumb"
+CFLAGS_gcc="-g -O2 -fno-builtin -mthumb-interwork -mthumb"
 CPPFLAGS=
 
 make_version l2r
--- a/components/libsys_fl	Sun Jul 22 20:06:18 2018 +0000
+++ b/components/libsys_fl	Sun Jul 22 20:44:47 2018 +0000
@@ -1,7 +1,7 @@
 # gcc-only component: libsys (selective libc replacement) for flash
 
 ASMFLAGS=-mthumb-interwork
-CFLAGS_gcc="-O2 -fno-builtin -mthumb-interwork -mthumb"
+CFLAGS_gcc="-g -O2 -fno-builtin -mthumb-interwork -mthumb"
 CPPFLAGS=
 
 SRCDIR=$SRC/libsys
--- a/components/llc	Sun Jul 22 20:06:18 2018 +0000
+++ b/components/llc	Sun Jul 22 20:44:47 2018 +0000
@@ -1,7 +1,7 @@
 # Building llc.lib from the TCS3.2 source
 
 CFLAGS="-me -mt -o -pw2 -x -mw"
-CFLAGS_gcc="-O2 -fno-builtin -mthumb-interwork -mthumb"
+CFLAGS_gcc="-g -O2 -fno-builtin -mthumb-interwork -mthumb"
 
 # Defines
 
--- a/components/lls	Sun Jul 22 20:06:18 2018 +0000
+++ b/components/lls	Sun Jul 22 20:44:47 2018 +0000
@@ -1,7 +1,7 @@
 # Building lls.lib
 
 CFLAGS="-mn -mt -mw -me -pw2"
-CFLAGS_gcc="-O2 -fno-builtin -mthumb-interwork -mthumb"
+CFLAGS_gcc="-g -O2 -fno-builtin -mthumb-interwork -mthumb"
 CPPFLAGS="-DTOOL_CHOICE=0 -D_TMS470"
 
 # Includes
--- a/components/main	Sun Jul 22 20:06:18 2018 +0000
+++ b/components/main	Sun Jul 22 20:44:47 2018 +0000
@@ -3,7 +3,7 @@
 # C modules
 
 CFLAGS="-mn -mt -o -x -mw -me -pw2"
-CFLAGS_gcc="-O2 -fno-builtin -mthumb-interwork -mthumb"
+CFLAGS_gcc="-g -O2 -fno-builtin -mthumb-interwork -mthumb"
 CPPFLAGS="-DTOOL_CHOICE=0 -D_TMS470"
 
 if [ "$TARGET" = c139 -o "$TARGET" = c11x ]
--- a/components/misc_na7_db_fl	Sun Jul 22 20:06:18 2018 +0000
+++ b/components/misc_na7_db_fl	Sun Jul 22 20:44:47 2018 +0000
@@ -1,7 +1,7 @@
 # Building misc_na7_db_fl.lib using the GPF source bits we got with TCS211
 
 CFLAGS="-mw -x -pw2 -o -me -mt -g -mn"
-CFLAGS_gcc="-O2 -fno-builtin -mthumb-interwork -mthumb"
+CFLAGS_gcc="-g -O2 -fno-builtin -mthumb-interwork -mthumb"
 
 # Defines
 
--- a/components/misc_na7_db_ir	Sun Jul 22 20:06:18 2018 +0000
+++ b/components/misc_na7_db_ir	Sun Jul 22 20:44:47 2018 +0000
@@ -1,7 +1,7 @@
 # Building misc_na7_db_ir.lib using the GPF source bits we got with TCS211
 
 CFLAGS="-mw -x -pw2 -o -me -mt -g -mn"
-CFLAGS_gcc="-O2 -fno-builtin -mthumb-interwork"
+CFLAGS_gcc="-g -O2 -fno-builtin -mthumb-interwork"
 
 # Defines
 
--- a/components/mm	Sun Jul 22 20:06:18 2018 +0000
+++ b/components/mm	Sun Jul 22 20:44:47 2018 +0000
@@ -1,7 +1,7 @@
 # Building mm.lib from the TCS3.2 source
 
 CFLAGS="-me -mt -o -pw2 -x -mw"
-CFLAGS_gcc="-O2 -fno-builtin -mthumb-interwork -mthumb"
+CFLAGS_gcc="-g -O2 -fno-builtin -mthumb-interwork -mthumb"
 CPPFLAGS=
 
 make_version mm
--- a/components/nucleus_flash	Sun Jul 22 20:06:18 2018 +0000
+++ b/components/nucleus_flash	Sun Jul 22 20:44:47 2018 +0000
@@ -1,7 +1,7 @@
 # New Selenite component: compiling Nucleus from source (XIP)
 
 CFLAGS="-mn -me -mt -o -mw"
-CFLAGS_gcc="-O2 -fno-builtin -mthumb-interwork -mthumb"
+CFLAGS_gcc="-g -O2 -fno-builtin -mthumb-interwork -mthumb"
 CPPFLAGS=
 
 SRCDIR=$SRC/nucleus
--- a/components/nucleus_intram	Sun Jul 22 20:06:18 2018 +0000
+++ b/components/nucleus_intram	Sun Jul 22 20:44:47 2018 +0000
@@ -1,7 +1,7 @@
 # New Selenite component: compiling Nucleus from source (internal RAM)
 
 CFLAGS="-mn -me -mt -o -mw"
-CFLAGS_gcc="-O2 -fno-builtin -mthumb-interwork"
+CFLAGS_gcc="-g -O2 -fno-builtin -mthumb-interwork"
 CPPFLAGS=
 
 SRCDIR=$SRC/nucleus
--- a/components/osx_na7_db	Sun Jul 22 20:06:18 2018 +0000
+++ b/components/osx_na7_db	Sun Jul 22 20:44:47 2018 +0000
@@ -1,7 +1,7 @@
 # Building osx_na7_db.lib from our reconstructed osx.c source
 
 CFLAGS="-mw -x -pw2 -o -me -mt -g -mn"
-CFLAGS_gcc="-O2 -fno-builtin -mthumb-interwork"
+CFLAGS_gcc="-g -O2 -fno-builtin -mthumb-interwork"
 
 # Defines
 
--- a/components/power	Sun Jul 22 20:06:18 2018 +0000
+++ b/components/power	Sun Jul 22 20:44:47 2018 +0000
@@ -1,7 +1,7 @@
 # Building power.lib
 
 CFLAGS="-mn -mt -o -x -mw -me -pw2"
-CFLAGS_gcc="-O2 -fno-builtin -mthumb-interwork -mthumb"
+CFLAGS_gcc="-g -O2 -fno-builtin -mthumb-interwork -mthumb"
 CPPFLAGS="-DTOOL_CHOICE=0 -D_TMS470 -DMMI=$MMI"
 
 if [ "$MMI" = 0 ]
--- a/components/ppp	Sun Jul 22 20:06:18 2018 +0000
+++ b/components/ppp	Sun Jul 22 20:44:47 2018 +0000
@@ -1,7 +1,7 @@
 # Building ppp.lib from the TCS3.2 source
 
 CFLAGS="-me -mt -o -pw2 -x -mw"
-CFLAGS_gcc="-O2 -fno-builtin -mthumb-interwork -mthumb"
+CFLAGS_gcc="-g -O2 -fno-builtin -mthumb-interwork -mthumb"
 
 # Defines
 
--- a/components/ppp_ir	Sun Jul 22 20:06:18 2018 +0000
+++ b/components/ppp_ir	Sun Jul 22 20:44:47 2018 +0000
@@ -1,7 +1,7 @@
 # Building ppp_ir.lib from the TCS3.2 source
 
 CFLAGS="-me -mt -o -pw2 -x -mw"
-CFLAGS_gcc="-O2 -fno-builtin -mthumb-interwork"
+CFLAGS_gcc="-g -O2 -fno-builtin -mthumb-interwork"
 
 # Defines
 
--- a/components/ra	Sun Jul 22 20:06:18 2018 +0000
+++ b/components/ra	Sun Jul 22 20:44:47 2018 +0000
@@ -1,7 +1,7 @@
 # Building ra.lib from the TCS3.2 source
 
 CFLAGS="-me -mt -o -pw2 -x -mw"
-CFLAGS_gcc="-O2 -fno-builtin -mthumb-interwork -mthumb"
+CFLAGS_gcc="-g -O2 -fno-builtin -mthumb-interwork -mthumb"
 CPPFLAGS=
 
 make_version ra
--- a/components/riviera_core_flash	Sun Jul 22 20:06:18 2018 +0000
+++ b/components/riviera_core_flash	Sun Jul 22 20:44:47 2018 +0000
@@ -1,7 +1,7 @@
 # Building riviera_core_flash.lib
 
 CFLAGS="-mn -mt -me -pw2"
-CFLAGS_gcc="-O2 -fno-builtin -mthumb-interwork -mthumb"
+CFLAGS_gcc="-g -O2 -fno-builtin -mthumb-interwork -mthumb"
 CPPFLAGS="-DTOOL_CHOICE=0 -D_TMS470"
 
 # Includes
--- a/components/riviera_cust_flash	Sun Jul 22 20:06:18 2018 +0000
+++ b/components/riviera_cust_flash	Sun Jul 22 20:44:47 2018 +0000
@@ -1,7 +1,7 @@
 # Building riviera_cust_flash.lib
 
 CFLAGS="-mn -mt -me -pw2"
-CFLAGS_gcc="-O2 -fno-builtin -mthumb-interwork -mthumb"
+CFLAGS_gcc="-g -O2 -fno-builtin -mthumb-interwork -mthumb"
 CPPFLAGS="-DTOOL_CHOICE=0 -D_TMS470"
 
 if [ "$MMI" = 0 ]
--- a/components/rlp	Sun Jul 22 20:06:18 2018 +0000
+++ b/components/rlp	Sun Jul 22 20:44:47 2018 +0000
@@ -1,7 +1,7 @@
 # Building rlp.lib from the TCS3.2 source
 
 CFLAGS="-me -mt -o -pw2 -x -mw"
-CFLAGS_gcc="-O2 -fno-builtin -mthumb-interwork -mthumb"
+CFLAGS_gcc="-g -O2 -fno-builtin -mthumb-interwork -mthumb"
 CPPFLAGS=
 
 make_version rlp
--- a/components/rr	Sun Jul 22 20:06:18 2018 +0000
+++ b/components/rr	Sun Jul 22 20:44:47 2018 +0000
@@ -1,7 +1,7 @@
 # Building rr.lib from the TCS3.2 source
 
 CFLAGS="-me -mt -o -pw2 -x -mw"
-CFLAGS_gcc="-O2 -fno-builtin -mthumb-interwork -mthumb"
+CFLAGS_gcc="-g -O2 -fno-builtin -mthumb-interwork -mthumb"
 CPPFLAGS=
 
 make_version rr
--- a/components/rtc_drv	Sun Jul 22 20:06:18 2018 +0000
+++ b/components/rtc_drv	Sun Jul 22 20:44:47 2018 +0000
@@ -1,7 +1,7 @@
 # Building rtc_drv.lib
 
 CFLAGS="-mn -mt -me -pw2"
-CFLAGS_gcc="-O2 -fno-builtin -mthumb-interwork -mthumb"
+CFLAGS_gcc="-g -O2 -fno-builtin -mthumb-interwork -mthumb"
 CPPFLAGS="-DTOOL_CHOICE=0 -D_TMS470"
 
 # Includes
--- a/components/sim_b_lib	Sun Jul 22 20:06:18 2018 +0000
+++ b/components/sim_b_lib	Sun Jul 22 20:44:47 2018 +0000
@@ -1,7 +1,7 @@
 # Building sim_b_lib.lib from the TCS3.2 source
 
 CFLAGS="-me -mt -o -pw2 -x -mw"
-CFLAGS_gcc="-O2 -fno-builtin -mthumb-interwork -mthumb"
+CFLAGS_gcc="-g -O2 -fno-builtin -mthumb-interwork -mthumb"
 CPPFLAGS=
 
 make_version sim
--- a/components/sim_drv	Sun Jul 22 20:06:18 2018 +0000
+++ b/components/sim_drv	Sun Jul 22 20:44:47 2018 +0000
@@ -5,7 +5,7 @@
 # CFLAGS and CPPFLAGS for sim.c
 
 CFLAGS="-mn -mt -o -x -mw -me -pw2"
-CFLAGS_gcc="-O2 -fno-builtin -mthumb-interwork -mthumb"
+CFLAGS_gcc="-g -O2 -fno-builtin -mthumb-interwork -mthumb"
 CPPFLAGS="-DTOOL_CHOICE=0 -D_TMS470"
 
 # Includes
@@ -50,7 +50,7 @@
 # CFLAGS and CPPFLAGS for sim32.c
 
 CFLAGS="-o -x -mw -me -pw2"
-CFLAGS_gcc="-O2 -fno-builtin -mthumb-interwork"
+CFLAGS_gcc="-g -O2 -fno-builtin -mthumb-interwork"
 CPPFLAGS="-DTOOL_CHOICE=0 -D_TMS470"
 
 # Includes
--- a/components/sm	Sun Jul 22 20:06:18 2018 +0000
+++ b/components/sm	Sun Jul 22 20:44:47 2018 +0000
@@ -1,7 +1,7 @@
 # Building sm.lib from the TCS3.2 source
 
 CFLAGS="-me -mt -o -pw2 -x -mw"
-CFLAGS_gcc="-O2 -fno-builtin -mthumb-interwork -mthumb"
+CFLAGS_gcc="-g -O2 -fno-builtin -mthumb-interwork -mthumb"
 
 # Defines
 
--- a/components/sms	Sun Jul 22 20:06:18 2018 +0000
+++ b/components/sms	Sun Jul 22 20:44:47 2018 +0000
@@ -1,7 +1,7 @@
 # Building sms.lib from the TCS3.2 source
 
 CFLAGS="-me -mt -o -pw2 -x -mw"
-CFLAGS_gcc="-O2 -fno-builtin -mthumb-interwork -mthumb"
+CFLAGS_gcc="-g -O2 -fno-builtin -mthumb-interwork -mthumb"
 CPPFLAGS=
 
 make_version sms
--- a/components/sndcp	Sun Jul 22 20:06:18 2018 +0000
+++ b/components/sndcp	Sun Jul 22 20:44:47 2018 +0000
@@ -1,7 +1,7 @@
 # Building sndcp.lib from the TCS3.2 source
 
 CFLAGS="-me -mt -o -pw2 -x -mw"
-CFLAGS_gcc="-O2 -fno-builtin -mthumb-interwork -mthumb"
+CFLAGS_gcc="-g -O2 -fno-builtin -mthumb-interwork -mthumb"
 
 # Defines
 
--- a/components/spi_drv	Sun Jul 22 20:06:18 2018 +0000
+++ b/components/spi_drv	Sun Jul 22 20:44:47 2018 +0000
@@ -1,7 +1,7 @@
 # Building spi_drv.lib
 
 CFLAGS="-mn -mt -mw -me -pw2"
-CFLAGS_gcc="-O2 -fno-builtin -mthumb-interwork -mthumb"
+CFLAGS_gcc="-g -O2 -fno-builtin -mthumb-interwork -mthumb"
 CPPFLAGS="-DTOOL_CHOICE=0 -D_TMS470"
 
 # Includes
--- a/components/ss	Sun Jul 22 20:06:18 2018 +0000
+++ b/components/ss	Sun Jul 22 20:44:47 2018 +0000
@@ -1,7 +1,7 @@
 # Building ss.lib from the TCS3.2 source
 
 CFLAGS="-me -mt -o -pw2 -x -mw"
-CFLAGS_gcc="-O2 -fno-builtin -mthumb-interwork -mthumb"
+CFLAGS_gcc="-g -O2 -fno-builtin -mthumb-interwork -mthumb"
 CPPFLAGS=
 
 make_version ss
--- a/components/t30	Sun Jul 22 20:06:18 2018 +0000
+++ b/components/t30	Sun Jul 22 20:44:47 2018 +0000
@@ -1,7 +1,7 @@
 # Building t30.lib from the TCS3.2 source
 
 CFLAGS="-me -mt -o -pw2 -x -mw"
-CFLAGS_gcc="-O2 -fno-builtin -mthumb-interwork -mthumb"
+CFLAGS_gcc="-g -O2 -fno-builtin -mthumb-interwork -mthumb"
 CPPFLAGS=
 
 make_version t30
--- a/components/tif_na7_db_fl	Sun Jul 22 20:06:18 2018 +0000
+++ b/components/tif_na7_db_fl	Sun Jul 22 20:44:47 2018 +0000
@@ -1,7 +1,7 @@
 # Building tif_na7_db_fl.lib using the GPF source bits we got with TCS211
 
 CFLAGS="-mw -x -pw2 -o -me -mt -g -mn"
-CFLAGS_gcc="-O2 -fno-builtin -mthumb-interwork -mthumb"
+CFLAGS_gcc="-g -O2 -fno-builtin -mthumb-interwork -mthumb"
 
 # Defines
 
--- a/components/tif_na7_db_ir	Sun Jul 22 20:06:18 2018 +0000
+++ b/components/tif_na7_db_ir	Sun Jul 22 20:44:47 2018 +0000
@@ -1,7 +1,7 @@
 # Building tif_na7_db_ir.lib using the GPF source bits we got with TCS211
 
 CFLAGS="-mw -x -pw2 -o -me -mt -g -mn"
-CFLAGS_gcc="-O2 -fno-builtin -mthumb-interwork"
+CFLAGS_gcc="-g -O2 -fno-builtin -mthumb-interwork"
 
 # Defines
 
--- a/components/tpudrv	Sun Jul 22 20:06:18 2018 +0000
+++ b/components/tpudrv	Sun Jul 22 20:44:47 2018 +0000
@@ -1,7 +1,7 @@
 # Building tpudrv.lib
 
 CFLAGS="-g -me -pw2 -mt -o2 -mw"
-CFLAGS_gcc="-O2 -fno-builtin -mthumb-interwork"
+CFLAGS_gcc="-g -O2 -fno-builtin -mthumb-interwork"
 CPPFLAGS="-DTOOL_CHOICE=0 -D_TMS470"
 
 # Includes
--- a/components/uart_b_lib	Sun Jul 22 20:06:18 2018 +0000
+++ b/components/uart_b_lib	Sun Jul 22 20:44:47 2018 +0000
@@ -1,7 +1,7 @@
 # Building uart_b_lib.lib from the TCS3.2 source
 
 CFLAGS="-me -mt -o -pw2 -x -mw"
-CFLAGS_gcc="-O2 -fno-builtin -mthumb-interwork -mthumb"
+CFLAGS_gcc="-g -O2 -fno-builtin -mthumb-interwork -mthumb"
 
 # Defines
 
--- a/components/uart_drv	Sun Jul 22 20:06:18 2018 +0000
+++ b/components/uart_drv	Sun Jul 22 20:44:47 2018 +0000
@@ -1,7 +1,7 @@
 # Building uart_drv.lib
 
 CFLAGS="-mn -mt -o -x -mw -me -pw2"
-CFLAGS_gcc="-O2 -fno-builtin -mthumb-interwork -mthumb"
+CFLAGS_gcc="-g -O2 -fno-builtin -mthumb-interwork -mthumb"
 CPPFLAGS="-DTOOL_CHOICE=0 -D_TMS470"
 
 if [ "$SERIAL_DYNAMIC_SWITCH" = 1 ]
--- a/components/upm	Sun Jul 22 20:06:18 2018 +0000
+++ b/components/upm	Sun Jul 22 20:44:47 2018 +0000
@@ -1,7 +1,7 @@
 # Building upm.lib from the TCS3.2 source
 
 CFLAGS="-me -mt -o -pw2 -x -mw"
-CFLAGS_gcc="-O2 -fno-builtin -mthumb-interwork -mthumb"
+CFLAGS_gcc="-g -O2 -fno-builtin -mthumb-interwork -mthumb"
 
 # Defines
 
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/scripts/add-g.ex	Sun Jul 22 20:44:47 2018 +0000
@@ -0,0 +1,2 @@
+1,$s/CFLAGS_gcc="-O2/CFLAGS_gcc="-g -O2/
+w