This patch from Ralf Grosse Boerger makes debugging more comfortable.
authorStefan Reinauer <stepan@coresystems.de>
Fri, 28 Nov 2008 12:09:17 +0000 (12:09 +0000)
committerPatrick Georgi <patrick.georgi@coresystems.de>
Fri, 28 Nov 2008 12:09:17 +0000 (12:09 +0000)
With this patch it's possible to

- determine the according source code line for each asm statement
  (objdump -dS)
- determine the source code file for each asm statement
  (objdump -ddl)

This isn't exactly trivial because cache_as_ram_auto.c gets compiled to
assembly and converted by a perl script afterwards.

This patch solves the problem
- by extending cache_as_ram_auto.inc with debug information and line
  numbers
- by correcting the perl calls (".text" --> "\.text")
- by creating a disassembly with source code and line numbers.
  (ctr0.disasm and
  coreboot.disasm)

There's one minor downside to the patch: A complete abuild run takes up
around 1.6G instead of about 700MB now. But I'm sure this is quite
reasonable for the benefits.

Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Please commit while this is being worked out.
Acked-by: Peter Stuge <peter@stuge.se>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3778 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

47 files changed:
src/config/Config.lb
src/mainboard/agami/aruma/Config.lb
src/mainboard/amd/db800/Config.lb
src/mainboard/amd/dbm690t/Config.lb
src/mainboard/amd/norwich/Config.lb
src/mainboard/amd/serengeti_cheetah/Config.lb
src/mainboard/amd/serengeti_cheetah_fam10/Config.lb
src/mainboard/arima/hdama/Config.lb
src/mainboard/artecgroup/dbe61/Config.lb
src/mainboard/asus/a8n_e/Config.lb
src/mainboard/asus/a8v-e_se/Config.lb
src/mainboard/asus/m2v-mx_se/Config.lb
src/mainboard/broadcom/blast/Config.lb
src/mainboard/digitallogic/msm800sev/Config.lb
src/mainboard/gigabyte/ga_2761gxdk/Config.lb
src/mainboard/gigabyte/m57sli/Config.lb
src/mainboard/ibm/e325/Config.lb
src/mainboard/ibm/e326/Config.lb
src/mainboard/iei/pcisa-lx-800-r10/Config.lb
src/mainboard/iwill/dk8_htx/Config.lb
src/mainboard/iwill/dk8s2/Config.lb
src/mainboard/iwill/dk8x/Config.lb
src/mainboard/kontron/986lcd-m/Config.lb
src/mainboard/lippert/spacerunner-lx/Config.lb
src/mainboard/msi/ms7135/Config.lb
src/mainboard/msi/ms7260/Config.lb
src/mainboard/msi/ms9185/Config.lb
src/mainboard/msi/ms9282/Config.lb
src/mainboard/newisys/khepri/Config.lb
src/mainboard/nvidia/l1_2pvv/Config.lb
src/mainboard/pcengines/alix1c/Config.lb
src/mainboard/sunw/ultra40/Config.lb
src/mainboard/supermicro/h8dmr/Config.lb
src/mainboard/tyan/s2735/Config.lb
src/mainboard/tyan/s2850/Config.lb
src/mainboard/tyan/s2875/Config.lb
src/mainboard/tyan/s2880/Config.lb
src/mainboard/tyan/s2881/Config.lb
src/mainboard/tyan/s2882/Config.lb
src/mainboard/tyan/s2885/Config.lb
src/mainboard/tyan/s2891/Config.lb
src/mainboard/tyan/s2892/Config.lb
src/mainboard/tyan/s2895/Config.lb
src/mainboard/tyan/s2912/Config.lb
src/mainboard/tyan/s2912_fam10/Config.lb
src/mainboard/tyan/s4880/Config.lb
src/mainboard/tyan/s4882/Config.lb

index a9de434071119a389dea58b39e3ba431db3b6c9a..93d67b892e0707c4637c26f423dfd9e60f3460c6 100644 (file)
@@ -124,6 +124,7 @@ makerule coreboot
        depends "crt0.o $(INIT-OBJECTS) $(COREBOOT_APC) $(COREBOOT_RAM_ROM) ldscript.ld"
        action  "$(CC) $(DISTRO_LFLAGS) -nostdlib -nostartfiles -static -o $@ -T ldscript.ld crt0.o $(INIT-OBJECTS)"
        action  "$(CROSS_COMPILE)nm -n coreboot | sort > coreboot.map"
+       action  "$(CROSS_COMPILE)objdump -dS coreboot > coreboot.disasm"        
 end
 
 # the buildrom tool
@@ -139,9 +140,10 @@ makerule crt0.s
        action  "$(CPP) $(CPPFLAGS) -I. -I$(TOP)/src  $< > $@.new && mv $@.new $@"
 end
 
+# generate an assembly listing via -a switch.
 makerule crt0.o  
        depends "crt0.s" 
-       action  "@$(CC) -c $(CPU_OPT) -o $@ $<"
+       action  "$(CC) -Wa,-acdlns -c $(CPU_OPT) -o $@ $< >crt0.disasm"
 end
 
 makerule etags   
index 344ea92092ff6f592857aa91fe4f2da47d363d8a..f94fad8da50e69a7d484d1fd238855adb6f63b87 100644 (file)
@@ -113,9 +113,9 @@ if USE_DCACHE_RAM
                #compile cache_as_ram.c to auto.inc 
                makerule ./cache_as_ram_auto.inc
                        depends "$(MAINBOARD)/cache_as_ram_auto.c option_table.h"
-                       action "$(CC) $(DISTRO_CFLAGS) -I$(TOP)/src -I. $(CPPFLAGS) $(MAINBOARD)/cache_as_ram_auto.c -Os -nostdinc -nostdlib -fno-builtin -Wall -c -S -o $@"         
-                       action "perl -e 's/.rodata/.rom.data/g' -pi $@"
-                       action "perl -e 's/.text/.section .rom.text/g' -pi $@"
+                       action "$(CC) $(DISTRO_CFLAGS) -I$(TOP)/src -I. $(CPPFLAGS) $(MAINBOARD)/cache_as_ram_auto.c -Os -nostdinc -nostdlib -fno-builtin -Wall -g -dA -fverbose-asm -c -S -o $@"         
+                       action "perl -e 's/\.rodata/.rom.data/g' -pi $@"
+                       action "perl -e 's/\.text/.section .rom.text/g' -pi $@"
                end
 
        end
index 2c0cce3e1ea1ffd27500e185ef42b94ea809c636..63c9add27bfdc285b8d7e22805758bb85f53e79e 100644 (file)
@@ -54,9 +54,9 @@ if USE_DCACHE_RAM
        #compile cache_as_ram.c to auto.inc
        makerule ./cache_as_ram_auto.inc
                        depends "$(MAINBOARD)/cache_as_ram_auto.c option_table.h"
-                       action "$(CC) $(DISTRO_CFLAGS) -I$(TOP)/src -I. $(CPPFLAGS) $(MAINBOARD)/cache_as_ram_auto.c -Os -nostdinc -nostdlib -fno-builtin -Wall -c -S -o $@"
-                       action "perl -e 's/.rodata/.rom.data/g' -pi $@"
-                       action "perl -e 's/.text/.section .rom.text/g' -pi $@"
+                       action "$(CC) $(DISTRO_CFLAGS) -I$(TOP)/src -I. $(CPPFLAGS) $(MAINBOARD)/cache_as_ram_auto.c -Os -nostdinc -nostdlib -fno-builtin -Wall -g -dA -fverbose-asm -c -S -o $@"
+                       action "perl -e 's/\.rodata/.rom.data/g' -pi $@"
+                       action "perl -e 's/\.text/.section .rom.text/g' -pi $@"
        end
 end
 
index 381b1cc4f7982c64fbc69088920f4af6c37549e8..b589903806673ba7c1d19f8eb99838df09cfad73 100644 (file)
@@ -85,9 +85,9 @@ if USE_DCACHE_RAM
 
                makerule ./cache_as_ram_auto.inc
                        depends "$(MAINBOARD)/cache_as_ram_auto.c option_table.h"
-                       action "$(CC) $(DISTRO_CFLAGS) -I$(TOP)/src -I. $(CPPFLAGS) $(MAINBOARD)/cache_as_ram_auto.c -Os -nostdinc -nostdlib -fno-builtin -Wall -c -S -o $@"         
-                       action "perl -e 's/.rodata/.rom.data/g' -pi $@"
-                       action "perl -e 's/.text/.section .rom.text/g' -pi $@"
+                       action "$(CC) $(DISTRO_CFLAGS) -I$(TOP)/src -I. $(CPPFLAGS) $(MAINBOARD)/cache_as_ram_auto.c -Os -nostdinc -nostdlib -fno-builtin -Wall -g -dA -fverbose-asm -c -S -o $@"         
+                       action "perl -e 's/\.rodata/.rom.data/g' -pi $@"
+                       action "perl -e 's/\.text/.section .rom.text/g' -pi $@"
                end
 
        end
index 3b987db2fe799dfad8218815dd9dcf47c7c2fc22..470634fda8813ade5fd506c3764a96eba1fec972 100644 (file)
@@ -56,9 +56,9 @@ if USE_DCACHE_RAM
        #compile cache_as_ram.c to auto.inc
        makerule ./cache_as_ram_auto.inc
                        depends "$(MAINBOARD)/cache_as_ram_auto.c option_table.h"
-                       action "$(CC) $(DISTRO_CFLAGS) -I$(TOP)/src -I. $(CPPFLAGS) $(MAINBOARD)/cache_as_ram_auto.c -Os -nostdinc -nostdlib -fno-builtin -Wall -c -S -o $@"
-                       action "perl -e 's/.rodata/.rom.data/g' -pi $@"
-                       action "perl -e 's/.text/.section .rom.text/g' -pi $@"
+                       action "$(CC) $(DISTRO_CFLAGS) -I$(TOP)/src -I. $(CPPFLAGS) $(MAINBOARD)/cache_as_ram_auto.c -Os -nostdinc -nostdlib -fno-builtin -Wall -g -dA -fverbose-asm -c -S -o $@"
+                       action "perl -e 's/\.rodata/.rom.data/g' -pi $@"
+                       action "perl -e 's/\.text/.section .rom.text/g' -pi $@"
        end
 end
 
index 4e67fc19e5580a20f35a747eb2d0e6992e2b02b3..191d6084486e8cc7084da00616223be1b8f4d20f 100644 (file)
@@ -135,9 +135,9 @@ if USE_DCACHE_RAM
                #compile cache_as_ram.c to auto.inc 
                makerule ./cache_as_ram_auto.inc
                        depends "$(MAINBOARD)/cache_as_ram_auto.c option_table.h"
-                       action "$(CC) $(DISTRO_CFLAGS) -I$(TOP)/src -I. $(CPPFLAGS) $(MAINBOARD)/cache_as_ram_auto.c -Os -nostdinc -nostdlib -fno-builtin -Wall -c -S -o $@"         
-                       action "perl -e 's/.rodata/.rom.data/g' -pi $@"
-                       action "perl -e 's/.text/.section .rom.text/g' -pi $@"
+                       action "$(CC) $(DISTRO_CFLAGS) -I$(TOP)/src -I. $(CPPFLAGS) $(MAINBOARD)/cache_as_ram_auto.c -Os -nostdinc -nostdlib -fno-builtin -Wall -g -dA -fverbose-asm -c -S -o $@"         
+                       action "perl -e 's/\.rodata/.rom.data/g' -pi $@"
+                       action "perl -e 's/\.text/.section .rom.text/g' -pi $@"
                end
        end
 end
index b2063478a9ca00e0e021508ee6f7c44d20cd1b00..53c070e10577be8af74c3296e9ef9f494bd3dfbf 100644 (file)
@@ -143,9 +143,9 @@ if USE_DCACHE_RAM
                #compile cache_as_ram.c to auto.inc
                makerule ./cache_as_ram_auto.inc
                        depends "$(MAINBOARD)/$(CACHE_AS_RAM_AUTO_C) option_table.h"
-                       action "$(CC) -I$(TOP)/src -I. $(CFLAGS) $(CPPFLAGS) $(MAINBOARD)/$(CACHE_AS_RAM_AUTO_C) -Os -nostdinc -nostdlib -fno-builtin -Wall -c -S -o $@"
-                       action "perl -e 's/.rodata/.rom.data/g' -pi $@"
-                       action "perl -e 's/.text/.section .rom.text/g' -pi $@"
+                       action "$(CC) -I$(TOP)/src -I. $(CFLAGS) $(CPPFLAGS) $(MAINBOARD)/$(CACHE_AS_RAM_AUTO_C) -Os -nostdinc -nostdlib -fno-builtin -g -dA -fverbose-asm -Wall -c -S -o $@"
+                       action "perl -e 's/\.rodata/.rom.data/g' -pi $@"
+                       action "perl -e 's/\.text/.section .rom.text/g' -pi $@"
                end
 
        end
index cd5bd3802f9a40a86ede984007b62cd131932b73..857f747d96846d627bbf19f8043da90c304b3fb5 100644 (file)
@@ -59,9 +59,9 @@ else
                 
 makerule ./auto.inc
         depends "$(MAINBOARD)/cache_as_ram_auto.c option_table.h"
-        action "$(CC) $(DISTRO_CFLAGS) -I$(TOP)/src -I. $(CPPFLAGS) $(MAINBOARD)/cache_as_ram_auto.c -Os -nostdinc -nostdlib -fno-builtin -Wall -c -S -o $@"         
-        action "perl -e 's/.rodata/.rom.data/g' -pi $@"
-        action "perl -e 's/.text/.section .rom.text/g' -pi $@"
+        action "$(CC) $(DISTRO_CFLAGS) -I$(TOP)/src -I. $(CPPFLAGS) $(MAINBOARD)/cache_as_ram_auto.c -Os -nostdinc -nostdlib -fno-builtin -Wall -g -dA -fverbose-asm -c -S -o $@"         
+        action "perl -e 's/\.rodata/.rom.data/g' -pi $@"
+        action "perl -e 's/\.text/.section .rom.text/g' -pi $@"
 end
 
 end
index 34003df6f7befee22e9e117811d99976a508d499..ec5c2844e3c4303894b7369673ba9aa1c2cd211d 100644 (file)
@@ -52,9 +52,9 @@ if USE_DCACHE_RAM
        #compile cache_as_ram.c to auto.inc
        makerule ./cache_as_ram_auto.inc
                        depends "$(MAINBOARD)/cache_as_ram_auto.c option_table.h"
-                       action "$(CC) $(DISTRO_CFLAGS) -I$(TOP)/src -I. $(CPPFLAGS) $(MAINBOARD)/cache_as_ram_auto.c -Os -nostdinc -nostdlib -fno-builtin -Wall -c -S -o $@"
-                       action "perl -e 's/.rodata/.rom.data/g' -pi $@"
-                       action "perl -e 's/.text/.section .rom.text/g' -pi $@"
+                       action "$(CC) $(DISTRO_CFLAGS) -I$(TOP)/src -I. $(CPPFLAGS) $(MAINBOARD)/cache_as_ram_auto.c -Os -nostdinc -nostdlib -fno-builtin -Wall -g -dA -fverbose-asm -c -S -o $@"
+                       action "perl -e 's/\.rodata/.rom.data/g' -pi $@"
+                       action "perl -e 's/\.text/.section .rom.text/g' -pi $@"
        end
 end
 
index 95e68536b17219db39e721f7debc2ca489d3b373..b3a00e4b6efb7b93bf68d5538dc6781c7a92c435 100644 (file)
@@ -63,9 +63,9 @@ if USE_DCACHE_RAM
        else
                makerule ./auto.inc
                        depends "$(MAINBOARD)/cache_as_ram_auto.c option_table.h"
-                       action "$(CC) $(DISTRO_CFLAGS) -I$(TOP)/src -I. $(CPPFLAGS) $(MAINBOARD)/cache_as_ram_auto.c -Os -nostdinc -nostdlib -fno-builtin -Wall -c -S -o $@"
-                       action "perl -e 's/.rodata/.rom.data/g' -pi $@"
-                       action "perl -e 's/.text/.section .rom.text/g' -pi $@"
+                       action "$(CC) $(DISTRO_CFLAGS) -I$(TOP)/src -I. $(CPPFLAGS) $(MAINBOARD)/cache_as_ram_auto.c -Os -nostdinc -nostdlib -fno-builtin -Wall -g -dA -fverbose-asm -c -S -o $@"
+                       action "perl -e 's/\.rodata/.rom.data/g' -pi $@"
+                       action "perl -e 's/\.text/.section .rom.text/g' -pi $@"
                end
        end
 end
index aa5ca707036321c6070633380b3f466a1c3f62e8..75fb94b27b1bf60c8f666d8171a5f867b08c1114 100644 (file)
@@ -61,9 +61,9 @@ if USE_DCACHE_RAM
   else
     makerule ./cache_as_ram_auto.inc
       depends "$(MAINBOARD)/cache_as_ram_auto.c option_table.h"
-      action "$(CC) $(DISTRO_CFLAGS) -I$(TOP)/src -I. $(CPPFLAGS) $(MAINBOARD)/cache_as_ram_auto.c -Os -nostdinc -nostdlib -fno-builtin -Wall -c -S -o $@"
-      action "perl -e 's/.rodata/.rom.data/g' -pi $@"
-      action "perl -e 's/.text/.section .rom.text/g' -pi $@"
+      action "$(CC) $(DISTRO_CFLAGS) -I$(TOP)/src -I. $(CPPFLAGS) $(MAINBOARD)/cache_as_ram_auto.c -Os -nostdinc -nostdlib -fno-builtin -Wall -g -dA -fverbose-asm -c -S -o $@"
+      action "perl -e 's/\.rodata/.rom.data/g' -pi $@"
+      action "perl -e 's/\.text/.section .rom.text/g' -pi $@"
     end
   end
 end
index 7d9e430f02d05a621068e86251caddb55f930b4f..8fca6cd81038c836ec665cb71fd2390f581da222 100644 (file)
@@ -63,9 +63,9 @@ if USE_DCACHE_RAM
   else
     makerule ./cache_as_ram_auto.inc
       depends "$(MAINBOARD)/cache_as_ram_auto.c option_table.h"
-      action "$(CC) $(DISTRO_CFLAGS) -I$(TOP)/src -I. $(CPPFLAGS) $(MAINBOARD)/cache_as_ram_auto.c -Os -nostdinc -nostdlib -fno-builtin -Wall -c -S -o $@"
-      action "perl -e 's/.rodata/.rom.data/g' -pi $@"
-      action "perl -e 's/.text/.section .rom.text/g' -pi $@"
+      action "$(CC) $(DISTRO_CFLAGS) -I$(TOP)/src -I. $(CPPFLAGS) $(MAINBOARD)/cache_as_ram_auto.c -Os -nostdinc -nostdlib -fno-builtin -Wall -g -dA -fverbose-asm -c -S -o $@"
+      action "perl -e 's/\.rodata/.rom.data/g' -pi $@"
+      action "perl -e 's/\.text/.section .rom.text/g' -pi $@"
     end
   end
 end
index f56211f649fda4f1d1f0d541910fc5d8f2140073..4137948f9aaec70e04f719207ef13c34f2858b5f 100644 (file)
@@ -63,9 +63,9 @@ if USE_DCACHE_RAM
                 
                makerule ./cache_as_ram_auto.inc
                        depends "$(MAINBOARD)/cache_as_ram_auto.c option_table.h"
-                       action "$(CC) $(DISTRO_CFLAGS) -I$(TOP)/src -I. $(CPPFLAGS) $(MAINBOARD)/cache_as_ram_auto.c -Os -nostdinc -nostdlib -fno-builtin -Wall -c -S -o $@"         
-                       action "perl -e 's/.rodata/.rom.data/g' -pi $@"
-                       action "perl -e 's/.text/.section .rom.text/g' -pi $@"
+                       action "$(CC) $(DISTRO_CFLAGS) -I$(TOP)/src -I. $(CPPFLAGS) $(MAINBOARD)/cache_as_ram_auto.c -Os -nostdinc -nostdlib -fno-builtin -Wall -g -dA -fverbose-asm -c -S -o $@"         
+                       action "perl -e 's/\.rodata/.rom.data/g' -pi $@"
+                       action "perl -e 's/\.text/.section .rom.text/g' -pi $@"
                end
 
        end
index eceee5bf49e6b533f06d9995d239c5517558dc07..8956df52ff1b97d4af5bc6be17a1134f0b9e4ddd 100644 (file)
@@ -52,9 +52,9 @@ if USE_DCACHE_RAM
        #compile cache_as_ram.c to auto.inc
        makerule ./cache_as_ram_auto.inc
                        depends "$(MAINBOARD)/cache_as_ram_auto.c option_table.h"
-                       action "$(CC) $(DISTRO_CFLAGS) -I$(TOP)/src -I. $(CPPFLAGS) $(MAINBOARD)/cache_as_ram_auto.c -Os -nostdinc -nostdlib -fno-builtin -Wall -c -S -o $@"
-                       action "perl -e 's/.rodata/.rom.data/g' -pi $@"
-                       action "perl -e 's/.text/.section .rom.text/g' -pi $@"
+                       action "$(CC) $(DISTRO_CFLAGS) -I$(TOP)/src -I. $(CPPFLAGS) $(MAINBOARD)/cache_as_ram_auto.c -Os -nostdinc -nostdlib -fno-builtin -Wall -g -dA -fverbose-asm -c -S -o $@"
+                       action "perl -e 's/\.rodata/.rom.data/g' -pi $@"
+                       action "perl -e 's/\.text/.section .rom.text/g' -pi $@"
        end
 end
 
index 7ba507b7d1651b9e297ed3abcb85011e7f899bb0..856555914101749c2e2a69fd3e562ab4979699ee 100644 (file)
@@ -92,9 +92,9 @@ if USE_DCACHE_RAM
        else
                makerule ./cache_as_ram_auto.inc
                        depends "$(MAINBOARD)/cache_as_ram_auto.c option_table.h"
-                       action "$(CC) $(DISTRO_CFLAGS) -I$(TOP)/src -I. $(CPPFLAGS) $(CPU_OPT) $(MAINBOARD)/cache_as_ram_auto.c -Os -nostdinc -nostdlib -fno-builtin -Wall -c -S -o $@"
-                       action "perl -e 's/.rodata/.rom.data/g' -pi $@"
-                       action "perl -e 's/.text/.section .rom.text/g' -pi $@"
+                       action "$(CC) $(DISTRO_CFLAGS) -I$(TOP)/src -I. $(CPPFLAGS) $(CPU_OPT) $(MAINBOARD)/cache_as_ram_auto.c -Os -nostdinc -nostdlib -fno-builtin -g -dA -fverbose-asm -Wall -c -S -o $@"
+                       action "perl -e 's/\.rodata/.rom.data/g' -pi $@"
+                       action "perl -e 's/\.text/.section .rom.text/g' -pi $@"
                end
        end
 
index 127ce0309b93c17a9b423069952e3eae8c4a9929..19ddfadd5f160675649b64e66fc1134c89c91b84 100644 (file)
@@ -90,9 +90,9 @@ if USE_DCACHE_RAM
        else
                makerule ./cache_as_ram_auto.inc
                        depends "$(MAINBOARD)/cache_as_ram_auto.c option_table.h"
-                       action "$(CC) $(DISTRO_CFLAGS) -I$(TOP)/src -I. $(CPPFLAGS) $(MAINBOARD)/cache_as_ram_auto.c -Os -nostdinc -nostdlib -fno-builtin -Wall -c -S -o $@"
-                       action "perl -e 's/.rodata/.rom.data/g' -pi $@"
-                       action "perl -e 's/.text/.section .rom.text/g' -pi $@"
+                       action "$(CC) $(DISTRO_CFLAGS) -I$(TOP)/src -I. $(CPPFLAGS) $(MAINBOARD)/cache_as_ram_auto.c -Os -nostdinc -nostdlib -fno-builtin -Wall -g -dA -fverbose-asm -c -S -o $@"
+                       action "perl -e 's/\.rodata/.rom.data/g' -pi $@"
+                       action "perl -e 's/\.text/.section .rom.text/g' -pi $@"
                end
        end
 
index 68f7120f5dbacb4c8c647ce290a29c4e65743ca5..e3139dafc69d5dff63a72d85d952e41fd1141fb8 100644 (file)
@@ -60,9 +60,9 @@ else
                 
 makerule ./auto.inc
         depends "$(MAINBOARD)/cache_as_ram_auto.c option_table.h"
-        action "$(CC) $(DISTRO_CFLAGS) -I$(TOP)/src -I. $(CPPFLAGS) $(MAINBOARD)/cache_as_ram_auto.c -Os -nostdinc -nostdlib -fno-builtin -Wall -c -S -o $@"         
-        action "perl -e 's/.rodata/.rom.data/g' -pi $@"
-        action "perl -e 's/.text/.section .rom.text/g' -pi $@"
+        action "$(CC) $(DISTRO_CFLAGS) -I$(TOP)/src -I. $(CPPFLAGS) $(MAINBOARD)/cache_as_ram_auto.c -Os -nostdinc -nostdlib -fno-builtin -Wall -g -dA -fverbose-asm -c -S -o $@"         
+        action "perl -e 's/\.rodata/.rom.data/g' -pi $@"
+        action "perl -e 's/\.text/.section .rom.text/g' -pi $@"
 end
 
 end
index ccf3164f0cf3d7f0f9e6ce828d1b4680a98ac3a5..51192bef19c064a85509deb35aa9d3911253bcea 100644 (file)
@@ -60,9 +60,9 @@ else
                 
 makerule ./auto.inc
         depends "$(MAINBOARD)/cache_as_ram_auto.c option_table.h"
-        action "$(CC) $(DISTRO_CFLAGS) -I$(TOP)/src -I. $(CPPFLAGS) $(MAINBOARD)/cache_as_ram_auto.c -Os -nostdinc -nostdlib -fno-builtin -Wall -c -S -o $@"         
-        action "perl -e 's/.rodata/.rom.data/g' -pi $@"
-        action "perl -e 's/.text/.section .rom.text/g' -pi $@"
+        action "$(CC) $(DISTRO_CFLAGS) -I$(TOP)/src -I. $(CPPFLAGS) $(MAINBOARD)/cache_as_ram_auto.c -Os -nostdinc -nostdlib -fno-builtin -Wall -g -dA -fverbose-asm -c -S -o $@"         
+        action "perl -e 's/\.rodata/.rom.data/g' -pi $@"
+        action "perl -e 's/\.text/.section .rom.text/g' -pi $@"
 end
 
 end
index 87aa03d741565450004f59f21732cac1d771e942..4aa694ef8c49ba9c8e6ef01651ccf6305d6d09e1 100644 (file)
@@ -40,9 +40,9 @@ if USE_DCACHE_RAM
        makerule ./cache_as_ram_auto.inc
                        # depends "$(MAINBOARD)/cache_as_ram_auto.c option_table.h"
                        depends "$(MAINBOARD)/cache_as_ram_auto.c"
-                       action "$(CC) $(DISTRO_CFLAGS) -I$(TOP)/src -I. $(CPPFLAGS) $(MAINBOARD)/cache_as_ram_auto.c -Os -nostdinc -nostdlib -fno-builtin -Wall -c -S -o $@"
-                       action "perl -e 's/.rodata/.rom.data/g' -pi $@"
-                       action "perl -e 's/.text/.section .rom.text/g' -pi $@"
+                       action "$(CC) $(DISTRO_CFLAGS) -I$(TOP)/src -I. $(CPPFLAGS) $(MAINBOARD)/cache_as_ram_auto.c -Os -nostdinc -nostdlib -fno-builtin -Wall -g -dA -fverbose-asm -c -S -o $@"
+                       action "perl -e 's/\.rodata/.rom.data/g' -pi $@"
+                       action "perl -e 's/\.text/.section .rom.text/g' -pi $@"
        end
 end
 mainboardinit cpu/x86/16bit/entry16.inc
index 1ea143eead16c2adad270a31d4c6ffa9c61c11a3..57ae0f80e8ac415a4921e7e3dddd9dcb98b88ac0 100644 (file)
@@ -142,9 +142,9 @@ if USE_DCACHE_RAM
                #compile cache_as_ram.c to auto.inc 
                makerule ./cache_as_ram_auto.inc
                        depends "$(MAINBOARD)/cache_as_ram_auto.c option_table.h"
-                       action "$(CC) $(DISTRO_CFLAGS) -I$(TOP)/src -I. $(CPPFLAGS) $(MAINBOARD)/cache_as_ram_auto.c -Os -nostdinc -nostdlib -fno-builtin -Wall -c -S -o $@"         
-                       action "perl -e 's/.rodata/.rom.data/g' -pi $@"
-                       action "perl -e 's/.text/.section .rom.text/g' -pi $@"
+                       action "$(CC) $(DISTRO_CFLAGS) -I$(TOP)/src -I. $(CPPFLAGS) $(MAINBOARD)/cache_as_ram_auto.c -Os -nostdinc -nostdlib -fno-builtin -Wall -g -dA -fverbose-asm -c -S -o $@"         
+                       action "perl -e 's/\.rodata/.rom.data/g' -pi $@"
+                       action "perl -e 's/\.text/.section .rom.text/g' -pi $@"
                end
 
        end
index ad3e22e1c21e578d2c02d9ce2b2374003d3c31ad..81bac7d75ffbc0cba0a6c0de312e22806e41e316 100644 (file)
@@ -63,9 +63,9 @@ else
                 
 makerule ./auto.inc
         depends "$(MAINBOARD)/cache_as_ram_auto.c option_table.h"
-        action "$(CC) $(DISTRO_CFLAGS) -I$(TOP)/src -I. $(CPPFLAGS) $(MAINBOARD)/cache_as_ram_auto.c -Os -nostdinc -nostdlib -fno-builtin -Wall -c -S -o $@"         
-        action "perl -e 's/.rodata/.rom.data/g' -pi $@"
-        action "perl -e 's/.text/.section .rom.text/g' -pi $@"
+        action "$(CC) $(DISTRO_CFLAGS) -I$(TOP)/src -I. $(CPPFLAGS) $(MAINBOARD)/cache_as_ram_auto.c -Os -nostdinc -nostdlib -fno-builtin -Wall -g -dA -fverbose-asm -c -S -o $@"         
+        action "perl -e 's/\.rodata/.rom.data/g' -pi $@"
+        action "perl -e 's/\.text/.section .rom.text/g' -pi $@"
 end
 
 end
index bc1c73d8214ced51502afb432691870ea653ab3b..44dcb21936a5ad23dfe348976c2cb2ebcb4e7060 100644 (file)
@@ -60,9 +60,9 @@ else
                 
 makerule ./auto.inc
         depends "$(MAINBOARD)/cache_as_ram_auto.c option_table.h"
-        action "$(CC) $(DISTRO_CFLAGS) -I$(TOP)/src -I. $(CPPFLAGS) $(MAINBOARD)/cache_as_ram_auto.c -Os -nostdinc -nostdlib -fno-builtin -Wall -c -S -o $@"         
-        action "perl -e 's/.rodata/.rom.data/g' -pi $@"
-        action "perl -e 's/.text/.section .rom.text/g' -pi $@"
+        action "$(CC) $(DISTRO_CFLAGS) -I$(TOP)/src -I. $(CPPFLAGS) $(MAINBOARD)/cache_as_ram_auto.c -Os -nostdinc -nostdlib -fno-builtin -Wall -g -dA -fverbose-asm -c -S -o $@"         
+        action "perl -e 's/\.rodata/.rom.data/g' -pi $@"
+        action "perl -e 's/\.text/.section .rom.text/g' -pi $@"
 end
 
 end
index 4ba6eac758c1989d046b04cdad4791974135ac59..5be778c0f04d99f3820d1ad4e75c1d5e6d0d8936 100644 (file)
@@ -101,9 +101,9 @@ else
 
 makerule ./auto.inc
        depends "$(MAINBOARD)/auto.c option_table.h"
-       action "$(CC) $(DISTRO_CFLAGS) -I$(TOP)/src -I.  $(CPPFLAGS) $(MAINBOARD)/auto.c -Os -nostdinc -nostdlib -fno-builtin -Wall -c -S -o $@"
-       action "perl -e 's/.rodata/.rom.data/g' -pi $@"
-       action "perl -e 's/.text/.section .rom.text/g' -pi $@"
+       action "$(CC) $(DISTRO_CFLAGS) -I$(TOP)/src -I.  $(CPPFLAGS) $(MAINBOARD)/auto.c -Os -nostdinc -nostdlib -fno-builtin -g -dA -fverbose-asm -Wall -c -S -o $@"
+       action "perl -e 's/\.rodata/.rom.data/g' -pi $@"
+       action "perl -e 's/\.text/.section .rom.text/g' -pi $@"
 end
 
 end
index 10b4b4f356a282d78f386b00309e5b87728ac8ff..85091a5b3d1643d757405e0663177a134988eb5d 100644 (file)
@@ -74,9 +74,9 @@ if USE_DCACHE_RAM
        # compile cache_as_ram.c to auto.inc
        makerule ./cache_as_ram_auto.inc
                depends "$(MAINBOARD)/cache_as_ram_auto.c"
-               action "$(CC) $(DISTRO_CFLAGS) -I$(TOP)/src -I. $(CPPFLAGS) $(MAINBOARD)/cache_as_ram_auto.c -Os -nostdinc -nostdlib -fno-builtin -Wall -c -S -o $@"
-               action "perl -e 's/.rodata/.rom.data/g' -pi $@"
-               action "perl -e 's/.text/.section .rom.text/g' -pi $@"
+               action "$(CC) $(DISTRO_CFLAGS) -I$(TOP)/src -I. $(CPPFLAGS) $(MAINBOARD)/cache_as_ram_auto.c -Os -nostdinc -nostdlib -fno-builtin -Wall -g -dA -fverbose-asm -c -S -o $@"
+               action "perl -e 's/\.rodata/.rom.data/g' -pi $@"
+               action "perl -e 's/\.text/.section .rom.text/g' -pi $@"
        end
 end
 
index 811ebdfe78ff27564dd4f95d3e4302ff177592dc..045d01863ad6349eea8872750a8fb2ea3a3b1d1a 100644 (file)
@@ -99,9 +99,9 @@ if USE_DCACHE_RAM
        else
                makerule ./auto.inc
                        depends "$(MAINBOARD)/cache_as_ram_auto.c option_table.h"
-                       action "$(CC) -I$(TOP)/src -I. $(CPPFLAGS) $(MAINBOARD)/cache_as_ram_auto.c -Os -nostdinc -nostdlib -fno-builtin -Wall -c -S -o $@"
-                       action "perl -e 's/.rodata/.rom.data/g' -pi $@"
-                       action "perl -e 's/.text/.section .rom.text/g' -pi $@"
+                       action "$(CC) -I$(TOP)/src -I. $(CPPFLAGS) $(MAINBOARD)/cache_as_ram_auto.c -Os -nostdinc -nostdlib -fno-builtin -g -dA -fverbose-asm -Wall -c -S -o $@"
+                       action "perl -e 's/\.rodata/.rom.data/g' -pi $@"
+                       action "perl -e 's/\.text/.section .rom.text/g' -pi $@"
                end
        end
 end
index 64742c8717938f5deebcfa0a06b81ebf09c3d61a..86218f321d372e7095ba6def11a2111afbbc144a 100644 (file)
@@ -63,9 +63,9 @@ if USE_DCACHE_RAM
   else
     makerule ./cache_as_ram_auto.inc
       depends "$(MAINBOARD)/cache_as_ram_auto.c option_table.h"
-      action "$(CC) $(DISTRO_CFLAGS) -I$(TOP)/src -I. $(CPPFLAGS) $(MAINBOARD)/cache_as_ram_auto.c -Os -nostdinc -nostdlib -fno-builtin -Wall -c -S -o $@"
-      action "perl -e 's/.rodata/.rom.data/g' -pi $@"
-      action "perl -e 's/.text/.section .rom.text/g' -pi $@"
+      action "$(CC) $(DISTRO_CFLAGS) -I$(TOP)/src -I. $(CPPFLAGS) $(MAINBOARD)/cache_as_ram_auto.c -Os -nostdinc -nostdlib -fno-builtin -Wall -g -dA -fverbose-asm -c -S -o $@"
+      action "perl -e 's/\.rodata/.rom.data/g' -pi $@"
+      action "perl -e 's/\.text/.section .rom.text/g' -pi $@"
     end
   end
 end
index f6b1a7d36e97448b4adc24bde284bb380bcc4992..ae895397937454eb836aa25852c4e59d66798b03 100644 (file)
@@ -90,9 +90,9 @@ if USE_DCACHE_RAM
                #compile cache_as_ram.c to auto.inc
                makerule ./cache_as_ram_auto.inc
                        depends "$(MAINBOARD)/cache_as_ram_auto.c option_table.h"
-                       action "$(CC) $(DISTRO_CFLAGS) -I$(TOP)/src -I. $(CPPFLAGS) $(MAINBOARD)/cache_as_ram_auto.c -Os -nostdinc -nostdlib -fno-builtin -Wall -c -S -o $@"
-                       action "perl -e 's/.rodata/.rom.data/g' -pi $@"
-                       action "perl -e 's/.text/.section .rom.text/g' -pi $@"
+                       action "$(CC) $(DISTRO_CFLAGS) -I$(TOP)/src -I. $(CPPFLAGS) $(MAINBOARD)/cache_as_ram_auto.c -Os -nostdinc -nostdlib -fno-builtin -Wall -g -dA -fverbose-asm -c -S -o $@"
+                       action "perl -e 's/\.rodata/.rom.data/g' -pi $@"
+                       action "perl -e 's/\.text/.section .rom.text/g' -pi $@"
                end
 
        end
index b8e330cd540b588b0c94a86d21b223703a6946cc..6597f74cf28dda65556e55ec6d57d6dc0d84a59d 100644 (file)
@@ -88,9 +88,9 @@ else
 
 makerule ./auto.inc
         depends "$(MAINBOARD)/cache_as_ram_auto.c option_table.h"
-        action "$(CC) $(DISTRO_CFLAGS) -I$(TOP)/src -I. $(CPPFLAGS) $(MAINBOARD)/cache_as_ram_auto.c -Os -nostdinc -nostdlib -fno-builtin -Wall -c -S -o $@"
-       action "perl -e 's/.rodata/.rom.data/g' -pi $@"
-       action "perl -e 's/.text/.section .rom.text/g' -pi $@"
+        action "$(CC) $(DISTRO_CFLAGS) -I$(TOP)/src -I. $(CPPFLAGS) $(MAINBOARD)/cache_as_ram_auto.c -Os -nostdinc -nostdlib -fno-builtin -Wall -g -dA -fverbose-asm -c -S -o $@"
+       action "perl -e 's/\.rodata/.rom.data/g' -pi $@"
+       action "perl -e 's/\.text/.section .rom.text/g' -pi $@"
 end
 
 end
index 9f8e29fdad2900e87080fcd3d62f72712f465915..52e6a7ac706941e86a952e737cccb7be32428ab3 100644 (file)
@@ -60,9 +60,9 @@ else
                 
 makerule ./auto.inc
         depends "$(MAINBOARD)/cache_as_ram_auto.c option_table.h"
-        action "$(CC) $(DISTRO_CFLAGS) -I$(TOP)/src -I. $(CPPFLAGS) $(MAINBOARD)/cache_as_ram_auto.c -Os -nostdinc -nostdlib -fno-builtin -Wall -c -S -o $@"         
-        action "perl -e 's/.rodata/.rom.data/g' -pi $@"
-        action "perl -e 's/.text/.section .rom.text/g' -pi $@"
+        action "$(CC) $(DISTRO_CFLAGS) -I$(TOP)/src -I. $(CPPFLAGS) $(MAINBOARD)/cache_as_ram_auto.c -Os -nostdinc -nostdlib -fno-builtin -Wall -g -dA -fverbose-asm -c -S -o $@"         
+        action "perl -e 's/\.rodata/.rom.data/g' -pi $@"
+        action "perl -e 's/\.text/.section .rom.text/g' -pi $@"
 end
 
 end
index 29ab5bb8e3d37f4a490037e18b86eeb1ba81fbe5..244740b37a01168daca2a9bc3a29d3f65cd58498 100644 (file)
@@ -121,9 +121,9 @@ if USE_DCACHE_RAM
        else
                makerule ./cache_as_ram_auto.inc
                        depends "$(MAINBOARD)/cache_as_ram_auto.c option_table.h"
-                       action "$(CC) $(DISTRO_CFLAGS) -I$(TOP)/src -I. $(CPPFLAGS) $(MAINBOARD)/cache_as_ram_auto.c -Os -nostdinc -nostdlib -fno-builtin -Wall -c -S -o $@"
-                       action "perl -e 's/.rodata/.rom.data/g' -pi $@"
-                       action "perl -e 's/.text/.section .rom.text/g' -pi $@"
+                       action "$(CC) $(DISTRO_CFLAGS) -I$(TOP)/src -I. $(CPPFLAGS) $(MAINBOARD)/cache_as_ram_auto.c -Os -nostdinc -nostdlib -fno-builtin -Wall -g -dA -fverbose-asm -c -S -o $@"
+                       action "perl -e 's/\.rodata/.rom.data/g' -pi $@"
+                       action "perl -e 's/\.text/.section .rom.text/g' -pi $@"
                end
        end
 
index 73a1875280303927404c7b7f49cc6d4e3693eda8..872da8f3d5dbb2c8350e8aa68d0644697be5c443 100644 (file)
@@ -72,9 +72,9 @@ if USE_DCACHE_RAM
        #compile cache_as_ram.c to auto.inc
        makerule ./cache_as_ram_auto.inc
                        depends "$(MAINBOARD)/cache_as_ram_auto.c option_table.h"
-                       action "$(CC) $(DISTRO_CFLAGS) -I$(TOP)/src -I. $(CPPFLAGS) $(MAINBOARD)/cache_as_ram_auto.c -Os -nostdinc -nostdlib -fno-builtin -Wall -c -S -o $@"
-                       action "perl -e 's/.rodata/.rom.data/g' -pi $@"
-                       action "perl -e 's/.text/.section .rom.text/g' -pi $@"
+                       action "$(CC) $(DISTRO_CFLAGS) -I$(TOP)/src -I. $(CPPFLAGS) $(MAINBOARD)/cache_as_ram_auto.c -Os -nostdinc -nostdlib -fno-builtin -Wall -g -dA -fverbose-asm -c -S -o $@"
+                       action "perl -e 's/\.rodata/.rom.data/g' -pi $@"
+                       action "perl -e 's/\.text/.section .rom.text/g' -pi $@"
        end
 end
 
index 59d6a5cf2ed861a60758fe7985d6d5436237063a..36d6d5625a82a1c2f520670341ba8ee76d169543 100644 (file)
@@ -57,9 +57,9 @@ if USE_DCACHE_RAM
        else
                makerule ./auto.inc
                        depends "$(MAINBOARD)/cache_as_ram_auto.c option_table.h"
-                       action "$(CC) $(DISTRO_CFLAGS) -I$(TOP)/src -I. $(CPPFLAGS) $(MAINBOARD)/cache_as_ram_auto.c -Os -nostdinc -nostdlib -fno-builtin -Wall -c -S -o $@"
-                       action "perl -e 's/.rodata/.rom.data/g' -pi $@"
-                       action "perl -e 's/.text/.section .rom.text/g' -pi $@"
+                       action "$(CC) $(DISTRO_CFLAGS) -I$(TOP)/src -I. $(CPPFLAGS) $(MAINBOARD)/cache_as_ram_auto.c -Os -nostdinc -nostdlib -fno-builtin -Wall -g -dA -fverbose-asm -c -S -o $@"
+                       action "perl -e 's/\.rodata/.rom.data/g' -pi $@"
+                       action "perl -e 's/\.text/.section .rom.text/g' -pi $@"
                end
        end
 
index 7ba83c06ab043014175cc2a6c2904913c3bb1d12..f0da99a6b112c03a9bd1b8d1c242b0fe8ce855f5 100644 (file)
@@ -90,9 +90,9 @@ if USE_DCACHE_RAM
        else
                makerule ./auto.inc
                        depends "$(MAINBOARD)/cache_as_ram_auto.c option_table.h"
-                       action "$(CC) $(DISTRO_CFLAGS) -I$(TOP)/src -I. $(CPPFLAGS) $(MAINBOARD)/cache_as_ram_auto.c -Os -nostdinc -nostdlib -fno-builtin -Wall -c -S -o $@"
-                       action "perl -e 's/.rodata/.rom.data/g' -pi $@"
-                       action "perl -e 's/.text/.section .rom.text/g' -pi $@"
+                       action "$(CC) $(DISTRO_CFLAGS) -I$(TOP)/src -I. $(CPPFLAGS) $(MAINBOARD)/cache_as_ram_auto.c -Os -nostdinc -nostdlib -fno-builtin -Wall -g -dA -fverbose-asm -c -S -o $@"
+                       action "perl -e 's/\.rodata/.rom.data/g' -pi $@"
+                       action "perl -e 's/\.text/.section .rom.text/g' -pi $@"
                end
        end
 
index 8a9d466e5954aa4b24e902fc0a1f5980fd4a8238..7568e244e2e56c1263068df7f1054f2bc9dd482b 100644 (file)
@@ -57,9 +57,9 @@ else
 
 makerule ./auto.inc
         depends "$(MAINBOARD)/cache_as_ram_auto.c option_table.h"
-        action "$(CC) $(DISTRO_CFLAGS) -I$(TOP)/src -I. $(CPPFLAGS) $(MAINBOARD)/cache_as_ram_auto.c -Os -nostdinc -nostdlib -fno-builtin -Wall -c -S -o $@"
-        action "perl -e 's/.rodata/.rom.data/g' -pi $@"
-        action "perl -e 's/.text/.section .rom.text/g' -pi $@"
+        action "$(CC) $(DISTRO_CFLAGS) -I$(TOP)/src -I. $(CPPFLAGS) $(MAINBOARD)/cache_as_ram_auto.c -Os -nostdinc -nostdlib -fno-builtin -Wall -g -dA -fverbose-asm -c -S -o $@"
+        action "perl -e 's/\.rodata/.rom.data/g' -pi $@"
+        action "perl -e 's/\.text/.section .rom.text/g' -pi $@"
 end
 
 end
index 22562746cd67db20cdb7ebb4af5109d935beb492..13124580b6685a49b8af550b678a1f62c1057fcf 100644 (file)
@@ -58,9 +58,9 @@ else
                 
 makerule ./auto.inc
         depends "$(MAINBOARD)/cache_as_ram_auto.c option_table.h"
-        action "$(CC) $(DISTRO_CFLAGS) -I$(TOP)/src -I. $(CPPFLAGS) $(MAINBOARD)/cache_as_ram_auto.c -Os -nostdinc -nostdlib -fno-builtin -Wall -c -S -o $@"         
-        action "perl -e 's/.rodata/.rom.data/g' -pi $@"
-        action "perl -e 's/.text/.section .rom.text/g' -pi $@"
+        action "$(CC) $(DISTRO_CFLAGS) -I$(TOP)/src -I. $(CPPFLAGS) $(MAINBOARD)/cache_as_ram_auto.c -Os -nostdinc -nostdlib -fno-builtin -Wall -g -dA -fverbose-asm -c -S -o $@"         
+        action "perl -e 's/\.rodata/.rom.data/g' -pi $@"
+        action "perl -e 's/\.text/.section .rom.text/g' -pi $@"
 end
 
 end
index 3803cfa45e459814690f8f10c7c5c559b330523f..0f4a2c05cba9579ec9b70fba75ccd4f407370d1c 100644 (file)
@@ -58,9 +58,9 @@ else
                 
 makerule ./auto.inc
         depends "$(MAINBOARD)/cache_as_ram_auto.c option_table.h"
-        action "$(CC) $(DISTRO_CFLAGS) -I$(TOP)/src -I. $(CPPFLAGS) $(MAINBOARD)/cache_as_ram_auto.c -Os -nostdinc -nostdlib -fno-builtin -Wall -c -S -o $@"         
-        action "perl -e 's/.rodata/.rom.data/g' -pi $@"
-        action "perl -e 's/.text/.section .rom.text/g' -pi $@"
+        action "$(CC) $(DISTRO_CFLAGS) -I$(TOP)/src -I. $(CPPFLAGS) $(MAINBOARD)/cache_as_ram_auto.c -Os -nostdinc -nostdlib -fno-builtin -Wall -g -dA -fverbose-asm -c -S -o $@"         
+        action "perl -e 's/\.rodata/.rom.data/g' -pi $@"
+        action "perl -e 's/\.text/.section .rom.text/g' -pi $@"
 end
 
 end
index ed20ed9bfa2f8f1eef578206bef232cd1e824cc1..1e95411c0853fa0449f1d48efb363ca81964c576 100644 (file)
@@ -58,9 +58,9 @@ else
                 
 makerule ./auto.inc
         depends "$(MAINBOARD)/cache_as_ram_auto.c option_table.h"
-        action "$(CC) $(DISTRO_CFLAGS) -I$(TOP)/src -I. $(CPPFLAGS) $(MAINBOARD)/cache_as_ram_auto.c -Os -nostdinc -nostdlib -fno-builtin -Wall -c -S -o $@"         
-        action "perl -e 's/.rodata/.rom.data/g' -pi $@"
-        action "perl -e 's/.text/.section .rom.text/g' -pi $@"
+        action "$(CC) $(DISTRO_CFLAGS) -I$(TOP)/src -I. $(CPPFLAGS) $(MAINBOARD)/cache_as_ram_auto.c -Os -nostdinc -nostdlib -fno-builtin -Wall -g -dA -fverbose-asm -c -S -o $@"         
+        action "perl -e 's/\.rodata/.rom.data/g' -pi $@"
+        action "perl -e 's/\.text/.section .rom.text/g' -pi $@"
 end
 
 end
index a7227c2f3fb6e6a4a37c033ba6758b507f5ed276..847d46f0f5668f6ffb2239c1fd157ce1270908cd 100644 (file)
@@ -57,9 +57,9 @@ else
                 
 makerule ./auto.inc
         depends "$(MAINBOARD)/cache_as_ram_auto.c option_table.h"
-        action "$(CC) $(DISTRO_CFLAGS) -I$(TOP)/src -I. $(CPPFLAGS) $(MAINBOARD)/cache_as_ram_auto.c -Os -nostdinc -nostdlib -fno-builtin -Wall -c -S -o $@"         
-        action "perl -e 's/.rodata/.rom.data/g' -pi $@"
-        action "perl -e 's/.text/.section .rom.text/g' -pi $@"
+        action "$(CC) $(DISTRO_CFLAGS) -I$(TOP)/src -I. $(CPPFLAGS) $(MAINBOARD)/cache_as_ram_auto.c -Os -nostdinc -nostdlib -fno-builtin -Wall -g -dA -fverbose-asm -c -S -o $@"         
+        action "perl -e 's/\.rodata/.rom.data/g' -pi $@"
+        action "perl -e 's/\.text/.section .rom.text/g' -pi $@"
 end
 
 end
index 7c9d3f6f9d5098c1facd1b2a2ced50cade8cd069..fa966e7f4b87d372f9e45e6943fbf4300616cb4c 100644 (file)
@@ -58,9 +58,9 @@ else
                 
 makerule ./auto.inc
         depends "$(MAINBOARD)/cache_as_ram_auto.c option_table.h"
-        action "$(CC) $(DISTRO_CFLAGS) -I$(TOP)/src -I. $(CPPFLAGS) $(MAINBOARD)/cache_as_ram_auto.c -Os -nostdinc -nostdlib -fno-builtin -Wall -c -S -o $@"         
-        action "perl -e 's/.rodata/.rom.data/g' -pi $@"
-        action "perl -e 's/.text/.section .rom.text/g' -pi $@"
+        action "$(CC) $(DISTRO_CFLAGS) -I$(TOP)/src -I. $(CPPFLAGS) $(MAINBOARD)/cache_as_ram_auto.c -Os -nostdinc -nostdlib -fno-builtin -Wall -g -dA -fverbose-asm -c -S -o $@"         
+        action "perl -e 's/\.rodata/.rom.data/g' -pi $@"
+        action "perl -e 's/\.text/.section .rom.text/g' -pi $@"
 end
 
 end
index 9eff1ce7cce5fb92bf5a64d1c7491eab3abd8b77..536c180ac78538c2ebc6fc8d6715dacf2ea39f1b 100644 (file)
@@ -58,9 +58,9 @@ else
                 
 makerule ./auto.inc
         depends "$(MAINBOARD)/cache_as_ram_auto.c option_table.h"
-        action "$(CC) $(DISTRO_CFLAGS) -I$(TOP)/src -I. $(CPPFLAGS) $(MAINBOARD)/cache_as_ram_auto.c -Os -nostdinc -nostdlib -fno-builtin -Wall -c -S -o $@"         
-        action "perl -e 's/.rodata/.rom.data/g' -pi $@"
-        action "perl -e 's/.text/.section .rom.text/g' -pi $@"
+        action "$(CC) $(DISTRO_CFLAGS) -I$(TOP)/src -I. $(CPPFLAGS) $(MAINBOARD)/cache_as_ram_auto.c -Os -nostdinc -nostdlib -fno-builtin -Wall -g -dA -fverbose-asm -c -S -o $@"         
+        action "perl -e 's/\.rodata/.rom.data/g' -pi $@"
+        action "perl -e 's/\.text/.section .rom.text/g' -pi $@"
 end
 
 end
index 51b764d677139f9ddb8bf035c91e0db83b31de22..f1f4f513d814ce3ab93225322fa339229814747a 100644 (file)
@@ -61,9 +61,9 @@ if CONFIG_USE_INIT
 else
        makerule ./auto.inc
                depends "$(MAINBOARD)/cache_as_ram_auto.c option_table.h"
-               action "$(CC) $(DISTRO_CFLAGS) -I$(TOP)/src -I. $(CPPFLAGS) $(MAINBOARD)/cache_as_ram_auto.c -Os -nostdinc -nostdlib -fno-builtin -Wall -c -S -o $@"
-               action "perl -e 's/.rodata/.rom.data/g' -pi $@"
-               action "perl -e 's/.text/.section .rom.text/g' -pi $@"
+               action "$(CC) $(DISTRO_CFLAGS) -I$(TOP)/src -I. $(CPPFLAGS) $(MAINBOARD)/cache_as_ram_auto.c -Os -nostdinc -nostdlib -fno-builtin -Wall -g -dA -fverbose-asm -c -S -o $@"
+               action "perl -e 's/\.rodata/.rom.data/g' -pi $@"
+               action "perl -e 's/\.text/.section .rom.text/g' -pi $@"
        end
 end
 
index f9cbfd40c6ad82f211db025d211162a22912e6a0..ee614d128722717dc359cabdbd9fbd99242f9e43 100644 (file)
@@ -61,9 +61,9 @@ if CONFIG_USE_INIT
 else
        makerule ./auto.inc
                depends "$(MAINBOARD)/cache_as_ram_auto.c option_table.h"
-               action "$(CC) $(DISTRO_CFLAGS) -I$(TOP)/src -I. $(CPPFLAGS) $(MAINBOARD)/cache_as_ram_auto.c -Os -nostdinc -nostdlib -fno-builtin -Wall -c -S -o $@"
-               action "perl -e 's/.rodata/.rom.data/g' -pi $@"
-               action "perl -e 's/.text/.section .rom.text/g' -pi $@"
+               action "$(CC) $(DISTRO_CFLAGS) -I$(TOP)/src -I. $(CPPFLAGS) $(MAINBOARD)/cache_as_ram_auto.c -Os -nostdinc -nostdlib -fno-builtin -Wall -g -dA -fverbose-asm -c -S -o $@"
+               action "perl -e 's/\.rodata/.rom.data/g' -pi $@"
+               action "perl -e 's/\.text/.section .rom.text/g' -pi $@"
        end
 end
 
index 019dd9be78c2b774a6b604cc45246aab3c2abd48..9603286368722a17d791d9d857a861c22d7071c8 100644 (file)
@@ -70,9 +70,9 @@ if CONFIG_USE_INIT
 else
        makerule ./auto.inc
                depends "$(MAINBOARD)/cache_as_ram_auto.c option_table.h"
-               action "$(CC) $(DISTRO_CFLAGS) -I$(TOP)/src -I. $(CPPFLAGS) $(MAINBOARD)/cache_as_ram_auto.c -Os -nostdinc -nostdlib -fno-builtin -Wall -c -S -o $@"
-               action "perl -e 's/.rodata/.rom.data/g' -pi $@"
-               action "perl -e 's/.text/.section .rom.text/g' -pi $@"
+               action "$(CC) $(DISTRO_CFLAGS) -I$(TOP)/src -I. $(CPPFLAGS) $(MAINBOARD)/cache_as_ram_auto.c -Os -nostdinc -nostdlib -fno-builtin -Wall -g -dA -fverbose-asm -c -S -o $@"
+               action "perl -e 's/\.rodata/.rom.data/g' -pi $@"
+               action "perl -e 's/\.text/.section .rom.text/g' -pi $@"
        end
 end
 
index 1075d4264ba143d4d8987b795e8215b04325296a..151e894763a8899c0287e7fdd590423690723b21 100644 (file)
@@ -91,9 +91,9 @@ if USE_DCACHE_RAM
        else
                makerule ./cache_as_ram_auto.inc
                        depends "$(MAINBOARD)/cache_as_ram_auto.c option_table.h"
-                       action "$(CC) $(DISTRO_CFLAGS) -I$(TOP)/src -I. $(CPPFLAGS) $(MAINBOARD)/cache_as_ram_auto.c -Os -nostdinc -nostdlib -fno-builtin -Wall -c -S -o $@"
-                       action "perl -e 's/.rodata/.rom.data/g' -pi $@"
-                       action "perl -e 's/.text/.section .rom.text/g' -pi $@"
+                       action "$(CC) $(DISTRO_CFLAGS) -I$(TOP)/src -I. $(CPPFLAGS) $(MAINBOARD)/cache_as_ram_auto.c -Os -nostdinc -nostdlib -fno-builtin -Wall -g -dA -fverbose-asm -c -S -o $@"
+                       action "perl -e 's/\.rodata/.rom.data/g' -pi $@"
+                       action "perl -e 's/\.text/.section .rom.text/g' -pi $@"
                end
        end
 
index e82f4bee881ce0e87b8674f7344ff770d934ff08..3a65433b162ab7d059d7a9b23f9849bbb7e8334c 100644 (file)
@@ -92,9 +92,9 @@ if USE_DCACHE_RAM
        else
                makerule ./cache_as_ram_auto.inc
                        depends "$(MAINBOARD)/$(CACHE_AS_RAM_AUTO_C) option_table.h"
-                       action "$(CC) $(DISTRO_CFLAGS) -I$(TOP)/src -I. $(CFLAGS) $(CPPFLAGS) $(MAINBOARD)/$(CACHE_AS_RAM_AUTO_C) -Os -nostdinc -nostdlib -fno-builtin -Wall -c -S -o $@"
-                       action "perl -e 's/.rodata/.rom.data/g' -pi $@"
-                       action "perl -e 's/.text/.section .rom.text/g' -pi $@"
+                       action "$(CC) $(DISTRO_CFLAGS) -I$(TOP)/src -I. $(CFLAGS) $(CPPFLAGS) $(MAINBOARD)/$(CACHE_AS_RAM_AUTO_C) -Os -nostdinc -nostdlib -fno-builtin -g -dA -fverbose-asm -Wall -c -S -o $@"
+                       action "perl -e 's/\.rodata/.rom.data/g' -pi $@"
+                       action "perl -e 's/\.text/.section .rom.text/g' -pi $@"
                end
        end
 
index 020e596a23e9f5ce9db01610c6b380fbc90ce95a..7c2696da21ad07b91412351cf91c5508a8284520 100644 (file)
@@ -56,9 +56,9 @@ if USE_DCACHE_RAM
 
                makerule ./auto.inc
                        depends "$(MAINBOARD)/cache_as_ram_auto.c option_table.h"
-                       action "$(CC) $(DISTRO_CFLAGS) -I$(TOP)/src -I. $(CPPFLAGS) $(MAINBOARD)/cache_as_ram_auto.c -Os -nostdinc -nostdlib -fno-builtin -Wall -c -S -o $@"
-                       action "perl -e 's/.rodata/.rom.data/g' -pi $@"
-                       action "perl -e 's/.text/.section .rom.text/g' -pi $@"
+                       action "$(CC) $(DISTRO_CFLAGS) -I$(TOP)/src -I. $(CPPFLAGS) $(MAINBOARD)/cache_as_ram_auto.c -Os -nostdinc -nostdlib -fno-builtin -Wall -g -dA -fverbose-asm -c -S -o $@"
+                       action "perl -e 's/\.rodata/.rom.data/g' -pi $@"
+                       action "perl -e 's/\.text/.section .rom.text/g' -pi $@"
                        end
        end
 else
index e81e1c90f94d1930d411f9df0fd1304fc3ab4c6f..9617314e702327ec022bf520ec83d22c429c14a9 100644 (file)
@@ -56,9 +56,9 @@ if USE_DCACHE_RAM
 
                makerule ./auto.inc
                        depends "$(MAINBOARD)/cache_as_ram_auto.c option_table.h"
-                       action "$(CC) $(DISTRO_CFLAGS) -I$(TOP)/src -I. $(CPPFLAGS) $(MAINBOARD)/cache_as_ram_auto.c -Os -nostdinc -nostdlib -fno-builtin -Wall -c -S -o $@"
-                       action "perl -e 's/.rodata/.rom.data/g' -pi $@"
-                       action "perl -e 's/.text/.section .rom.text/g' -pi $@"
+                       action "$(CC) $(DISTRO_CFLAGS) -I$(TOP)/src -I. $(CPPFLAGS) $(MAINBOARD)/cache_as_ram_auto.c -Os -nostdinc -nostdlib -fno-builtin -Wall -g -dA -fverbose-asm -c -S -o $@"
+                       action "perl -e 's/\.rodata/.rom.data/g' -pi $@"
+                       action "perl -e 's/\.text/.section .rom.text/g' -pi $@"
                        end
        end
 else