Changeset 379


Ignore:
Timestamp:
04/10/08 15:20:00 (5 years ago)
Author:
GrAnd
Message:
  • Minor changes in Makefiles: consolidation.
Location:
trunk/platform
Files:
1 added
82 edited

Legend:

Unmodified
Added
Removed
  • trunk/platform/a450/sub/100d/Makefile

    r378 r379  
    11topdir=../../../../ 
    22 
    3 include $(topdir)makefile.inc 
     3OBJS=boot.o stubs_min.o stubs_auto.o stubs_entry.o lib.o stubs_entry_2.o capt_seq.o movie_rec.o 
     4STUBS_AUTO_DEPS=boot.c capt_seq.c movie_rec.c 
    45 
    5 CFLAGS+=-DLOW_LEVEL 
    6  
    7 all: libplatformsub.a 
    8  
    9 TARGET_PRIMARY = PRIMARY.BIN 
    10 OBJS=boot.o stubs_min.o stubs_auto.o stubs_entry.o lib.o stubs_entry_2.o capt_seq.o movie_rec.o 
    11  
    12 libplatformsub.a: $(OBJS) 
    13  
    14 clean: 
    15         rm -f $(OBJS) libplatformsub.a stubs_entry.S.err stubs_not_found_names.err 
    16  
    17 distclean: clean 
    18         rm -f stubs_entry.S stubs_auto.S 
    19         rm -rf .dep 
    20  
    21  
    22 stubs_auto.S: boot.c capt_seq.c movie_rec.c 
    23         @echo $< \-\> $@ 
    24 ifeq ($(OSTYPE),Windows) 
    25         cat $^ | \ 
    26             grep 'BL\\?[[:space:]]*sub_[0-9A-Fa-f]' | \ 
    27             sed 's/.*sub_\\([0-9A-Fa-f]*\\).*/\\1/' | \ 
    28             $(SORT) | uniq | \ 
    29             awk 'BEGIN {print "/* THIS FILE IS GENERATED */\n#include \"stubs_asm.h\"\n"} \ 
    30                 {printf("STUB(%s)\n",$$1)}' > stubs_auto.S 
    31 else     
    32         cat $^ | \ 
    33             grep 'BL\?[[:space:]]*sub_[0-9A-Fa-f]' | \ 
    34             sed 's/.*sub_\([0-9A-Fa-f]*\).*/\1/' | \ 
    35             $(SORT) | uniq | \ 
    36             awk 'BEGIN {print "/* THIS FILE IS GENERATED */\n#include \"stubs_asm.h\"\n"} \ 
    37                 {printf("STUB(%s)\n",$$1)}' > stubs_auto.S 
    38 endif 
    39  
    40 stubs_entry.S: $(TARGET_PRIMARY) $(topdir)tools/signatures_$(PLATFORMOS).h 
    41         @echo \-\> $@ 
    42         rm -f stubs_entry.S.err 
    43         if [ -s $(TARGET_PRIMARY) ] ; then \ 
    44           $(topdir)tools/finsig $(TARGET_PRIMARY) $(ROMBASEADDR) > stubs_entry.S ; \ 
    45         else \ 
    46           echo CAUTION! \'stubs_entry.S\' is not uptated due to target firmware binary not found! ; \ 
    47           touch stubs_entry.S ; \ 
    48         fi ; \ 
    49         if [ "X`grep 'ERROR' stubs_entry.S`" != "X" ] ; then \ 
    50           grep "ERROR" stubs_entry.S | sed -r "s/\/\/ ERROR: ([^ ]+) is not found.*/\1/" | $(SORT) | uniq > stubs_nf.names ; \ 
    51           grep -E "NH?STUB" stubs_entry_2.S | sed -r "s/ *NH?STUB\( *([^ ,]+).*/\1/" | $(SORT) | uniq > stubs_mn.names ; \ 
    52           comm -23 stubs_nf.names stubs_mn.names > stubs_not_found_names.err ; \ 
    53           rm -f stubs_nf.names stubs_mn.names ; \ 
    54           if [ -s stubs_not_found_names.err ] ; then \ 
    55             echo ERROR! There are unresolved addresses in \'stubs_entry.S\' \($(PLATFORM)-$(PLATFORMSUB)\) for the following names: ; \ 
    56             cat stubs_not_found_names.err ; \ 
    57             echo Please, add them into \'stubs_entry_2.S\' manually! ; \ 
    58             mv stubs_entry.S stubs_entry.S.err ; \ 
    59             exit 1 ; \ 
    60           fi ; \ 
    61           rm -f stubs_not_found_names.err ; \ 
    62         fi 
    63  
    64 $(TARGET_PRIMARY): 
    65         touch $(TARGET_PRIMARY) 
    66  
    67 include $(topdir)bottom.inc 
     6include $(topdir)/platform/makefile_sub.inc 
  • trunk/platform/a450/sub/100d/stubs_auto.S

    r378 r379  
    11/* THIS FILE IS GENERATED */ 
     2/* DO NOT EDIT THIS FILE! */ 
     3 
    24#include "stubs_asm.h" 
    35 
  • trunk/platform/a460/sub/100d/Makefile

    r309 r379  
    11topdir=../../../../ 
    22 
    3 include $(topdir)makefile.inc 
     3OBJS=boot.o stubs_min.o stubs_auto.o stubs_entry.o lib.o stubs_entry_2.o capt_seq.o movie_rec.o 
     4STUBS_AUTO_DEPS=boot.c capt_seq.c movie_rec.c 
    45 
    5 CFLAGS+=-DLOW_LEVEL 
    6  
    7 all: libplatformsub.a 
    8  
    9 TARGET_PRIMARY = PRIMARY.BIN 
    10 OBJS=boot.o stubs_min.o stubs_auto.o stubs_entry.o lib.o stubs_entry_2.o capt_seq.o movie_rec.o 
    11  
    12 libplatformsub.a: $(OBJS) 
    13  
    14 clean: 
    15         rm -f $(OBJS) libplatformsub.a stubs_entry.S.err stubs_not_found_names.err 
    16  
    17 distclean: clean 
    18         rm -f stubs_entry.S stubs_auto.S 
    19         rm -rf .dep 
    20  
    21  
    22 stubs_auto.S: boot.c capt_seq.c movie_rec.c 
    23         @echo $< \-\> $@ 
    24 ifeq ($(OSTYPE),Windows) 
    25         cat $^ | \ 
    26             grep 'BL\\?[[:space:]]*sub_[0-9A-Fa-f]' | \ 
    27             sed 's/.*sub_\\([0-9A-Fa-f]*\\).*/\\1/' | \ 
    28             $(SORT) | uniq | \ 
    29             awk 'BEGIN {print "/* THIS FILE IS GENERATED */\n#include \"stubs_asm.h\"\n"} \ 
    30                 {printf("STUB(%s)\n",$$1)}' > stubs_auto.S 
    31 else     
    32         cat $^ | \ 
    33             grep 'BL\?[[:space:]]*sub_[0-9A-Fa-f]' | \ 
    34             sed 's/.*sub_\([0-9A-Fa-f]*\).*/\1/' | \ 
    35             $(SORT) | uniq | \ 
    36             awk 'BEGIN {print "/* THIS FILE IS GENERATED */\n#include \"stubs_asm.h\"\n"} \ 
    37                 {printf("STUB(%s)\n",$$1)}' > stubs_auto.S 
    38 endif 
    39  
    40 stubs_entry.S: $(TARGET_PRIMARY) $(topdir)tools/signatures_$(PLATFORMOS).h 
    41         @echo \-\> $@ 
    42         rm -f stubs_entry.S.err 
    43         if [ -s $(TARGET_PRIMARY) ] ; then \ 
    44           $(topdir)tools/finsig $(TARGET_PRIMARY) $(ROMBASEADDR) > stubs_entry.S ; \ 
    45         else \ 
    46           echo CAUTION! \'stubs_entry.S\' is not uptated due to target firmware binary not found! ; \ 
    47           touch stubs_entry.S ; \ 
    48         fi ; \ 
    49         if [ "X`grep 'ERROR' stubs_entry.S`" != "X" ] ; then \ 
    50           grep "ERROR" stubs_entry.S | sed -r "s/\/\/ ERROR: ([^ ]+) is not found.*/\1/" | $(SORT) | uniq > stubs_nf.names ; \ 
    51           grep -E "NH?STUB" stubs_entry_2.S | sed -r "s/ *NH?STUB\( *([^ ,]+).*/\1/" | $(SORT) | uniq > stubs_mn.names ; \ 
    52           comm -23 stubs_nf.names stubs_mn.names > stubs_not_found_names.err ; \ 
    53           rm -f stubs_nf.names stubs_mn.names ; \ 
    54           if [ -s stubs_not_found_names.err ] ; then \ 
    55             echo ERROR! There are unresolved addresses in \'stubs_entry.S\' \($(PLATFORM)-$(PLATFORMSUB)\) for the following names: ; \ 
    56             cat stubs_not_found_names.err ; \ 
    57             echo Please, add them into \'stubs_entry_2.S\' manually! ; \ 
    58             mv stubs_entry.S stubs_entry.S.err ; \ 
    59             exit 1 ; \ 
    60           fi ; \ 
    61           rm -f stubs_not_found_names.err ; \ 
    62         fi 
    63  
    64 $(TARGET_PRIMARY): 
    65         touch $(TARGET_PRIMARY) 
    66  
    67 include $(topdir)bottom.inc 
     6include $(topdir)/platform/makefile_sub.inc 
  • trunk/platform/a460/sub/100d/stubs_auto.S

    r309 r379  
    11/* THIS FILE IS GENERATED */ 
     2/* DO NOT EDIT THIS FILE! */ 
     3 
    24#include "stubs_asm.h" 
    35 
  • trunk/platform/a530/sub/100a/Makefile

    r336 r379  
    11topdir=../../../../ 
    22 
    3 include $(topdir)makefile.inc 
     3OBJS=boot.o stubs_min.o stubs_auto.o stubs_entry.o lib.o stubs_entry_2.o capt_seq.o movie_rec.o 
     4STUBS_AUTO_DEPS=boot.c capt_seq.c movie_rec.c 
    45 
    5 CFLAGS+=-DLOW_LEVEL 
    6  
    7 all: libplatformsub.a 
    8  
    9 TARGET_PRIMARY = PRIMARY.BIN 
    10 OBJS=boot.o stubs_min.o stubs_auto.o stubs_entry.o lib.o stubs_entry_2.o capt_seq.o movie_rec.o 
    11  
    12 libplatformsub.a: $(OBJS) 
    13  
    14 clean: 
    15         rm -f $(OBJS) libplatformsub.a stubs_entry.S.err stubs_not_found_names.err 
    16  
    17 distclean: clean 
    18         rm -f stubs_entry.S stubs_auto.S 
    19         rm -rf .dep 
    20  
    21  
    22 stubs_auto.S: boot.c capt_seq.c movie_rec.c 
    23         @echo $< \-\> $@ 
    24 ifeq ($(OSTYPE),Windows) 
    25         cat $^ | \ 
    26             grep 'BL\\?[[:space:]]*sub_[0-9A-Fa-f]' | \ 
    27             sed 's/.*sub_\\([0-9A-Fa-f]*\\).*/\\1/' | \ 
    28             $(SORT) | uniq | \ 
    29             awk 'BEGIN {print "/* THIS FILE IS GENERATED */\n#include \"stubs_asm.h\"\n"} \ 
    30                 {printf("STUB(%s)\n",$$1)}' > stubs_auto.S 
    31 else     
    32         cat $^ | \ 
    33             grep 'BL\?[[:space:]]*sub_[0-9A-Fa-f]' | \ 
    34             sed 's/.*sub_\([0-9A-Fa-f]*\).*/\1/' | \ 
    35             $(SORT) | uniq | \ 
    36             awk 'BEGIN {print "/* THIS FILE IS GENERATED */\n#include \"stubs_asm.h\"\n"} \ 
    37                 {printf("STUB(%s)\n",$$1)}' > stubs_auto.S 
    38 endif 
    39  
    40 stubs_entry.S: $(TARGET_PRIMARY) $(topdir)tools/signatures_$(PLATFORMOS).h 
    41         @echo \-\> $@ 
    42         rm -f stubs_entry.S.err 
    43         if [ -s $(TARGET_PRIMARY) ] ; then \ 
    44           $(topdir)tools/finsig $(TARGET_PRIMARY) $(ROMBASEADDR) > stubs_entry.S ; \ 
    45         else \ 
    46           echo CAUTION! \'stubs_entry.S\' is not uptated due to target firmware binary not found! ; \ 
    47           touch stubs_entry.S ; \ 
    48         fi ; \ 
    49         if [ "X`grep 'ERROR' stubs_entry.S`" != "X" ] ; then \ 
    50           grep "ERROR" stubs_entry.S | sed -r "s/\/\/ ERROR: ([^ ]+) is not found.*/\1/" | $(SORT) | uniq > stubs_nf.names ; \ 
    51           grep -E "NH?STUB" stubs_entry_2.S | sed -r "s/ *NH?STUB\( *([^ ,]+).*/\1/" | $(SORT) | uniq > stubs_mn.names ; \ 
    52           comm -23 stubs_nf.names stubs_mn.names > stubs_not_found_names.err ; \ 
    53           rm -f stubs_nf.names stubs_mn.names ; \ 
    54           if [ -s stubs_not_found_names.err ] ; then \ 
    55             echo ERROR! There are unresolved addresses in \'stubs_entry.S\' \($(PLATFORM)-$(PLATFORMSUB)\) for the following names: ; \ 
    56             cat stubs_not_found_names.err ; \ 
    57             echo Please, add them into \'stubs_entry_2.S\' manually! ; \ 
    58             mv stubs_entry.S stubs_entry.S.err ; \ 
    59             exit 1 ; \ 
    60           fi ; \ 
    61           rm -f stubs_not_found_names.err ; \ 
    62         fi 
    63  
    64 $(TARGET_PRIMARY): 
    65         touch $(TARGET_PRIMARY) 
    66  
    67 include $(topdir)bottom.inc 
     6include $(topdir)/platform/makefile_sub.inc 
  • trunk/platform/a530/sub/100a/stubs_auto.S

    r336 r379  
    11/* THIS FILE IS GENERATED */ 
     2/* DO NOT EDIT THIS FILE! */ 
     3 
    24#include "stubs_asm.h" 
    35 
     
    2527STUB(FFC84E9C) 
    2628STUB(FFC8C01C) 
     29STUB(FFD2A338) 
    2730STUB(FFD2A3C4) 
    2831STUB(FFD2A3C8) 
     
    3134STUB(FFD2A628) 
    3235STUB(FFD2A9FC) 
     36STUB(FFD2AA78) 
     37STUB(FFD2AA8C) 
     38STUB(FFD2AB00) 
    3339STUB(FFD2AB18) 
     40STUB(FFD2AB24) 
     41STUB(FFD2AB98) 
    3442STUB(FFD2AB9C) 
     43STUB(FFD2ABB4) 
    3544STUB(FFD2ABC0) 
    3645STUB(FFD2AC0C) 
     
    4352STUB(FFD2B164) 
    4453STUB(FFD2B4C0) 
     54STUB(FFD2B508) 
    4555STUB(FFD2B50C) 
     56STUB(FFD2B51C) 
     57STUB(FFD2B574) 
     58STUB(FFD2B580) 
     59STUB(FFD2B5B0) 
    4660STUB(FFD2B5B8) 
    4761STUB(FFD2B5D4) 
    4862STUB(FFD2C0D0) 
     63STUB(FFD2C198) 
     64STUB(FFD2C1A0) 
     65STUB(FFD2C1A4) 
     66STUB(FFD2C1F0) 
    4967STUB(FFD2C1F8) 
     68STUB(FFD2C228) 
     69STUB(FFD2C2F0) 
     70STUB(FFD2C32C) 
    5071STUB(FFD2C338) 
     72STUB(FFD2C38C) 
    5173STUB(FFD2C3A8) 
     74STUB(FFD2C3D4) 
     75STUB(FFD2C408) 
     76STUB(FFD2C43C) 
     77STUB(FFD2C444) 
     78STUB(FFD2C48C) 
     79STUB(FFD2C4B0) 
     80STUB(FFD2C4FC) 
     81STUB(FFD2C520) 
     82STUB(FFD2C570) 
     83STUB(FFD2C5AC) 
    5284STUB(FFD2C5B4) 
    5385STUB(FFD2C5B8) 
     
    5890STUB(FFD3450C) 
    5991STUB(FFD34704) 
     92STUB(FFD3471C) 
     93STUB(FFD34744) 
     94STUB(FFD34760) 
    6095STUB(FFD34810) 
    6196STUB(FFD356C0) 
  • trunk/platform/a540/sub/100b/Makefile

    r301 r379  
    11topdir=../../../../ 
    22 
    3 include $(topdir)makefile.inc 
     3OBJS=boot.o stubs_min.o stubs_auto.o stubs_entry.o lib.o stubs_entry_2.o capt_seq.o movie_rec.o 
     4STUBS_AUTO_DEPS=boot.c capt_seq.c movie_rec.c 
    45 
    5 CFLAGS+=-DLOW_LEVEL 
    6  
    7 all: libplatformsub.a 
    8  
    9 TARGET_PRIMARY = PRIMARY.BIN 
    10 OBJS=boot.o stubs_min.o stubs_auto.o stubs_entry.o lib.o stubs_entry_2.o capt_seq.o movie_rec.o 
    11  
    12 libplatformsub.a: $(OBJS) 
    13  
    14 clean: 
    15         rm -f $(OBJS) libplatformsub.a stubs_entry.S.err stubs_not_found_names.err 
    16  
    17 distclean: clean 
    18         rm -f stubs_entry.S stubs_auto.S 
    19         rm -rf .dep 
    20  
    21  
    22 stubs_auto.S: boot.c capt_seq.c movie_rec.c 
    23         @echo $< \-\> $@ 
    24 ifeq ($(OSTYPE),Windows) 
    25         cat $^ | \ 
    26             grep 'BL\\?[[:space:]]*sub_[0-9A-Fa-f]' | \ 
    27             sed 's/.*sub_\\([0-9A-Fa-f]*\\).*/\\1/' | \ 
    28             $(SORT) | uniq | \ 
    29             awk 'BEGIN {print "/* THIS FILE IS GENERATED */\n#include \"stubs_asm.h\"\n"} \ 
    30                 {printf("STUB(%s)\n",$$1)}' > stubs_auto.S 
    31 else     
    32         cat $^ | \ 
    33             grep 'BL\?[[:space:]]*sub_[0-9A-Fa-f]' | \ 
    34             sed 's/.*sub_\([0-9A-Fa-f]*\).*/\1/' | \ 
    35             $(SORT) | uniq | \ 
    36             awk 'BEGIN {print "/* THIS FILE IS GENERATED */\n#include \"stubs_asm.h\"\n"} \ 
    37                 {printf("STUB(%s)\n",$$1)}' > stubs_auto.S 
    38 endif 
    39  
    40 stubs_entry.S: $(TARGET_PRIMARY) $(topdir)tools/signatures_$(PLATFORMOS).h 
    41         @echo \-\> $@ 
    42         rm -f stubs_entry.S.err 
    43         if [ -s $(TARGET_PRIMARY) ] ; then \ 
    44           $(topdir)tools/finsig $(TARGET_PRIMARY) $(ROMBASEADDR) > stubs_entry.S ; \ 
    45         else \ 
    46           echo CAUTION! \'stubs_entry.S\' is not uptated due to target firmware binary not found! ; \ 
    47           touch stubs_entry.S ; \ 
    48         fi ; \ 
    49         if [ "X`grep 'ERROR' stubs_entry.S`" != "X" ] ; then \ 
    50           grep "ERROR" stubs_entry.S | sed -r "s/\/\/ ERROR: ([^ ]+) is not found.*/\1/" | $(SORT) | uniq > stubs_nf.names ; \ 
    51           grep -E "NH?STUB" stubs_entry_2.S | sed -r "s/ *NH?STUB\( *([^ ,]+).*/\1/" | $(SORT) | uniq > stubs_mn.names ; \ 
    52           comm -23 stubs_nf.names stubs_mn.names > stubs_not_found_names.err ; \ 
    53           rm -f stubs_nf.names stubs_mn.names ; \ 
    54           if [ -s stubs_not_found_names.err ] ; then \ 
    55             echo ERROR! There are unresolved addresses in \'stubs_entry.S\' \($(PLATFORM)-$(PLATFORMSUB)\) for the following names: ; \ 
    56             cat stubs_not_found_names.err ; \ 
    57             echo Please, add them into \'stubs_entry_2.S\' manually! ; \ 
    58             mv stubs_entry.S stubs_entry.S.err ; \ 
    59             exit 1 ; \ 
    60           fi ; \ 
    61           rm -f stubs_not_found_names.err ; \ 
    62         fi 
    63  
    64 $(TARGET_PRIMARY): 
    65         touch $(TARGET_PRIMARY) 
    66  
    67 include $(topdir)bottom.inc 
     6include $(topdir)/platform/makefile_sub.inc 
  • trunk/platform/a540/sub/100b/stubs_auto.S

    r352 r379  
    11/* THIS FILE IS GENERATED */ 
     2/* DO NOT EDIT THIS FILE! */ 
     3 
    24#include "stubs_asm.h" 
    35 
  • trunk/platform/a550/sub/100c/Makefile

    r323 r379  
    11topdir=../../../../ 
    22 
    3 include $(topdir)makefile.inc 
     3OBJS=boot.o stubs_min.o stubs_auto.o stubs_entry.o lib.o stubs_entry_2.o capt_seq.o movie_rec.o mount.o 
     4STUBS_AUTO_DEPS=boot.c capt_seq.c movie_rec.c mount.c 
    45 
    5 CFLAGS+=-DLOW_LEVEL 
    6  
    7 all: libplatformsub.a 
    8  
    9 TARGET_PRIMARY = PRIMARY.BIN 
    10 OBJS=boot.o stubs_min.o stubs_auto.o stubs_entry.o lib.o stubs_entry_2.o capt_seq.o movie_rec.o mount.o 
    11  
    12 libplatformsub.a: $(OBJS) 
    13  
    14 clean: 
    15         rm -f $(OBJS) libplatformsub.a stubs_entry.S.err stubs_not_found_names.err 
    16  
    17 distclean: clean 
    18         rm -f stubs_entry.S stubs_auto.S 
    19         rm -rf .dep 
    20  
    21  
    22 stubs_auto.S: boot.c capt_seq.c movie_rec.c mount.c 
    23         @echo $< \-\> $@ 
    24 ifeq ($(OSTYPE),Windows) 
    25         cat $^ | \ 
    26             grep 'BL\\?[[:space:]]*sub_[0-9A-Fa-f]' | \ 
    27             sed 's/.*sub_\\([0-9A-Fa-f]*\\).*/\\1/' | \ 
    28             $(SORT) | uniq | \ 
    29             awk 'BEGIN {print "/* THIS FILE IS GENERATED */\n#include \"stubs_asm.h\"\n"} \ 
    30                 {printf("STUB(%s)\n",$$1)}' > stubs_auto.S 
    31 else     
    32         cat $^ | \ 
    33             grep 'BL\?[[:space:]]*sub_[0-9A-Fa-f]' | \ 
    34             sed 's/.*sub_\([0-9A-Fa-f]*\).*/\1/' | \ 
    35             $(SORT) | uniq | \ 
    36             awk 'BEGIN {print "/* THIS FILE IS GENERATED */\n#include \"stubs_asm.h\"\n"} \ 
    37                 {printf("STUB(%s)\n",$$1)}' > stubs_auto.S 
    38 endif 
    39  
    40 stubs_entry.S: $(TARGET_PRIMARY) $(topdir)tools/signatures_$(PLATFORMOS).h 
    41         @echo \-\> $@ 
    42         rm -f stubs_entry.S.err 
    43         if [ -s $(TARGET_PRIMARY) ] ; then \ 
    44           $(topdir)tools/finsig $(TARGET_PRIMARY) $(ROMBASEADDR) > stubs_entry.S ; \ 
    45         else \ 
    46           echo CAUTION! \'stubs_entry.S\' is not uptated due to target firmware binary not found! ; \ 
    47           touch stubs_entry.S ; \ 
    48         fi ; \ 
    49         if [ "X`grep 'ERROR' stubs_entry.S`" != "X" ] ; then \ 
    50           grep "ERROR" stubs_entry.S | sed -r "s/\/\/ ERROR: ([^ ]+) is not found.*/\1/" | $(SORT) | uniq > stubs_nf.names ; \ 
    51           grep -E "NH?STUB" stubs_entry_2.S | sed -r "s/ *NH?STUB\( *([^ ,]+).*/\1/" | $(SORT) | uniq > stubs_mn.names ; \ 
    52           comm -23 stubs_nf.names stubs_mn.names > stubs_not_found_names.err ; \ 
    53           rm -f stubs_nf.names stubs_mn.names ; \ 
    54           if [ -s stubs_not_found_names.err ] ; then \ 
    55             echo ERROR! There are unresolved addresses in \'stubs_entry.S\' \($(PLATFORM)-$(PLATFORMSUB)\) for the following names: ; \ 
    56             cat stubs_not_found_names.err ; \ 
    57             echo Please, add them into \'stubs_entry_2.S\' manually! ; \ 
    58             mv stubs_entry.S stubs_entry.S.err ; \ 
    59             exit 1 ; \ 
    60           fi ; \ 
    61           rm -f stubs_not_found_names.err ; \ 
    62         fi 
    63  
    64 $(TARGET_PRIMARY): 
    65         touch $(TARGET_PRIMARY) 
    66  
    67 include $(topdir)bottom.inc 
     6include $(topdir)/platform/makefile_sub.inc 
  • trunk/platform/a550/sub/100c/stubs_auto.S

    r336 r379  
    11/* THIS FILE IS GENERATED */ 
     2/* DO NOT EDIT THIS FILE! */ 
     3 
    24#include "stubs_asm.h" 
    35 
  • trunk/platform/a560/sub/100a/Makefile

    r311 r379  
    11topdir=../../../../ 
    22 
    3 include $(topdir)makefile.inc 
     3OBJS=boot.o stubs_min.o stubs_auto.o stubs_entry.o lib.o stubs_entry_2.o capt_seq.o movie_rec.o mount.o 
     4STUBS_AUTO_DEPS=boot.c capt_seq.c movie_rec.c mount.c 
    45 
    5 CFLAGS+=-DLOW_LEVEL 
    6  
    7 all: libplatformsub.a 
    8  
    9 TARGET_PRIMARY = PRIMARY.BIN 
    10 OBJS=boot.o stubs_min.o stubs_auto.o stubs_entry.o lib.o stubs_entry_2.o capt_seq.o movie_rec.o mount.o 
    11  
    12 libplatformsub.a: $(OBJS) 
    13  
    14 clean: 
    15         rm -f $(OBJS) libplatformsub.a stubs_entry.S.err stubs_not_found_names.err 
    16  
    17 distclean: clean 
    18         rm -f stubs_entry.S stubs_auto.S 
    19         rm -rf .dep 
    20  
    21  
    22 stubs_auto.S: boot.c capt_seq.c movie_rec.c mount.c 
    23         @echo $< \-\> $@ 
    24 ifeq ($(OSTYPE),Windows) 
    25         cat $^ | \ 
    26             grep 'BL\\?[[:space:]]*sub_[0-9A-Fa-f]' | \ 
    27             sed 's/.*sub_\\([0-9A-Fa-f]*\\).*/\\1/' | \ 
    28             $(SORT) | uniq | \ 
    29             awk 'BEGIN {print "/* THIS FILE IS GENERATED */\n#include \"stubs_asm.h\"\n"} \ 
    30                 {printf("STUB(%s)\n",$$1)}' > stubs_auto.S 
    31 else     
    32         cat $^ | \ 
    33             grep 'BL\?[[:space:]]*sub_[0-9A-Fa-f]' | \ 
    34             sed 's/.*sub_\([0-9A-Fa-f]*\).*/\1/' | \ 
    35             $(SORT) | uniq | \ 
    36             awk 'BEGIN {print "/* THIS FILE IS GENERATED */\n#include \"stubs_asm.h\"\n"} \ 
    37                 {printf("STUB(%s)\n",$$1)}' > stubs_auto.S 
    38 endif 
    39  
    40 stubs_entry.S: $(TARGET_PRIMARY) $(topdir)tools/signatures_$(PLATFORMOS).h 
    41         @echo \-\> $@ 
    42         rm -f stubs_entry.S.err 
    43         if [ -s $(TARGET_PRIMARY) ] ; then \ 
    44           $(topdir)tools/finsig $(TARGET_PRIMARY) $(ROMBASEADDR) > stubs_entry.S ; \ 
    45         else \ 
    46           echo CAUTION! \'stubs_entry.S\' is not uptated due to target firmware binary not found! ; \ 
    47           touch stubs_entry.S ; \ 
    48         fi ; \ 
    49         if [ "X`grep 'ERROR' stubs_entry.S`" != "X" ] ; then \ 
    50           grep "ERROR" stubs_entry.S | sed -r "s/\/\/ ERROR: ([^ ]+) is not found.*/\1/" | $(SORT) | uniq > stubs_nf.names ; \ 
    51           grep -E "NH?STUB" stubs_entry_2.S | sed -r "s/ *NH?STUB\( *([^ ,]+).*/\1/" | $(SORT) | uniq > stubs_mn.names ; \ 
    52           comm -23 stubs_nf.names stubs_mn.names > stubs_not_found_names.err ; \ 
    53           rm -f stubs_nf.names stubs_mn.names ; \ 
    54           if [ -s stubs_not_found_names.err ] ; then \ 
    55             echo ERROR! There are unresolved addresses in \'stubs_entry.S\' \($(PLATFORM)-$(PLATFORMSUB)\) for the following names: ; \ 
    56             cat stubs_not_found_names.err ; \ 
    57             echo Please, add them into \'stubs_entry_2.S\' manually! ; \ 
    58             mv stubs_entry.S stubs_entry.S.err ; \ 
    59             exit 1 ; \ 
    60           fi ; \ 
    61           rm -f stubs_not_found_names.err ; \ 
    62         fi 
    63  
    64 $(TARGET_PRIMARY): 
    65         touch $(TARGET_PRIMARY) 
    66  
    67 include $(topdir)bottom.inc 
     6include $(topdir)/platform/makefile_sub.inc 
  • trunk/platform/a560/sub/100a/stubs_auto.S

    r311 r379  
    11/* THIS FILE IS GENERATED */ 
     2/* DO NOT EDIT THIS FILE! */ 
     3 
    24#include "stubs_asm.h" 
    35 
  • trunk/platform/a570/sub/100e/Makefile

    r311 r379  
    11topdir=../../../../ 
    22 
    3 include $(topdir)makefile.inc 
     3OBJS=boot.o stubs_min.o stubs_auto.o stubs_entry.o lib.o stubs_entry_2.o capt_seq.o movie_rec.o mount.o 
     4STUBS_AUTO_DEPS=boot.c capt_seq.c movie_rec.c mount.c 
    45 
    5 CFLAGS+=-DLOW_LEVEL 
    6  
    7 all: libplatformsub.a 
    8  
    9 TARGET_PRIMARY = PRIMARY.BIN 
    10 OBJS=boot.o stubs_min.o stubs_auto.o stubs_entry.o lib.o stubs_entry_2.o capt_seq.o movie_rec.o mount.o 
    11  
    12 libplatformsub.a: $(OBJS) 
    13  
    14 clean: 
    15         rm -f $(OBJS) libplatformsub.a stubs_entry.S.err stubs_not_found_names.err 
    16  
    17 distclean: clean 
    18         rm -f stubs_entry.S stubs_auto.S 
    19         rm -rf .dep 
    20  
    21  
    22 stubs_auto.S: boot.c capt_seq.c movie_rec.c mount.c 
    23         @echo $< \-\> $@ 
    24 ifeq ($(OSTYPE),Windows) 
    25         cat $^ | \ 
    26             grep 'BL\\?[[:space:]]*sub_[0-9A-Fa-f]' | \ 
    27             sed 's/.*sub_\\([0-9A-Fa-f]*\\).*/\\1/' | \ 
    28             $(SORT) | uniq | \ 
    29             awk 'BEGIN {print "/* THIS FILE IS GENERATED */\n#include \"stubs_asm.h\"\n"} \ 
    30                 {printf("STUB(%s)\n",$$1)}' > stubs_auto.S 
    31 else     
    32         cat $^ | \ 
    33             grep 'BL\?[[:space:]]*sub_[0-9A-Fa-f]' | \ 
    34             sed 's/.*sub_\([0-9A-Fa-f]*\).*/\1/' | \ 
    35             $(SORT) | uniq | \ 
    36             awk 'BEGIN {print "/* THIS FILE IS GENERATED */\n#include \"stubs_asm.h\"\n"} \ 
    37                 {printf("STUB(%s)\n",$$1)}' > stubs_auto.S 
    38 endif 
    39  
    40 stubs_entry.S: $(TARGET_PRIMARY) $(topdir)tools/signatures_$(PLATFORMOS).h 
    41         @echo \-\> $@ 
    42         rm -f stubs_entry.S.err 
    43         if [ -s $(TARGET_PRIMARY) ] ; then \ 
    44           $(topdir)tools/finsig $(TARGET_PRIMARY) $(ROMBASEADDR) > stubs_entry.S ; \ 
    45         else \ 
    46           echo CAUTION! \'stubs_entry.S\' is not uptated due to target firmware binary not found! ; \ 
    47           touch stubs_entry.S ; \ 
    48         fi ; \ 
    49         if [ "X`grep 'ERROR' stubs_entry.S`" != "X" ] ; then \ 
    50           grep "ERROR" stubs_entry.S | sed -r "s/\/\/ ERROR: ([^ ]+) is not found.*/\1/" | $(SORT) | uniq > stubs_nf.names ; \ 
    51           grep -E "NH?STUB" stubs_entry_2.S | sed -r "s/ *NH?STUB\( *([^ ,]+).*/\1/" | $(SORT) | uniq > stubs_mn.names ; \ 
    52           comm -23 stubs_nf.names stubs_mn.names > stubs_not_found_names.err ; \ 
    53           rm -f stubs_nf.names stubs_mn.names ; \ 
    54           if [ -s stubs_not_found_names.err ] ; then \ 
    55             echo ERROR! There are unresolved addresses in \'stubs_entry.S\' \($(PLATFORM)-$(PLATFORMSUB)\) for the following names: ; \ 
    56             cat stubs_not_found_names.err ; \ 
    57             echo Please, add them into \'stubs_entry_2.S\' manually! ; \ 
    58             mv stubs_entry.S stubs_entry.S.err ; \ 
    59             exit 1 ; \ 
    60           fi ; \ 
    61           rm -f stubs_not_found_names.err ; \ 
    62         fi 
    63  
    64 $(TARGET_PRIMARY): 
    65         touch $(TARGET_PRIMARY) 
    66  
    67 include $(topdir)bottom.inc 
     6include $(topdir)/platform/makefile_sub.inc 
  • trunk/platform/a570/sub/100e/stubs_auto.S

    r311 r379  
    11/* THIS FILE IS GENERATED */ 
     2/* DO NOT EDIT THIS FILE! */ 
     3 
    24#include "stubs_asm.h" 
    35 
  • trunk/platform/a570/sub/101a/Makefile

    r311 r379  
    11topdir=../../../../ 
    22 
    3 include $(topdir)makefile.inc 
     3OBJS=boot.o stubs_min.o stubs_auto.o stubs_entry.o lib.o stubs_entry_2.o capt_seq.o movie_rec.o mount.o 
     4STUBS_AUTO_DEPS=boot.c capt_seq.c movie_rec.c mount.c 
    45 
    5 CFLAGS+=-DLOW_LEVEL 
    6  
    7 all: libplatformsub.a 
    8  
    9 TARGET_PRIMARY = PRIMARY.BIN 
    10 OBJS=boot.o stubs_min.o stubs_auto.o stubs_entry.o lib.o stubs_entry_2.o capt_seq.o movie_rec.o mount.o 
    11  
    12 libplatformsub.a: $(OBJS) 
    13  
    14 clean: 
    15         rm -f $(OBJS) libplatformsub.a stubs_entry.S.err stubs_not_found_names.err 
    16  
    17 distclean: clean 
    18         rm -f stubs_entry.S stubs_auto.S 
    19         rm -rf .dep 
    20  
    21  
    22 stubs_auto.S: boot.c capt_seq.c movie_rec.c mount.c 
    23         @echo $< \-\> $@ 
    24 ifeq ($(OSTYPE),Windows) 
    25         cat $^ | \ 
    26             grep 'BL\\?[[:space:]]*sub_[0-9A-Fa-f]' | \ 
    27             sed 's/.*sub_\\([0-9A-Fa-f]*\\).*/\\1/' | \ 
    28             $(SORT) | uniq | \ 
    29             awk 'BEGIN {print "/* THIS FILE IS GENERATED */\n#include \"stubs_asm.h\"\n"} \ 
    30                 {printf("STUB(%s)\n",$$1)}' > stubs_auto.S 
    31 else     
    32         cat $^ | \ 
    33             grep 'BL\?[[:space:]]*sub_[0-9A-Fa-f]' | \ 
    34             sed 's/.*sub_\([0-9A-Fa-f]*\).*/\1/' | \ 
    35             $(SORT) | uniq | \ 
    36             awk 'BEGIN {print "/* THIS FILE IS GENERATED */\n#include \"stubs_asm.h\"\n"} \ 
    37                 {printf("STUB(%s)\n",$$1)}' > stubs_auto.S 
    38 endif 
    39  
    40 stubs_entry.S: $(TARGET_PRIMARY) $(topdir)tools/signatures_$(PLATFORMOS).h 
    41         @echo \-\> $@ 
    42         rm -f stubs_entry.S.err 
    43         if [ -s $(TARGET_PRIMARY) ] ; then \ 
    44           $(topdir)tools/finsig $(TARGET_PRIMARY) $(ROMBASEADDR) > stubs_entry.S ; \ 
    45         else \ 
    46           echo CAUTION! \'stubs_entry.S\' is not uptated due to target firmware binary not found! ; \ 
    47           touch stubs_entry.S ; \ 
    48         fi ; \ 
    49         if [ "X`grep 'ERROR' stubs_entry.S`" != "X" ] ; then \ 
    50           grep "ERROR" stubs_entry.S | sed -r "s/\/\/ ERROR: ([^ ]+) is not found.*/\1/" | $(SORT) | uniq > stubs_nf.names ; \ 
    51           grep -E "NH?STUB" stubs_entry_2.S | sed -r "s/ *NH?STUB\( *([^ ,]+).*/\1/" | $(SORT) | uniq > stubs_mn.names ; \ 
    52           comm -23 stubs_nf.names stubs_mn.names > stubs_not_found_names.err ; \ 
    53           rm -f stubs_nf.names stubs_mn.names ; \ 
    54           if [ -s stubs_not_found_names.err ] ; then \ 
    55             echo ERROR! There are unresolved addresses in \'stubs_entry.S\' \($(PLATFORM)-$(PLATFORMSUB)\) for the following names: ; \ 
    56             cat stubs_not_found_names.err ; \ 
    57             echo Please, add them into \'stubs_entry_2.S\' manually! ; \ 
    58             mv stubs_entry.S stubs_entry.S.err ; \ 
    59             exit 1 ; \ 
    60           fi ; \ 
    61           rm -f stubs_not_found_names.err ; \ 
    62         fi 
    63  
    64 $(TARGET_PRIMARY): 
    65         touch $(TARGET_PRIMARY) 
    66  
    67 include $(topdir)bottom.inc 
     6include $(topdir)/platform/makefile_sub.inc 
  • trunk/platform/a570/sub/101a/stubs_auto.S

    r311 r379  
    11/* THIS FILE IS GENERATED */ 
     2/* DO NOT EDIT THIS FILE! */ 
     3 
    24#include "stubs_asm.h" 
    35 
  • trunk/platform/a610/sub/100e/Makefile

    r301 r379  
    11topdir=../../../../ 
    22 
    3 include $(topdir)makefile.inc 
     3OBJS=boot.o stubs_min.o stubs_auto.o stubs_entry.o lib.o stubs_entry_2.o capt_seq.o movie_rec.o 
     4STUBS_AUTO_DEPS=boot.c capt_seq.c movie_rec.c 
    45 
    5 CFLAGS+=-DLOW_LEVEL 
    6  
    7 all: libplatformsub.a 
    8  
    9 TARGET_PRIMARY = PRIMARY.BIN 
    10 OBJS=boot.o stubs_min.o stubs_auto.o stubs_entry.o lib.o stubs_entry_2.o capt_seq.o movie_rec.o 
    11  
    12 libplatformsub.a: $(OBJS) 
    13  
    14 clean: 
    15         rm -f $(OBJS) libplatformsub.a stubs_entry.S.err stubs_not_found_names.err 
    16  
    17 distclean: clean 
    18         rm -f stubs_entry.S stubs_auto.S 
    19         rm -rf .dep 
    20  
    21  
    22 stubs_auto.S: boot.c capt_seq.c movie_rec.c 
    23         @echo $< \-\> $@ 
    24 ifeq ($(OSTYPE),Windows) 
    25         cat $^ | \ 
    26             grep 'BL\\?[[:space:]]*sub_[0-9A-Fa-f]' | \ 
    27             sed 's/.*sub_\\([0-9A-Fa-f]*\\).*/\\1/' | \ 
    28             $(SORT) | uniq | \ 
    29             awk 'BEGIN {print "/* THIS FILE IS GENERATED */\n#include \"stubs_asm.h\"\n"} \ 
    30                 {printf("STUB(%s)\n",$$1)}' > stubs_auto.S 
    31 else     
    32         cat $^ | \ 
    33             grep 'BL\?[[:space:]]*sub_[0-9A-Fa-f]' | \ 
    34             sed 's/.*sub_\([0-9A-Fa-f]*\).*/\1/' | \ 
    35             $(SORT) | uniq | \ 
    36             awk 'BEGIN {print "/* THIS FILE IS GENERATED */\n#include \"stubs_asm.h\"\n"} \ 
    37                 {printf("STUB(%s)\n",$$1)}' > stubs_auto.S 
    38 endif 
    39  
    40 stubs_entry.S: $(TARGET_PRIMARY) $(topdir)tools/signatures_$(PLATFORMOS).h 
    41         @echo \-\> $@ 
    42         rm -f stubs_entry.S.err 
    43         if [ -s $(TARGET_PRIMARY) ] ; then \ 
    44           $(topdir)tools/finsig $(TARGET_PRIMARY) $(ROMBASEADDR) > stubs_entry.S ; \ 
    45         else \ 
    46           echo CAUTION! \'stubs_entry.S\' is not uptated due to target firmware binary not found! ; \ 
    47           touch stubs_entry.S ; \ 
    48         fi ; \ 
    49         if [ "X`grep 'ERROR' stubs_entry.S`" != "X" ] ; then \ 
    50           grep "ERROR" stubs_entry.S | sed -r "s/\/\/ ERROR: ([^ ]+) is not found.*/\1/" | $(SORT) | uniq > stubs_nf.names ; \ 
    51           grep -E "NH?STUB" stubs_entry_2.S | sed -r "s/ *NH?STUB\( *([^ ,]+).*/\1/" | $(SORT) | uniq > stubs_mn.names ; \ 
    52           comm -23 stubs_nf.names stubs_mn.names > stubs_not_found_names.err ; \ 
    53           rm -f stubs_nf.names stubs_mn.names ; \ 
    54           if [ -s stubs_not_found_names.err ] ; then \ 
    55             echo ERROR! There are unresolved addresses in \'stubs_entry.S\' \($(PLATFORM)-$(PLATFORMSUB)\) for the following names: ; \ 
    56             cat stubs_not_found_names.err ; \ 
    57             echo Please, add them into \'stubs_entry_2.S\' manually! ; \ 
    58             mv stubs_entry.S stubs_entry.S.err ; \ 
    59             exit 1 ; \ 
    60           fi ; \ 
    61           rm -f stubs_not_found_names.err ; \ 
    62         fi 
    63  
    64 $(TARGET_PRIMARY): 
    65         touch $(TARGET_PRIMARY) 
    66  
    67 include $(topdir)bottom.inc 
     6include $(topdir)/platform/makefile_sub.inc 
  • trunk/platform/a610/sub/100e/stubs_auto.S

    r243 r379  
    11/* THIS FILE IS GENERATED */ 
     2/* DO NOT EDIT THIS FILE! */ 
     3 
    24#include "stubs_asm.h" 
    35 
  • trunk/platform/a610/sub/100f/Makefile

    r301 r379  
    11topdir=../../../../ 
    22 
    3 include $(topdir)makefile.inc 
     3OBJS=boot.o stubs_min.o stubs_auto.o stubs_entry.o lib.o stubs_entry_2.o capt_seq.o movie_rec.o 
     4STUBS_AUTO_DEPS=boot.c capt_seq.c movie_rec.c 
    45 
    5 CFLAGS+=-DLOW_LEVEL 
    6  
    7 all: libplatformsub.a 
    8  
    9 TARGET_PRIMARY = PRIMARY.BIN 
    10 OBJS=boot.o stubs_min.o stubs_auto.o stubs_entry.o lib.o stubs_entry_2.o capt_seq.o movie_rec.o 
    11  
    12 libplatformsub.a: $(OBJS) 
    13  
    14 clean: 
    15         rm -f $(OBJS) libplatformsub.a stubs_entry.S.err stubs_not_found_names.err 
    16  
    17 distclean: clean 
    18         rm -f stubs_entry.S stubs_auto.S 
    19         rm -rf .dep 
    20  
    21  
    22 stubs_auto.S: boot.c capt_seq.c movie_rec.c 
    23         @echo $< \-\> $@ 
    24 ifeq ($(OSTYPE),Windows) 
    25         cat $^ | \ 
    26             grep 'BL\\?[[:space:]]*sub_[0-9A-Fa-f]' | \ 
    27             sed 's/.*sub_\\([0-9A-Fa-f]*\\).*/\\1/' | \ 
    28             $(SORT) | uniq | \ 
    29             awk 'BEGIN {print "/* THIS FILE IS GENERATED */\n#include \"stubs_asm.h\"\n"} \ 
    30                 {printf("STUB(%s)\n",$$1)}' > stubs_auto.S 
    31 else     
    32         cat $^ | \ 
    33             grep 'BL\?[[:space:]]*sub_[0-9A-Fa-f]' | \ 
    34             sed 's/.*sub_\([0-9A-Fa-f]*\).*/\1/' | \ 
    35             $(SORT) | uniq | \ 
    36             awk 'BEGIN {print "/* THIS FILE IS GENERATED */\n#include \"stubs_asm.h\"\n"} \ 
    37                 {printf("STUB(%s)\n",$$1)}' > stubs_auto.S 
    38 endif 
    39  
    40 stubs_entry.S: $(TARGET_PRIMARY) $(topdir)tools/signatures_$(PLATFORMOS).h 
    41         @echo \-\> $@ 
    42         rm -f stubs_entry.S.err 
    43         if [ -s $(TARGET_PRIMARY) ] ; then \ 
    44           $(topdir)tools/finsig $(TARGET_PRIMARY) $(ROMBASEADDR) > stubs_entry.S ; \ 
    45         else \ 
    46           echo CAUTION! \'stubs_entry.S\' is not uptated due to target firmware binary not found! ; \ 
    47           touch stubs_entry.S ; \ 
    48         fi ; \ 
    49         if [ "X`grep 'ERROR' stubs_entry.S`" != "X" ] ; then \ 
    50           grep "ERROR" stubs_entry.S | sed -r "s/\/\/ ERROR: ([^ ]+) is not found.*/\1/" | $(SORT) | uniq > stubs_nf.names ; \ 
    51           grep -E "NH?STUB" stubs_entry_2.S | sed -r "s/ *NH?STUB\( *([^ ,]+).*/\1/" | $(SORT) | uniq > stubs_mn.names ; \ 
    52           comm -23 stubs_nf.names stubs_mn.names > stubs_not_found_names.err ; \ 
    53           rm -f stubs_nf.names stubs_mn.names ; \ 
    54           if [ -s stubs_not_found_names.err ] ; then \ 
    55             echo ERROR! There are unresolved addresses in \'stubs_entry.S\' \($(PLATFORM)-$(PLATFORMSUB)\) for the following names: ; \ 
    56             cat stubs_not_found_names.err ; \ 
    57             echo Please, add them into \'stubs_entry_2.S\' manually! ; \ 
    58             mv stubs_entry.S stubs_entry.S.err ; \ 
    59             exit 1 ; \ 
    60           fi ; \ 
    61           rm -f stubs_not_found_names.err ; \ 
    62         fi 
    63  
    64 $(TARGET_PRIMARY): 
    65         touch $(TARGET_PRIMARY) 
    66  
    67 include $(topdir)bottom.inc 
     6include $(topdir)/platform/makefile_sub.inc 
  • trunk/platform/a610/sub/100f/stubs_auto.S

    r243 r379  
    11/* THIS FILE IS GENERATED */ 
     2/* DO NOT EDIT THIS FILE! */ 
     3 
    24#include "stubs_asm.h" 
    35 
  • trunk/platform/a620/sub/100f/Makefile

    r301 r379  
    11topdir=../../../../ 
    22 
    3 include $(topdir)makefile.inc 
     3OBJS=boot.o stubs_min.o stubs_auto.o stubs_entry.o lib.o stubs_entry_2.o capt_seq.o movie_rec.o 
     4STUBS_AUTO_DEPS=boot.c capt_seq.c movie_rec.c 
    45 
    5 CFLAGS+=-DLOW_LEVEL 
    6  
    7 all: libplatformsub.a 
    8  
    9 TARGET_PRIMARY = PRIMARY.BIN 
    10 OBJS=boot.o stubs_min.o stubs_auto.o stubs_entry.o lib.o stubs_entry_2.o capt_seq.o movie_rec.o 
    11  
    12 libplatformsub.a: $(OBJS) 
    13  
    14 clean: 
    15         rm -f $(OBJS) libplatformsub.a stubs_entry.S.err stubs_not_found_names.err 
    16  
    17 distclean: clean 
    18         rm -f stubs_entry.S stubs_auto.S 
    19         rm -rf .dep 
    20  
    21  
    22 stubs_auto.S: boot.c capt_seq.c movie_rec.c 
    23         @echo $< \-\> $@ 
    24 ifeq ($(OSTYPE),Windows) 
    25         cat $^ | \ 
    26             grep 'BL\\?[[:space:]]*sub_[0-9A-Fa-f]' | \ 
    27             sed 's/.*sub_\\([0-9A-Fa-f]*\\).*/\\1/' | \ 
    28             $(SORT) | uniq | \ 
    29             awk 'BEGIN {print "/* THIS FILE IS GENERATED */\n#include \"stubs_asm.h\"\n"} \ 
    30                 {printf("STUB(%s)\n",$$1)}' > stubs_auto.S 
    31 else     
    32         cat $^ | \ 
    33             grep 'BL\?[[:space:]]*sub_[0-9A-Fa-f]' | \ 
    34             sed 's/.*sub_\([0-9A-Fa-f]*\).*/\1/' | \ 
    35             $(SORT) | uniq | \ 
    36             awk 'BEGIN {print "/* THIS FILE IS GENERATED */\n#include \"stubs_asm.h\"\n"} \ 
    37                 {printf("STUB(%s)\n",$$1)}' > stubs_auto.S 
    38 endif 
    39  
    40 stubs_entry.S: $(TARGET_PRIMARY) $(topdir)tools/signatures_$(PLATFORMOS).h 
    41         @echo \-\> $@ 
    42         rm -f stubs_entry.S.err 
    43         if [ -s $(TARGET_PRIMARY) ] ; then \ 
    44           $(topdir)tools/finsig $(TARGET_PRIMARY) $(ROMBASEADDR) > stubs_entry.S ; \ 
    45         else \ 
    46           echo CAUTION! \'stubs_entry.S\' is not uptated due to target firmware binary not found! ; \ 
    47           touch stubs_entry.S ; \ 
    48         fi ; \ 
    49         if [ "X`grep 'ERROR' stubs_entry.S`" != "X" ] ; then \ 
    50           grep "ERROR" stubs_entry.S | sed -r "s/\/\/ ERROR: ([^ ]+) is not found.*/\1/" | $(SORT) | uniq > stubs_nf.names ; \ 
    51           grep -E "NH?STUB" stubs_entry_2.S | sed -r "s/ *NH?STUB\( *([^ ,]+).*/\1/" | $(SORT) | uniq > stubs_mn.names ; \ 
    52           comm -23 stubs_nf.names stubs_mn.names > stubs_not_found_names.err ; \ 
    53           rm -f stubs_nf.names stubs_mn.names ; \ 
    54           if [ -s stubs_not_found_names.err ] ; then \ 
    55             echo ERROR! There are unresolved addresses in \'stubs_entry.S\' \($(PLATFORM)-$(PLATFORMSUB)\) for the following names: ; \ 
    56             cat stubs_not_found_names.err ; \ 
    57             echo Please, add them into \'stubs_entry_2.S\' manually! ; \ 
    58             mv stubs_entry.S stubs_entry.S.err ; \ 
    59             exit 1 ; \ 
    60           fi ; \ 
    61           rm -f stubs_not_found_names.err ; \ 
    62         fi 
    63  
    64 $(TARGET_PRIMARY): 
    65         touch $(TARGET_PRIMARY) 
    66  
    67 include $(topdir)bottom.inc 
     6include $(topdir)/platform/makefile_sub.inc 
  • trunk/platform/a620/sub/100f/stubs_auto.S

    r243 r379  
    11/* THIS FILE IS GENERATED */ 
     2/* DO NOT EDIT THIS FILE! */ 
     3 
    24#include "stubs_asm.h" 
    35 
  • trunk/platform/a630/sub/100c/Makefile

    r301 r379  
    11topdir=../../../../ 
    22 
    3 include $(topdir)makefile.inc 
     3OBJS=boot.o stubs_min.o stubs_auto.o stubs_entry.o lib.o stubs_entry_2.o capt_seq.o movie_rec.o mount.o 
     4STUBS_AUTO_DEPS=boot.c capt_seq.c movie_rec.c mount.c 
    45 
    5 CFLAGS+=-DLOW_LEVEL 
    6  
    7 all: libplatformsub.a 
    8  
    9 TARGET_PRIMARY = PRIMARY.BIN 
    10 OBJS=boot.o stubs_min.o stubs_auto.o stubs_entry.o lib.o stubs_entry_2.o capt_seq.o movie_rec.o mount.o 
    11  
    12 libplatformsub.a: $(OBJS) 
    13  
    14 clean: 
    15         rm -f $(OBJS) libplatformsub.a stubs_entry.S.err stubs_not_found_names.err 
    16  
    17 distclean: clean 
    18         rm -f stubs_entry.S stubs_auto.S 
    19         rm -rf .dep 
    20  
    21  
    22 stubs_auto.S: boot.c capt_seq.c movie_rec.c mount.c 
    23         @echo $< \-\> $@ 
    24 ifeq ($(OSTYPE),Windows) 
    25         cat $^ | \ 
    26             grep 'BL\\?[[:space:]]*sub_[0-9A-Fa-f]' | \ 
    27             sed 's/.*sub_\\([0-9A-Fa-f]*\\).*/\\1/' | \ 
    28             $(SORT) | uniq | \ 
    29             awk 'BEGIN {print "/* THIS FILE IS GENERATED */\n#include \"stubs_asm.h\"\n"} \ 
    30                 {printf("STUB(%s)\n",$$1)}' > stubs_auto.S 
    31 else     
    32         cat $^ | \ 
    33             grep 'BL\?[[:space:]]*sub_[0-9A-Fa-f]' | \ 
    34             sed 's/.*sub_\([0-9A-Fa-f]*\).*/\1/' | \ 
    35             $(SORT) | uniq | \ 
    36             awk 'BEGIN {print "/* THIS FILE IS GENERATED */\n#include \"stubs_asm.h\"\n"} \ 
    37                 {printf("STUB(%s)\n",$$1)}' > stubs_auto.S 
    38 endif 
    39  
    40 stubs_entry.S: $(TARGET_PRIMARY) $(topdir)tools/signatures_$(PLATFORMOS).h 
    41         @echo \-\> $@ 
    42         rm -f stubs_entry.S.err 
    43         if [ -s $(TARGET_PRIMARY) ] ; then \ 
    44           $(topdir)tools/finsig $(TARGET_PRIMARY) $(ROMBASEADDR) > stubs_entry.S ; \ 
    45         else \ 
    46           echo CAUTION! \'stubs_entry.S\' is not uptated due to target firmware binary not found! ; \ 
    47           touch stubs_entry.S ; \ 
    48         fi ; \ 
    49         if [ "X`grep 'ERROR' stubs_entry.S`" != "X" ] ; then \ 
    50           grep "ERROR" stubs_entry.S | sed -r "s/\/\/ ERROR: ([^ ]+) is not found.*/\1/" | $(SORT) | uniq > stubs_nf.names ; \ 
    51           grep -E "NH?STUB" stubs_entry_2.S | sed -r "s/ *NH?STUB\( *([^ ,]+).*/\1/" | $(SORT) | uniq > stubs_mn.names ; \ 
    52           comm -23 stubs_nf.names stubs_mn.names > stubs_not_found_names.err ; \ 
    53           rm -f stubs_nf.names stubs_mn.names ; \ 
    54           if [ -s stubs_not_found_names.err ] ; then \ 
    55             echo ERROR! There are unresolved addresses in \'stubs_entry.S\' \($(PLATFORM)-$(PLATFORMSUB)\) for the following names: ; \ 
    56             cat stubs_not_found_names.err ; \ 
    57             echo Please, add them into \'stubs_entry_2.S\' manually! ; \ 
    58             mv stubs_entry.S stubs_entry.S.err ; \ 
    59             exit 1 ; \ 
    60           fi ; \ 
    61           rm -f stubs_not_found_names.err ; \ 
    62         fi 
    63  
    64 $(TARGET_PRIMARY): 
    65         touch $(TARGET_PRIMARY) 
    66  
    67 include $(topdir)bottom.inc 
     6include $(topdir)/platform/makefile_sub.inc 
  • trunk/platform/a630/sub/100c/stubs_auto.S

    r300 r379  
    11/* THIS FILE IS GENERATED */ 
     2/* DO NOT EDIT THIS FILE! */ 
     3 
    24#include "stubs_asm.h" 
    35 
  • trunk/platform/a640/sub/100b/Makefile

    r301 r379  
    11topdir=../../../../ 
    22 
    3 include $(topdir)makefile.inc 
     3OBJS=boot.o stubs_min.o stubs_auto.o stubs_entry.o lib.o stubs_entry_2.o capt_seq.o movie_rec.o mount.o 
     4STUBS_AUTO_DEPS=boot.c capt_seq.c movie_rec.c mount.c 
    45 
    5 CFLAGS+=-DLOW_LEVEL 
    6  
    7 all: libplatformsub.a 
    8  
    9 TARGET_PRIMARY = PRIMARY.BIN 
    10 OBJS=boot.o stubs_min.o stubs_auto.o stubs_entry.o lib.o stubs_entry_2.o capt_seq.o movie_rec.o mount.o 
    11  
    12 libplatformsub.a: $(OBJS) 
    13  
    14 clean: 
    15         rm -f $(OBJS) libplatformsub.a stubs_entry.S.err stubs_not_found_names.err 
    16  
    17 distclean: clean 
    18         rm -f stubs_entry.S stubs_auto.S 
    19         rm -rf .dep 
    20  
    21  
    22 stubs_auto.S: boot.c capt_seq.c movie_rec.c mount.c 
    23         @echo $< \-\> $@ 
    24 ifeq ($(OSTYPE),Windows) 
    25         cat $^ | \ 
    26             grep 'BL\\?[[:space:]]*sub_[0-9A-Fa-f]' | \ 
    27             sed 's/.*sub_\\([0-9A-Fa-f]*\\).*/\\1/' | \ 
    28             $(SORT) | uniq | \ 
    29             awk 'BEGIN {print "/* THIS FILE IS GENERATED */\n#include \"stubs_asm.h\"\n"} \ 
    30                 {printf("STUB(%s)\n",$$1)}' > stubs_auto.S 
    31 else     
    32         cat $^ | \ 
    33             grep 'BL\?[[:space:]]*sub_[0-9A-Fa-f]' | \ 
    34             sed 's/.*sub_\([0-9A-Fa-f]*\).*/\1/' | \ 
    35             $(SORT) | uniq | \ 
    36             awk 'BEGIN {print "/* THIS FILE IS GENERATED */\n#include \"stubs_asm.h\"\n"} \ 
    37                 {printf("STUB(%s)\n",$$1)}' > stubs_auto.S 
    38 endif 
    39  
    40 stubs_entry.S: $(TARGET_PRIMARY) $(topdir)tools/signatures_$(PLATFORMOS).h 
    41         @echo \-\> $@ 
    42         rm -f stubs_entry.S.err 
    43         if [ -s $(TARGET_PRIMARY) ] ; then \ 
    44           $(topdir)tools/finsig $(TARGET_PRIMARY) $(ROMBASEADDR) > stubs_entry.S ; \ 
    45         else \ 
    46           echo CAUTION! \'stubs_entry.S\' is not uptated due to target firmware binary not found! ; \ 
    47           touch stubs_entry.S ; \ 
    48         fi ; \ 
    49         if [ "X`grep 'ERROR' stubs_entry.S`" != "X" ] ; then \ 
    50           grep "ERROR" stubs_entry.S | sed -r "s/\/\/ ERROR: ([^ ]+) is not found.*/\1/" | $(SORT) | uniq > stubs_nf.names ; \ 
    51           grep -E "NH?STUB" stubs_entry_2.S | sed -r "s/ *NH?STUB\( *([^ ,]+).*/\1/" | $(SORT) | uniq > stubs_mn.names ; \ 
    52           comm -23 stubs_nf.names stubs_mn.names > stubs_not_found_names.err ; \ 
    53           rm -f stubs_nf.names stubs_mn.names ; \ 
    54           if [ -s stubs_not_found_names.err ] ; then \ 
    55             echo ERROR! There are unresolved addresses in \'stubs_entry.S\' \($(PLATFORM)-$(PLATFORMSUB)\) for the following names: ; \ 
    56             cat stubs_not_found_names.err ; \ 
    57             echo Please, add them into \'stubs_entry_2.S\' manually! ; \ 
    58             mv stubs_entry.S stubs_entry.S.err ; \ 
    59             exit 1 ; \ 
    60           fi ; \ 
    61           rm -f stubs_not_found_names.err ; \ 
    62         fi 
    63  
    64 $(TARGET_PRIMARY): 
    65         touch $(TARGET_PRIMARY) 
    66  
    67 include $(topdir)bottom.inc 
     6include $(topdir)/platform/makefile_sub.inc 
  • trunk/platform/a640/sub/100b/stubs_auto.S

    r312 r379  
    11/* THIS FILE IS GENERATED */ 
     2/* DO NOT EDIT THIS FILE! */ 
     3 
    24#include "stubs_asm.h" 
    35 
  • trunk/platform/a650/sub/100d/Makefile

    r301 r379  
    11topdir=../../../../ 
    22 
    3 include $(topdir)makefile.inc 
     3OBJS=boot.o stubs_min.o stubs_auto.o stubs_entry.o lib.o stubs_entry_2.o capt_seq.o 
     4STUBS_AUTO_DEPS=boot.c capt_seq.c 
    45 
    5 CFLAGS+=-DLOW_LEVEL 
    6  
    7 all: libplatformsub.a 
    8  
    9 TARGET_PRIMARY = PRIMARY.BIN 
    10 OBJS=boot.o stubs_min.o stubs_auto.o stubs_entry.o lib.o stubs_entry_2.o capt_seq.o 
    11  
    12 libplatformsub.a: $(OBJS) 
    13  
    14 clean: 
    15         rm -f $(OBJS) libplatformsub.a stubs_entry.S.err stubs_not_found_names.err 
    16  
    17 distclean: clean 
    18         rm -f stubs_entry.S stubs_auto.S 
    19         rm -rf .dep 
    20  
    21  
    22 stubs_auto.S: boot.c capt_seq.c 
    23         @echo $< \-\> $@ 
    24 ifeq ($(OSTYPE),Windows) 
    25         cat $^ | \ 
    26             grep -E 'B.*[[:space:]]+sub_[0-9A-Fa-f]' | \ 
    27             sed 's/.*sub_\\([0-9A-Fa-f]*\\).*/\\1/' | \ 
    28             $(SORT) | uniq | \ 
    29             awk 'BEGIN {print "/* THIS FILE IS GENERATED */\n#include \"stubs_asm.h\"\n"} \ 
    30                 {printf("STUB(%s)\n",$$1)}' > stubs_auto.S 
    31 else     
    32         cat $^ | \ 
    33             grep 'B.*[[:space:]]*sub_[0-9A-Fa-f]' | \ 
    34             sed 's/.*sub_\([0-9A-Fa-f]*\).*/\1/' | \ 
    35             $(SORT) | uniq | \ 
    36             awk 'BEGIN {print "/* THIS FILE IS GENERATED */\n#include \"stubs_asm.h\"\n"} \ 
    37                 {printf("STUB(%s)\n",$$1)}' > stubs_auto.S 
    38 endif 
    39  
    40 stubs_entry.S: $(TARGET_PRIMARY) $(topdir)tools/signatures_$(PLATFORMOS).h 
    41         @echo \-\> $@ 
    42         rm -f stubs_entry.S.err 
    43         if [ -s $(TARGET_PRIMARY) ] ; then \ 
    44           $(topdir)tools/finsig $(TARGET_PRIMARY) $(ROMBASEADDR) > stubs_entry.S ; \ 
    45         else \ 
    46           echo CAUTION! \'stubs_entry.S\' is not uptated due to target firmware binary not found! ; \ 
    47           touch stubs_entry.S ; \ 
    48         fi ; \ 
    49         if [ "X`grep 'ERROR' stubs_entry.S`" != "X" ] ; then \ 
    50           grep "ERROR" stubs_entry.S | sed -r "s/\/\/ ERROR: ([^ ]+) is not found.*/\1/" | $(SORT) | uniq > stubs_nf.names ; \ 
    51           grep -E "NH?STUB" stubs_entry_2.S | sed -r "s/ *NH?STUB\( *([^ ,]+).*/\1/" | $(SORT) | uniq > stubs_mn.names ; \ 
    52           comm -23 stubs_nf.names stubs_mn.names > stubs_not_found_names.err ; \ 
    53           rm -f stubs_nf.names stubs_mn.names ; \ 
    54           if [ -s stubs_not_found_names.err ] ; then \ 
    55             echo ERROR! There are unresolved addresses in \'stubs_entry.S\' \($(PLATFORM)-$(PLATFORMSUB)\) for the following names: ; \ 
    56             cat stubs_not_found_names.err ; \ 
    57             echo Please, add them into \'stubs_entry_2.S\' manually! ; \ 
    58             mv stubs_entry.S stubs_entry.S.err ; \ 
    59             exit 1 ; \ 
    60           fi ; \ 
    61           rm -f stubs_not_found_names.err ; \ 
    62         fi 
    63  
    64 $(TARGET_PRIMARY): 
    65         touch $(TARGET_PRIMARY) 
    66  
    67 include $(topdir)bottom.inc 
    68  
     6include $(topdir)/platform/makefile_sub.inc 
  • trunk/platform/a650/sub/100d/stubs_auto.S

    r378 r379  
    11/* THIS FILE IS GENERATED */ 
     2/* DO NOT EDIT THIS FILE! */ 
     3 
    24#include "stubs_asm.h" 
    35 
    4 STUB(2) 
    5 STUB(22) 
    6 STUB(3) 
    7 STUB(4) 
    8 STUB(5) 
    9 STUB(8) 
    106STUB(FFC001A4) 
    117STUB(FFC0095C) 
  • trunk/platform/a700/sub/100b/Makefile

    r301 r379  
    11topdir=../../../../ 
    22 
    3 include $(topdir)makefile.inc 
     3OBJS=boot.o stubs_min.o stubs_auto.o stubs_entry.o lib.o stubs_entry_2.o capt_seq.o movie_rec.o 
     4STUBS_AUTO_DEPS=boot.c capt_seq.c movie_rec.c 
    45 
    5 CFLAGS+=-DLOW_LEVEL 
    6  
    7 all: libplatformsub.a 
    8  
    9 TARGET_PRIMARY = PRIMARY.BIN 
    10 OBJS=boot.o stubs_min.o stubs_auto.o stubs_entry.o lib.o stubs_entry_2.o capt_seq.o movie_rec.o 
    11  
    12 libplatformsub.a: $(OBJS) 
    13  
    14 clean: 
    15         rm -f $(OBJS) libplatformsub.a stubs_entry.S.err stubs_not_found_names.err 
    16  
    17 distclean: clean 
    18         rm -f stubs_entry.S stubs_auto.S 
    19         rm -rf .dep 
    20  
    21  
    22 stubs_auto.S: boot.c capt_seq.c movie_rec.c 
    23         @echo $< \-\> $@ 
    24 ifeq ($(OSTYPE),Windows) 
    25         cat $^ | \ 
    26             grep 'BL\\?[[:space:]]*sub_[0-9A-Fa-f]' | \ 
    27             sed 's/.*sub_\\([0-9A-Fa-f]*\\).*/\\1/' | \ 
    28             $(SORT) | uniq | \ 
    29             awk 'BEGIN {print "/* THIS FILE IS GENERATED */\n#include \"stubs_asm.h\"\n"} \ 
    30                 {printf("STUB(%s)\n",$$1)}' > stubs_auto.S 
    31 else     
    32         cat $^ | \ 
    33             grep 'BL\?[[:space:]]*sub_[0-9A-Fa-f]' | \ 
    34             sed 's/.*sub_\([0-9A-Fa-f]*\).*/\1/' | \ 
    35             $(SORT) | uniq | \ 
    36             awk 'BEGIN {print "/* THIS FILE IS GENERATED */\n#include \"stubs_asm.h\"\n"} \ 
    37                 {printf("STUB(%s)\n",$$1)}' > stubs_auto.S 
    38 endif 
    39  
    40 stubs_entry.S: $(TARGET_PRIMARY) $(topdir)tools/signatures_$(PLATFORMOS).h 
    41         @echo \-\> $@ 
    42         rm -f stubs_entry.S.err 
    43         if [ -s $(TARGET_PRIMARY) ] ; then \ 
    44           $(topdir)tools/finsig $(TARGET_PRIMARY) $(ROMBASEADDR) > stubs_entry.S ; \ 
    45         else \ 
    46           echo CAUTION! \'stubs_entry.S\' is not uptated due to target firmware binary not found! ; \ 
    47           touch stubs_entry.S ; \ 
    48         fi ; \ 
    49         if [ "X`grep 'ERROR' stubs_entry.S`" != "X" ] ; then \ 
    50           grep "ERROR" stubs_entry.S | sed -r "s/\/\/ ERROR: ([^ ]+) is not found.*/\1/" | $(SORT) | uniq > stubs_nf.names ; \ 
    51           grep -E "NH?STUB" stubs_entry_2.S | sed -r "s/ *NH?STUB\( *([^ ,]+).*/\1/" | $(SORT) | uniq > stubs_mn.names ; \ 
    52           comm -23 stubs_nf.names stubs_mn.names > stubs_not_found_names.err ; \ 
    53           rm -f stubs_nf.names stubs_mn.names ; \ 
    54           if [ -s stubs_not_found_names.err ] ; then \ 
    55             echo ERROR! There are unresolved addresses in \'stubs_entry.S\' \($(PLATFORM)-$(PLATFORMSUB)\) for the following names: ; \ 
    56             cat stubs_not_found_names.err ; \ 
    57             echo Please, add them into \'stubs_entry_2.S\' manually! ; \ 
    58             mv stubs_entry.S stubs_entry.S.err ; \ 
    59             exit 1 ; \ 
    60           fi ; \ 
    61           rm -f stubs_not_found_names.err ; \ 
    62         fi 
    63  
    64 $(TARGET_PRIMARY): 
    65         touch $(TARGET_PRIMARY) 
    66  
    67 include $(topdir)bottom.inc 
     6include $(topdir)/platform/makefile_sub.inc 
  • trunk/platform/a700/sub/100b/stubs_auto.S

    r243 r379  
    11/* THIS FILE IS GENERATED */ 
     2/* DO NOT EDIT THIS FILE! */ 
     3 
    24#include "stubs_asm.h" 
    35 
  • trunk/platform/a710/sub/100a/Makefile

    r301 r379  
    11topdir=../../../../ 
    22 
    3 include $(topdir)makefile.inc 
     3OBJS=boot.o stubs_min.o stubs_auto.o stubs_entry.o lib.o stubs_entry_2.o capt_seq.o movie_rec.o mount.o 
     4STUBS_AUTO_DEPS=boot.c capt_seq.c movie_rec.c mount.c 
    45 
    5 CFLAGS+=-DLOW_LEVEL 
    6  
    7 all: libplatformsub.a 
    8  
    9 TARGET_PRIMARY = PRIMARY.BIN 
    10 OBJS=boot.o stubs_min.o stubs_auto.o stubs_entry.o lib.o stubs_entry_2.o capt_seq.o movie_rec.o mount.o 
    11  
    12 libplatformsub.a: $(OBJS) 
    13  
    14 clean: 
    15         rm -f $(OBJS) libplatformsub.a stubs_entry.S.err stubs_not_found_names.err 
    16  
    17 distclean: clean 
    18         rm -f stubs_entry.S stubs_auto.S 
    19         rm -rf .dep 
    20  
    21  
    22 stubs_auto.S: boot.c capt_seq.c movie_rec.c mount.c 
    23         @echo $< \-\> $@ 
    24 ifeq ($(OSTYPE),Windows) 
    25         cat $^ | \ 
    26             grep 'BL\\?[[:space:]]*sub_[0-9A-Fa-f]' | \ 
    27             sed 's/.*sub_\\([0-9A-Fa-f]*\\).*/\\1/' | \ 
    28             $(SORT) | uniq | \ 
    29             awk 'BEGIN {print "/* THIS FILE IS GENERATED */\n#include \"stubs_asm.h\"\n"} \ 
    30                 {printf("STUB(%s)\n",$$1)}' > stubs_auto.S 
    31 else     
    32         cat $^ | \ 
    33             grep 'BL\?[[:space:]]*sub_[0-9A-Fa-f]' | \ 
    34             sed 's/.*sub_\([0-9A-Fa-f]*\).*/\1/' | \ 
    35             $(SORT) | uniq | \ 
    36             awk 'BEGIN {print "/* THIS FILE IS GENERATED */\n#include \"stubs_asm.h\"\n"} \ 
    37                 {printf("STUB(%s)\n",$$1)}' > stubs_auto.S 
    38 endif 
    39  
    40 stubs_entry.S: $(TARGET_PRIMARY) $(topdir)tools/signatures_$(PLATFORMOS).h 
    41         @echo \-\> $@ 
    42         rm -f stubs_entry.S.err 
    43         if [ -s $(TARGET_PRIMARY) ] ; then \ 
    44           $(topdir)tools/finsig $(TARGET_PRIMARY) $(ROMBASEADDR) > stubs_entry.S ; \ 
    45         else \ 
    46           echo CAUTION! \'stubs_entry.S\' is not uptated due to target firmware binary not found! ; \ 
    47           touch stubs_entry.S ; \ 
    48         fi ; \ 
    49         if [ "X`grep 'ERROR' stubs_entry.S`" != "X" ] ; then \ 
    50           grep "ERROR" stubs_entry.S | sed -r "s/\/\/ ERROR: ([^ ]+) is not found.*/\1/" | $(SORT) | uniq > stubs_nf.names ; \ 
    51           grep -E "NH?STUB" stubs_entry_2.S | sed -r "s/ *NH?STUB\( *([^ ,]+).*/\1/" | $(SORT) | uniq > stubs_mn.names ; \ 
    52           comm -23 stubs_nf.names stubs_mn.names > stubs_not_found_names.err ; \ 
    53           rm -f stubs_nf.names stubs_mn.names ; \ 
    54           if [ -s stubs_not_found_names.err ] ; then \ 
    55             echo ERROR! There are unresolved addresses in \'stubs_entry.S\' \($(PLATFORM)-$(PLATFORMSUB)\) for the following names: ; \ 
    56             cat stubs_not_found_names.err ; \ 
    57             echo Please, add them into \'stubs_entry_2.S\' manually! ; \ 
    58             mv stubs_entry.S stubs_entry.S.err ; \ 
    59             exit 1 ; \ 
    60           fi ; \ 
    61           rm -f stubs_not_found_names.err ; \ 
    62         fi 
    63  
    64 $(TARGET_PRIMARY): 
    65         touch $(TARGET_PRIMARY) 
    66  
    67 include $(topdir)bottom.inc 
     6include $(topdir)/platform/makefile_sub.inc 
  • trunk/platform/a710/sub/100a/stubs_auto.S

    r267 r379  
    11/* THIS FILE IS GENERATED */ 
     2/* DO NOT EDIT THIS FILE! */ 
     3 
    24#include "stubs_asm.h" 
    35 
  • trunk/platform/a720/sub/100c/Makefile

    r376 r379  
    11topdir=../../../../ 
    22 
    3 include $(topdir)makefile.inc 
     3OBJS=boot.o stubs_min.o stubs_auto.o stubs_entry.o lib.o stubs_entry_2.o capt_seq.o movie_rec.o 
     4STUBS_AUTO_DEPS=boot.c capt_seq.c movie_rec.c 
    45 
    5 CFLAGS+=-DLOW_LEVEL 
    6  
    7 all: libplatformsub.a 
    8  
    9 TARGET_PRIMARY = PRIMARY.BIN 
    10 OBJS=boot.o stubs_min.o stubs_auto.o stubs_entry.o lib.o stubs_entry_2.o capt_seq.o movie_rec.o 
    11  
    12 libplatformsub.a: $(OBJS) 
    13  
    14 clean: 
    15         rm -f $(OBJS) libplatformsub.a stubs_entry.S.err stubs_not_found_names.err 
    16  
    17 distclean: clean 
    18         rm -f stubs_entry.S stubs_auto.S 
    19         rm -rf .dep 
    20  
    21  
    22 stubs_auto.S: boot.c capt_seq.c movie_rec.c 
    23         @echo $< \-\> $@ 
    24 ifeq ($(OSTYPE),Windows) 
    25         cat $^ | \ 
    26             grep -E 'B.*[[:space:]]+sub_[0-9A-Fa-f]' | \ 
    27             sed 's/.*sub_\\([0-9A-Fa-f]*\\).*/\\1/' | \ 
    28             $(SORT) | uniq | \ 
    29             awk 'BEGIN {print "/* THIS FILE IS GENERATED */\n#include \"stubs_asm.h\"\n"} \ 
    30                 {printf("STUB(%s)\n",$$1)}' > stubs_auto.S 
    31 else     
    32         cat $^ | \ 
    33             grep 'B.*[[:space:]]*sub_[0-9A-Fa-f]' | \ 
    34             sed 's/.*sub_\([0-9A-Fa-f]*\).*/\1/' | \ 
    35             $(SORT) | uniq | \ 
    36             awk 'BEGIN {print "/* THIS FILE IS GENERATED */\n#include \"stubs_asm.h\"\n"} \ 
    37                 {printf("STUB(%s)\n",$$1)}' > stubs_auto.S 
    38 endif 
    39  
    40 stubs_entry.S: $(TARGET_PRIMARY) $(topdir)tools/signatures_$(PLATFORMOS).h 
    41         @echo \-\> $@ 
    42         rm -f stubs_entry.S.err 
    43         if [ -s $(TARGET_PRIMARY) ] ; then \ 
    44           $(topdir)tools/finsig $(TARGET_PRIMARY) $(ROMBASEADDR) > stubs_entry.S ; \ 
    45         else \ 
    46           echo CAUTION! \'stubs_entry.S\' is not uptated due to target firmware binary not found! ; \ 
    47           touch stubs_entry.S ; \ 
    48         fi ; \ 
    49         if [ "X`grep 'ERROR' stubs_entry.S`" != "X" ] ; then \ 
    50           grep "ERROR" stubs_entry.S | sed -r "s/\/\/ ERROR: ([^ ]+) is not found.*/\1/" | $(SORT) | uniq > stubs_nf.names ; \ 
    51           grep -E "NH?STUB" stubs_entry_2.S | sed -r "s/ *NH?STUB\( *([^ ,]+).*/\1/" | $(SORT) | uniq > stubs_mn.names ; \ 
    52           comm -23 stubs_nf.names stubs_mn.names > stubs_not_found_names.err ; \ 
    53           rm -f stubs_nf.names stubs_mn.names ; \ 
    54           if [ -s stubs_not_found_names.err ] ; then \ 
    55             echo ERROR! There are unresolved addresses in \'stubs_entry.S\' \($(PLATFORM)-$(PLATFORMSUB)\) for the following names: ; \ 
    56             cat stubs_not_found_names.err ; \ 
    57             echo Please, add them into \'stubs_entry_2.S\' manually! ; \ 
    58             mv stubs_entry.S stubs_entry.S.err ; \ 
    59             exit 1 ; \ 
    60           fi ; \ 
    61           rm -f stubs_not_found_names.err ; \ 
    62         fi 
    63  
    64 $(TARGET_PRIMARY): 
    65         touch $(TARGET_PRIMARY) 
    66  
    67 include $(topdir)bottom.inc 
    68  
     6include $(topdir)/platform/makefile_sub.inc 
  • trunk/platform/a720/sub/100c/stubs_auto.S

    r376 r379  
    11/* THIS FILE IS GENERATED */ 
     2/* DO NOT EDIT THIS FILE! */ 
     3 
    24#include "stubs_asm.h" 
    35 
  • trunk/platform/g7/sub/100e/Makefile

    r301 r379  
    11topdir=../../../../ 
    22 
    3 include $(topdir)makefile.inc 
     3OBJS=boot.o stubs_min.o stubs_auto.o stubs_entry.o lib.o stubs_entry_2.o capt_seq.o movie_rec.o mount.o 
     4STUBS_AUTO_DEPS=boot.c capt_seq.c movie_rec.c mount.c 
    45 
    5 CFLAGS+=-DLOW_LEVEL 
    6  
    7 all: libplatformsub.a 
    8  
    9 TARGET_PRIMARY = PRIMARY.BIN 
    10 OBJS=boot.o stubs_min.o stubs_auto.o stubs_entry.o lib.o stubs_entry_2.o capt_seq.o movie_rec.o mount.o 
    11  
    12 libplatformsub.a: $(OBJS) 
    13  
    14 clean: 
    15         rm -f $(OBJS) libplatformsub.a stubs_entry.S.err stubs_not_found_names.err 
    16  
    17 distclean: clean 
    18         rm -f stubs_entry.S stubs_auto.S 
    19         rm -rf .dep 
    20  
    21  
    22 stubs_auto.S: boot.c capt_seq.c movie_rec.c mount.c 
    23         @echo $< \-\> $@ 
    24 ifeq ($(OSTYPE),Windows) 
    25         cat $^ | \ 
    26             grep 'BL\\?[[:space:]]*sub_[0-9A-Fa-f]' | \ 
    27             sed 's/.*sub_\\([0-9A-Fa-f]*\\).*/\\1/' | \ 
    28             $(SORT) | uniq | \ 
    29             awk 'BEGIN {print "/* THIS FILE IS GENERATED */\n#include \"stubs_asm.h\"\n"} \ 
    30                 {printf("STUB(%s)\n",$$1)}' > stubs_auto.S 
    31 else     
    32         cat $^ | \ 
    33             grep 'BL\?[[:space:]]*sub_[0-9A-Fa-f]' | \ 
    34             sed 's/.*sub_\([0-9A-Fa-f]*\).*/\1/' | \ 
    35             $(SORT) | uniq | \ 
    36             awk 'BEGIN {print "/* THIS FILE IS GENERATED */\n#include \"stubs_asm.h\"\n"} \ 
    37                 {printf("STUB(%s)\n",$$1)}' > stubs_auto.S 
    38 endif 
    39  
    40 stubs_entry.S: $(TARGET_PRIMARY) $(topdir)tools/signatures_$(PLATFORMOS).h 
    41         @echo \-\> $@ 
    42         rm -f stubs_entry.S.err 
    43         if [ -s $(TARGET_PRIMARY) ] ; then \ 
    44           $(topdir)tools/finsig $(TARGET_PRIMARY) $(ROMBASEADDR) > stubs_entry.S ; \ 
    45         else \ 
    46           echo CAUTION! \'stubs_entry.S\' is not uptated due to target firmware binary not found! ; \ 
    47           touch stubs_entry.S ; \ 
    48         fi ; \ 
    49         if [ "X`grep 'ERROR' stubs_entry.S`" != "X" ] ; then \ 
    50           grep "ERROR" stubs_entry.S | sed -r "s/\/\/ ERROR: ([^ ]+) is not found.*/\1/" | $(SORT) | uniq > stubs_nf.names ; \ 
    51           grep -E "NH?STUB" stubs_entry_2.S | sed -r "s/ *NH?STUB\( *([^ ,]+).*/\1/" | $(SORT) | uniq > stubs_mn.names ; \ 
    52           comm -23 stubs_nf.names stubs_mn.names > stubs_not_found_names.err ; \ 
    53           rm -f stubs_nf.names stubs_mn.names ; \ 
    54           if [ -s stubs_not_found_names.err ] ; then \ 
    55             echo ERROR! There are unresolved addresses in \'stubs_entry.S\' \($(PLATFORM)-$(PLATFORMSUB)\) for the following names: ; \ 
    56             cat stubs_not_found_names.err ; \ 
    57             echo Please, add them into \'stubs_entry_2.S\' manually! ; \ 
    58             mv stubs_entry.S stubs_entry.S.err ; \ 
    59             exit 1 ; \ 
    60           fi ; \ 
    61           rm -f stubs_not_found_names.err ; \ 
    62         fi 
    63  
    64 $(TARGET_PRIMARY): 
    65         touch $(TARGET_PRIMARY) 
    66  
    67 include $(topdir)bottom.inc 
     6include $(topdir)/platform/makefile_sub.inc 
  • trunk/platform/g7/sub/100e/stubs_auto.S

    r290 r379  
    11/* THIS FILE IS GENERATED */ 
     2/* DO NOT EDIT THIS FILE! */ 
     3 
    24#include "stubs_asm.h" 
    35 
  • trunk/platform/g7/sub/100g/Makefile

    r301 r379  
    11topdir=../../../../ 
    22 
    3 include $(topdir)makefile.inc 
     3OBJS=boot.o stubs_min.o stubs_auto.o stubs_entry.o lib.o stubs_entry_2.o capt_seq.o movie_rec.o mount.o 
     4STUBS_AUTO_DEPS=boot.c capt_seq.c movie_rec.c mount.c 
    45 
    5 CFLAGS+=-DLOW_LEVEL 
    6  
    7 all: libplatformsub.a 
    8  
    9 TARGET_PRIMARY = PRIMARY.BIN 
    10 OBJS=boot.o stubs_min.o stubs_auto.o stubs_entry.o lib.o stubs_entry_2.o capt_seq.o movie_rec.o mount.o 
    11  
    12 libplatformsub.a: $(OBJS) 
    13  
    14 clean: 
    15         rm -f $(OBJS) libplatformsub.a stubs_entry.S.err stubs_not_found_names.err 
    16  
    17 distclean: clean 
    18         rm -f stubs_entry.S stubs_auto.S 
    19         rm -rf .dep 
    20  
    21  
    22 stubs_auto.S: boot.c capt_seq.c movie_rec.c mount.c 
    23         @echo $< \-\> $@ 
    24 ifeq ($(OSTYPE),Windows) 
    25         cat $^ | \ 
    26             grep 'BL\\?[[:space:]]*sub_[0-9A-Fa-f]' | \ 
    27             sed 's/.*sub_\\([0-9A-Fa-f]*\\).*/\\1/' | \ 
    28             $(SORT) | uniq | \ 
    29             awk 'BEGIN {print "/* THIS FILE IS GENERATED */\n#include \"stubs_asm.h\"\n"} \ 
    30                 {printf("STUB(%s)\n",$$1)}' > stubs_auto.S 
    31 else     
    32         cat $^ | \ 
    33             grep 'BL\?[[:space:]]*sub_[0-9A-Fa-f]' | \ 
    34             sed 's/.*sub_\([0-9A-Fa-f]*\).*/\1/' | \ 
    35             $(SORT) | uniq | \ 
    36             awk 'BEGIN {print "/* THIS FILE IS GENERATED */\n#include \"stubs_asm.h\"\n"} \ 
    37                 {printf("STUB(%s)\n",$$1)}' > stubs_auto.S 
    38 endif 
    39  
    40 stubs_entry.S: $(TARGET_PRIMARY) $(topdir)tools/signatures_$(PLATFORMOS).h 
    41         @echo \-\> $@ 
    42         rm -f stubs_entry.S.err 
    43         if [ -s $(TARGET_PRIMARY) ] ; then \ 
    44           $(topdir)tools/finsig $(TARGET_PRIMARY) $(ROMBASEADDR) > stubs_entry.S ; \ 
    45         else \ 
    46           echo CAUTION! \'stubs_entry.S\' is not uptated due to target firmware binary not found! ; \ 
    47           touch stubs_entry.S ; \ 
    48         fi ; \ 
    49         if [ "X`grep 'ERROR' stubs_entry.S`" != "X" ] ; then \ 
    50           grep "ERROR" stubs_entry.S | sed -r "s/\/\/ ERROR: ([^ ]+) is not found.*/\1/" | $(SORT) | uniq > stubs_nf.names ; \ 
    51           grep -E "NH?STUB" stubs_entry_2.S | sed -r "s/ *NH?STUB\( *([^ ,]+).*/\1/" | $(SORT) | uniq > stubs_mn.names ; \ 
    52           comm -23 stubs_nf.names stubs_mn.names > stubs_not_found_names.err ; \ 
    53           rm -f stubs_nf.names stubs_mn.names ; \ 
    54           if [ -s stubs_not_found_names.err ] ; then \ 
    55             echo ERROR! There are unresolved addresses in \'stubs_entry.S\' \($(PLATFORM)-$(PLATFORMSUB)\) for the following names: ; \ 
    56             cat stubs_not_found_names.err ; \ 
    57             echo Please, add them into \'stubs_entry_2.S\' manually! ; \ 
    58             mv stubs_entry.S stubs_entry.S.err ; \ 
    59             exit 1 ; \ 
    60           fi ; \ 
    61           rm -f stubs_not_found_names.err ; \ 
    62         fi 
    63  
    64 $(TARGET_PRIMARY): 
    65         touch $(TARGET_PRIMARY) 
    66  
    67 include $(topdir)bottom.inc 
     6include $(topdir)/platform/makefile_sub.inc 
  • trunk/platform/g7/sub/100g/stubs_auto.S

    r267 r379  
    11/* THIS FILE IS GENERATED */ 
     2/* DO NOT EDIT THIS FILE! */ 
     3 
    24#include "stubs_asm.h" 
    35 
  • trunk/platform/g7/sub/100i/Makefile

    r301 r379  
    11topdir=../../../../ 
    22 
    3 include $(topdir)makefile.inc 
     3OBJS=boot.o stubs_min.o stubs_auto.o stubs_entry.o lib.o stubs_entry_2.o capt_seq.o movie_rec.o mount.o 
     4STUBS_AUTO_DEPS=boot.c capt_seq.c movie_rec.c mount.c 
    45 
    5 CFLAGS+=-DLOW_LEVEL 
    6  
    7 all: libplatformsub.a 
    8  
    9 TARGET_PRIMARY = PRIMARY.BIN 
    10 OBJS=boot.o stubs_min.o stubs_auto.o stubs_entry.o lib.o stubs_entry_2.o capt_seq.o movie_rec.o mount.o 
    11  
    12 libplatformsub.a: $(OBJS) 
    13  
    14 clean: 
    15         rm -f $(OBJS) libplatformsub.a stubs_entry.S.err stubs_not_found_names.err 
    16  
    17 distclean: clean 
    18         rm -f stubs_entry.S stubs_auto.S 
    19         rm -rf .dep 
    20  
    21  
    22 stubs_auto.S: boot.c capt_seq.c movie_rec.c mount.c 
    23         @echo $< \-\> $@ 
    24 ifeq ($(OSTYPE),Windows) 
    25         cat $^ | \ 
    26             grep 'BL\\?[[:space:]]*sub_[0-9A-Fa-f]' | \ 
    27             sed 's/.*sub_\\([0-9A-Fa-f]*\\).*/\\1/' | \ 
    28             $(SORT) | uniq | \ 
    29             awk 'BEGIN {print "/* THIS FILE IS GENERATED */\n#include \"stubs_asm.h\"\n"} \ 
    30                 {printf("STUB(%s)\n",$$1)}' > stubs_auto.S 
    31 else     
    32         cat $^ | \ 
    33             grep 'BL\?[[:space:]]*sub_[0-9A-Fa-f]' | \ 
    34             sed 's/.*sub_\([0-9A-Fa-f]*\).*/\1/' | \ 
    35             $(SORT) | uniq | \ 
    36             awk 'BEGIN {print "/* THIS FILE IS GENERATED */\n#include \"stubs_asm.h\"\n"} \ 
    37                 {printf("STUB(%s)\n",$$1)}' > stubs_auto.S 
    38 endif 
    39  
    40 stubs_entry.S: $(TARGET_PRIMARY) $(topdir)tools/signatures_$(PLATFORMOS).h 
    41         @echo \-\> $@ 
    42         rm -f stubs_entry.S.err 
    43         if [ -s $(TARGET_PRIMARY) ] ; then \ 
    44           $(topdir)tools/finsig $(TARGET_PRIMARY) $(ROMBASEADDR) > stubs_entry.S ; \ 
    45         else \ 
    46           echo CAUTION! \'stubs_entry.S\' is not uptated due to target firmware binary not found! ; \ 
    47           touch stubs_entry.S ; \ 
    48         fi ; \ 
    49         if [ "X`grep 'ERROR' stubs_entry.S`" != "X" ] ; then \ 
    50           grep "ERROR" stubs_entry.S | sed -r "s/\/\/ ERROR: ([^ ]+) is not found.*/\1/" | $(SORT) | uniq > stubs_nf.names ; \ 
    51           grep -E "NH?STUB" stubs_entry_2.S | sed -r "s/ *NH?STUB\( *([^ ,]+).*/\1/" | $(SORT) | uniq > stubs_mn.names ; \ 
    52           comm -23 stubs_nf.names stubs_mn.names > stubs_not_found_names.err ; \ 
    53           rm -f stubs_nf.names stubs_mn.names ; \ 
    54           if [ -s stubs_not_found_names.err ] ; then \ 
    55             echo ERROR! There are unresolved addresses in \'stubs_entry.S\' \($(PLATFORM)-$(PLATFORMSUB)\) for the following names: ; \ 
    56             cat stubs_not_found_names.err ; \ 
    57             echo Please, add them into \'stubs_entry_2.S\' manually! ; \ 
    58             mv stubs_entry.S stubs_entry.S.err ; \ 
    59             exit 1 ; \ 
    60           fi ; \ 
    61           rm -f stubs_not_found_names.err ; \ 
    62         fi 
    63  
    64 $(TARGET_PRIMARY): 
    65         touch $(TARGET_PRIMARY) 
    66  
    67 include $(topdir)bottom.inc 
     6include $(topdir)/platform/makefile_sub.inc 
  • trunk/platform/g7/sub/100i/stubs_auto.S

    r267 r379  
    11/* THIS FILE IS GENERATED */ 
     2/* DO NOT EDIT THIS FILE! */ 
     3 
    24#include "stubs_asm.h" 
    35 
  • trunk/platform/g7/sub/100j/Makefile

    r301 r379  
    11topdir=../../../../ 
    22 
    3 include $(topdir)makefile.inc 
     3OBJS=boot.o stubs_min.o stubs_auto.o stubs_entry.o lib.o stubs_entry_2.o capt_seq.o movie_rec.o mount.o 
     4STUBS_AUTO_DEPS=boot.c capt_seq.c movie_rec.c mount.c 
    45 
    5 CFLAGS+=-DLOW_LEVEL 
    6  
    7 all: libplatformsub.a 
    8  
    9 TARGET_PRIMARY = PRIMARY.BIN 
    10 OBJS=boot.o stubs_min.o stubs_auto.o stubs_entry.o lib.o stubs_entry_2.o capt_seq.o movie_rec.o mount.o 
    11  
    12 libplatformsub.a: $(OBJS) 
    13  
    14 clean: 
    15         rm -f $(OBJS) libplatformsub.a stubs_entry.S.err stubs_not_found_names.err 
    16  
    17 distclean: clean 
    18         rm -f stubs_entry.S stubs_auto.S 
    19         rm -rf .dep 
    20  
    21  
    22 stubs_auto.S: boot.c capt_seq.c movie_rec.c mount.c 
    23         @echo $< \-\> $@ 
    24 ifeq ($(OSTYPE),Windows) 
    25         cat $^ | \ 
    26             grep 'BL\\?[[:space:]]*sub_[0-9A-Fa-f]' | \ 
    27             sed 's/.*sub_\\([0-9A-Fa-f]*\\).*/\\1/' | \ 
    28             $(SORT) | uniq | \ 
    29             awk 'BEGIN {print "/* THIS FILE IS GENERATED */\n#include \"stubs_asm.h\"\n"} \ 
    30                 {printf("STUB(%s)\n",$$1)}' > stubs_auto.S 
    31 else     
    32         cat $^ | \ 
    33             grep 'BL\?[[:space:]]*sub_[0-9A-Fa-f]' | \ 
    34             sed 's/.*sub_\([0-9A-Fa-f]*\).*/\1/' | \ 
    35             $(SORT) | uniq | \ 
    36             awk 'BEGIN {print "/* THIS FILE IS GENERATED */\n#include \"stubs_asm.h\"\n"} \ 
    37                 {printf("STUB(%s)\n",$$1)}' > stubs_auto.S 
    38 endif 
    39  
    40 stubs_entry.S: $(TARGET_PRIMARY) $(topdir)tools/signatures_$(PLATFORMOS).h 
    41         @echo \-\> $@ 
    42         rm -f stubs_entry.S.err 
    43         if [ -s $(TARGET_PRIMARY) ] ; then \ 
    44           $(topdir)tools/finsig $(TARGET_PRIMARY) $(ROMBASEADDR) > stubs_entry.S ; \ 
    45         else \ 
    46           echo CAUTION! \'stubs_entry.S\' is not uptated due to target firmware binary not found! ; \ 
    47           touch stubs_entry.S ; \ 
    48         fi ; \ 
    49         if [ "X`grep 'ERROR' stubs_entry.S`" != "X" ] ; then \ 
    50           grep "ERROR" stubs_entry.S | sed -r "s/\/\/ ERROR: ([^ ]+) is not found.*/\1/" | $(SORT) | uniq > stubs_nf.names ; \ 
    51           grep -E "NH?STUB" stubs_entry_2.S | sed -r "s/ *NH?STUB\( *([^ ,]+).*/\1/" | $(SORT) | uniq > stubs_mn.names ; \ 
    52           comm -23 stubs_nf.names stubs_mn.names > stubs_not_found_names.err ; \ 
    53           rm -f stubs_nf.names stubs_mn.names ; \ 
    54           if [ -s stubs_not_found_names.err ] ; then \ 
    55             echo ERROR! There are unresolved addresses in \'stubs_entry.S\' \($(PLATFORM)-$(PLATFORMSUB)\) for the following names: ; \ 
    56             cat stubs_not_found_names.err ; \ 
    57             echo Please, add them into \'stubs_entry_2.S\' manually! ; \ 
    58             mv stubs_entry.S stubs_entry.S.err ; \ 
    59             exit 1 ; \ 
    60           fi ; \ 
    61           rm -f stubs_not_found_names.err ; \ 
    62         fi 
    63  
    64 $(TARGET_PRIMARY): 
    65         touch $(TARGET_PRIMARY) 
    66  
    67 include $(topdir)bottom.inc 
     6include $(topdir)/platform/makefile_sub.inc 
  • trunk/platform/g7/sub/100j/stubs_auto.S

    r267 r379  
    11/* THIS FILE IS GENERATED */ 
     2/* DO NOT EDIT THIS FILE! */ 
     3 
    24#include "stubs_asm.h" 
    35 
  • trunk/platform/ixus40_sd300/sub/100k/Makefile

    r301 r379  
    11topdir=../../../../ 
    22 
    3 include $(topdir)makefile.inc 
     3OBJS=boot.o stubs_min.o stubs_auto.o stubs_entry.o lib.o stubs_entry_2.o capt_seq.o movie_rec.o 
     4STUBS_AUTO_DEPS=boot.c capt_seq.c movie_rec.c 
    45 
    5 CFLAGS+=-DLOW_LEVEL 
    6  
    7 all: libplatformsub.a 
    8  
    9 TARGET_PRIMARY = PRIMARY.BIN 
    10 OBJS=boot.o stubs_min.o stubs_auto.o stubs_entry.o lib.o stubs_entry_2.o capt_seq.o movie_rec.o 
    11  
    12 libplatformsub.a: $(OBJS) 
    13  
    14 clean: 
    15         rm -f $(OBJS) libplatformsub.a stubs_entry.S.err stubs_not_found_names.err 
    16  
    17 distclean: clean 
    18         rm -f stubs_entry.S stubs_auto.S 
    19         rm -rf .dep 
    20  
    21  
    22 stubs_auto.S: boot.c capt_seq.c movie_rec.c 
    23         @echo $< \-\> $@ 
    24 ifeq ($(OSTYPE),Windows) 
    25         cat $^ | \ 
    26             grep 'BL\\?[[:space:]]*sub_[0-9A-Fa-f]' | \ 
    27             sed 's/.*sub_\\([0-9A-Fa-f]*\\).*/\\1/' | \ 
    28             $(SORT) | uniq | \ 
    29             awk 'BEGIN {print "/* THIS FILE IS GENERATED */\n#include \"stubs_asm.h\"\n"} \ 
    30                 {printf("STUB(%s)\n",$$1)}' > stubs_auto.S 
    31 else     
    32         cat $^ | \ 
    33             grep 'BL\?[[:space:]]*sub_[0-9A-Fa-f]' | \ 
    34             sed 's/.*sub_\([0-9A-Fa-f]*\).*/\1/' | \ 
    35             $(SORT) | uniq | \ 
    36             awk 'BEGIN {print "/* THIS FILE IS GENERATED */\n#include \"stubs_asm.h\"\n"} \ 
    37                 {printf("STUB(%s)\n",$$1)}' > stubs_auto.S 
    38 endif 
    39  
    40 stubs_entry.S: $(TARGET_PRIMARY) $(topdir)tools/signatures_$(PLATFORMOS).h 
    41         @echo \-\> $@ 
    42         rm -f stubs_entry.S.err 
    43         if [ -s $(TARGET_PRIMARY) ] ; then \ 
    44           $(topdir)tools/finsig $(TARGET_PRIMARY) $(ROMBASEADDR) > stubs_entry.S ; \ 
    45         else \ 
    46           echo CAUTION! \'stubs_entry.S\' is not uptated due to target firmware binary not found! ; \ 
    47           touch stubs_entry.S ; \ 
    48         fi ; \ 
    49         if [ "X`grep 'ERROR' stubs_entry.S`" != "X" ] ; then \ 
    50           grep "ERROR" stubs_entry.S | sed -r "s/\/\/ ERROR: ([^ ]+) is not found.*/\1/" | $(SORT) | uniq > stubs_nf.names ; \ 
    51           grep -E "NH?STUB" stubs_entry_2.S | sed -r "s/ *NH?STUB\( *([^ ,]+).*/\1/" | $(SORT) | uniq > stubs_mn.names ; \ 
    52           comm -23 stubs_nf.names stubs_mn.names > stubs_not_found_names.err ; \ 
    53           rm -f stubs_nf.names stubs_mn.names ; \ 
    54           if [ -s stubs_not_found_names.err ] ; then \ 
    55             echo ERROR! There are unresolved addresses in \'stubs_entry.S\' \($(PLATFORM)-$(PLATFORMSUB)\) for the following names: ; \ 
    56             cat stubs_not_found_names.err ; \ 
    57             echo Please, add them into \'stubs_entry_2.S\' manually! ; \ 
    58             mv stubs_entry.S stubs_entry.S.err ; \ 
    59             exit 1 ; \ 
    60           fi ; \ 
    61           rm -f stubs_not_found_names.err ; \ 
    62         fi 
    63  
    64 $(TARGET_PRIMARY): 
    65         touch $(TARGET_PRIMARY) 
    66  
    67 include $(topdir)bottom.inc 
     6include $(topdir)/platform/makefile_sub.inc 
  • trunk/platform/ixus50_sd400/sub/101a/Makefile

    r301 r379  
    11topdir=../../../../ 
    22 
    3 include $(topdir)makefile.inc 
     3OBJS=boot.o stubs_min.o stubs_auto.o stubs_entry.o lib.o stubs_entry_2.o capt_seq.o movie_rec.o 
     4STUBS_AUTO_DEPS=boot.c capt_seq.c movie_rec.c 
    45 
    5 CFLAGS+=-DLOW_LEVEL 
    6  
    7 all: libplatformsub.a 
    8  
    9 TARGET_PRIMARY = PRIMARY.BIN 
    10 OBJS=boot.o stubs_min.o stubs_auto.o stubs_entry.o lib.o stubs_entry_2.o capt_seq.o movie_rec.o 
    11  
    12 libplatformsub.a: $(OBJS) 
    13  
    14 clean: 
    15         rm -f $(OBJS) libplatformsub.a stubs_entry.S.err stubs_not_found_names.err 
    16  
    17 distclean: clean 
    18         rm -f stubs_entry.S stubs_auto.S 
    19         rm -rf .dep 
    20  
    21  
    22 stubs_auto.S: boot.c capt_seq.c movie_rec.c 
    23         @echo $< \-\> $@ 
    24 ifeq ($(OSTYPE),Windows) 
    25         cat $^ | \ 
    26             grep 'BL\\?[[:space:]]*sub_[0-9A-Fa-f]' | \ 
    27             sed 's/.*sub_\\([0-9A-Fa-f]*\\).*/\\1/' | \ 
    28             $(SORT) | uniq | \ 
    29             awk 'BEGIN {print "/* THIS FILE IS GENERATED */\n#include \"stubs_asm.h\"\n"} \ 
    30                 {printf("STUB(%s)\n",$$1)}' > stubs_auto.S 
    31 else     
    32         cat $^ | \ 
    33             grep 'BL\?[[:space:]]*sub_[0-9A-Fa-f]' | \ 
    34             sed 's/.*sub_\([0-9A-Fa-f]*\).*/\1/' | \ 
    35             $(SORT) | uniq | \ 
    36             awk 'BEGIN {print "/* THIS FILE IS GENERATED */\n#include \"stubs_asm.h\"\n"} \ 
    37                 {printf("STUB(%s)\n",$$1)}' > stubs_auto.S 
    38 endif 
    39  
    40 stubs_entry.S: $(TARGET_PRIMARY) $(topdir)tools/signatures_$(PLATFORMOS).h 
    41         @echo \-\> $@ 
    42         rm -f stubs_entry.S.err 
    43         if [ -s $(TARGET_PRIMARY) ] ; then \ 
    44           $(topdir)tools/finsig $(TARGET_PRIMARY) $(ROMBASEADDR) > stubs_entry.S ; \ 
    45         else \ 
    46           echo CAUTION! \'stubs_entry.S\' is not uptated due to target firmware binary not found! ; \ 
    47           touch stubs_entry.S ; \ 
    48         fi ; \ 
    49         if [ "X`grep 'ERROR' stubs_entry.S`" != "X" ] ; then \ 
    50           grep "ERROR" stubs_entry.S | sed -r "s/\/\/ ERROR: ([^ ]+) is not found.*/\1/" | $(SORT) | uniq > stubs_nf.names ; \ 
    51           grep -E "NH?STUB" stubs_entry_2.S | sed -r "s/ *NH?STUB\( *([^ ,]+).*/\1/" | $(SORT) | uniq > stubs_mn.names ; \ 
    52           comm -23 stubs_nf.names stubs_mn.names > stubs_not_found_names.err ; \ 
    53           rm -f stubs_nf.names stubs_mn.names ; \ 
    54           if [ -s stubs_not_found_names.err ] ; then \ 
    55             echo ERROR! There are unresolved addresses in \'stubs_entry.S\' \($(PLATFORM)-$(PLATFORMSUB)\) for the following names: ; \ 
    56             cat stubs_not_found_names.err ; \ 
    57             echo Please, add them into \'stubs_entry_2.S\' manually! ; \ 
    58             mv stubs_entry.S stubs_entry.S.err ; \ 
    59             exit 1 ; \ 
    60           fi ; \ 
    61           rm -f stubs_not_found_names.err ; \ 
    62         fi 
    63  
    64 $(TARGET_PRIMARY): 
    65         touch $(TARGET_PRIMARY) 
    66  
    67 include $(topdir)bottom.inc 
     6include $(topdir)/platform/makefile_sub.inc 
  • trunk/platform/ixus55_sd450/sub/100b/Makefile

    r313 r379  
    11topdir=../../../../ 
    22 
    3 include $(topdir)makefile.inc 
     3OBJS=boot.o stubs_min.o stubs_auto.o stubs_entry.o lib.o stubs_entry_2.o capt_seq.o movie_rec.o 
     4STUBS_AUTO_DEPS=boot.c capt_seq.c movie_rec.c 
    45 
    5 CFLAGS+=-DLOW_LEVEL 
    6  
    7 all: libplatformsub.a 
    8  
    9 TARGET_PRIMARY = PRIMARY.BIN 
    10 OBJS=boot.o stubs_min.o stubs_auto.o stubs_entry.o lib.o stubs_entry_2.o capt_seq.o movie_rec.o 
    11  
    12 libplatformsub.a: $(OBJS) 
    13  
    14 clean: 
    15         rm -f $(OBJS) libplatformsub.a stubs_entry.S.err stubs_not_found_names.err 
    16  
    17 distclean: clean 
    18         rm -f stubs_entry.S stubs_auto.S 
    19         rm -rf .dep 
    20  
    21  
    22 stubs_auto.S: boot.c capt_seq.c movie_rec.c 
    23         @echo $< \-\> $@ 
    24 ifeq ($(OSTYPE),Windows) 
    25         cat $^ | \ 
    26             grep 'BL\\?[[:space:]]*sub_[0-9A-Fa-f]' | \ 
    27             sed 's/.*sub_\\([0-9A-Fa-f]*\\).*/\\1/' | \ 
    28             $(SORT) | uniq | \ 
    29             awk 'BEGIN {print "/* THIS FILE IS GENERATED */\n#include \"stubs_asm.h\"\n"} \ 
    30                 {printf("STUB(%s)\n",$$1)}' > stubs_auto.S 
    31 else     
    32         cat $^ | \ 
    33             grep 'BL\?[[:space:]]*sub_[0-9A-Fa-f]' | \ 
    34             sed 's/.*sub_\([0-9A-Fa-f]*\).*/\1/' | \ 
    35             $(SORT) | uniq | \ 
    36             awk 'BEGIN {print "/* THIS FILE IS GENERATED */\n#include \"stubs_asm.h\"\n"} \ 
    37                 {printf("STUB(%s)\n",$$1)}' > stubs_auto.S 
    38 endif 
    39  
    40 stubs_entry.S: $(TARGET_PRIMARY) $(topdir)tools/signatures_$(PLATFORMOS).h 
    41         @echo \-\> $@ 
    42         rm -f stubs_entry.S.err 
    43         if [ -s $(TARGET_PRIMARY) ] ; then \ 
    44           $(topdir)tools/finsig $(TARGET_PRIMARY) $(ROMBASEADDR) > stubs_entry.S ; \ 
    45         else \ 
    46           echo CAUTION! \'stubs_entry.S\' is not uptated due to target firmware binary not found! ; \ 
    47           touch stubs_entry.S ; \ 
    48         fi ; \ 
    49         if [ "X`grep 'ERROR' stubs_entry.S`" != "X" ] ; then \ 
    50           grep "ERROR" stubs_entry.S | sed -r "s/\/\/ ERROR: ([^ ]+) is not found.*/\1/" | $(SORT) | uniq > stubs_nf.names ; \ 
    51           grep -E "NH?STUB" stubs_entry_2.S | sed -r "s/ *NH?STUB\( *([^ ,]+).*/\1/" | $(SORT) | uniq > stubs_mn.names ; \ 
    52           comm -23 stubs_nf.names stubs_mn.names > stubs_not_found_names.err ; \ 
    53           rm -f stubs_nf.names stubs_mn.names ; \ 
    54           if [ -s stubs_not_found_names.err ] ; then \ 
    55             echo ERROR! There are unresolved addresses in \'stubs_entry.S\' \($(PLATFORM)-$(PLATFORMSUB)\) for the following names: ; \ 
    56             cat stubs_not_found_names.err ; \ 
    57             echo Please, add them into \'stubs_entry_2.S\' manually! ; \ 
    58             mv stubs_entry.S stubs_entry.S.err ; \ 
    59             exit 1 ; \ 
    60           fi ; \ 
    61           rm -f stubs_not_found_names.err ; \ 
    62         fi 
    63  
    64 $(TARGET_PRIMARY): 
    65         touch $(TARGET_PRIMARY) 
    66  
    67 include $(topdir)bottom.inc 
     6include $(topdir)/platform/makefile_sub.inc 
  • trunk/platform/ixus55_sd450/sub/100b/stubs_auto.S

    r313 r379  
    11/* THIS FILE IS GENERATED */ 
     2/* DO NOT EDIT THIS FILE! */ 
     3 
    24#include "stubs_asm.h" 
    35 
  • trunk/platform/ixus55_sd450/sub/100c/Makefile

    r313 r379  
    11topdir=../../../../ 
    22 
    3 include $(topdir)makefile.inc 
     3OBJS=boot.o stubs_min.o stubs_auto.o stubs_entry.o lib.o stubs_entry_2.o capt_seq.o movie_rec.o 
     4STUBS_AUTO_DEPS=boot.c capt_seq.c movie_rec.c 
    45 
    5 CFLAGS+=-DLOW_LEVEL 
    6  
    7 all: libplatformsub.a 
    8  
    9 TARGET_PRIMARY = PRIMARY.BIN 
    10 OBJS=boot.o stubs_min.o stubs_auto.o stubs_entry.o lib.o stubs_entry_2.o capt_seq.o movie_rec.o 
    11  
    12 libplatformsub.a: $(OBJS) 
    13  
    14 clean: 
    15         rm -f $(OBJS) libplatformsub.a stubs_entry.S.err stubs_not_found_names.err 
    16  
    17 distclean: clean 
    18         rm -f stubs_entry.S stubs_auto.S 
    19         rm -rf .dep 
    20  
    21  
    22 stubs_auto.S: boot.c capt_seq.c movie_rec.c 
    23         @echo $< \-\> $@ 
    24 ifeq ($(OSTYPE),Windows) 
    25         cat $^ | \ 
    26             grep 'BL\\?[[:space:]]*sub_[0-9A-Fa-f]' | \ 
    27             sed 's/.*sub_\\([0-9A-Fa-f]*\\).*/\\1/' | \ 
    28             $(SORT) | uniq | \ 
    29             awk 'BEGIN {print "/* THIS FILE IS GENERATED */\n#include \"stubs_asm.h\"\n"} \ 
    30                 {printf("STUB(%s)\n",$$1)}' > stubs_auto.S 
    31 else     
    32         cat $^ | \ 
    33             grep 'BL\?[[:space:]]*sub_[0-9A-Fa-f]' | \ 
    34             sed 's/.*sub_\([0-9A-Fa-f]*\).*/\1/' | \ 
    35             $(SORT) | uniq | \ 
    36             awk 'BEGIN {print "/* THIS FILE IS GENERATED */\n#include \"stubs_asm.h\"\n"} \ 
    37                 {printf("STUB(%s)\n",$$1)}' > stubs_auto.S 
    38 endif 
    39  
    40 stubs_entry.S: $(TARGET_PRIMARY) $(topdir)tools/signatures_$(PLATFORMOS).h 
    41         @echo \-\> $@ 
    42         rm -f stubs_entry.S.err 
    43         if [ -s $(TARGET_PRIMARY) ] ; then \ 
    44           $(topdir)tools/finsig $(TARGET_PRIMARY) $(ROMBASEADDR) > stubs_entry.S ; \ 
    45         else \ 
    46           echo CAUTION! \'stubs_entry.S\' is not uptated due to target firmware binary not found! ; \ 
    47           touch stubs_entry.S ; \ 
    48         fi ; \ 
    49         if [ "X`grep 'ERROR' stubs_entry.S`" != "X" ] ; then \ 
    50           grep "ERROR" stubs_entry.S | sed -r "s/\/\/ ERROR: ([^ ]+) is not found.*/\1/" | $(SORT) | uniq > stubs_nf.names ; \ 
    51           grep -E "NH?STUB" stubs_entry_2.S | sed -r "s/ *NH?STUB\( *([^ ,]+).*/\1/" | $(SORT) | uniq > stubs_mn.names ; \ 
    52           comm -23 stubs_nf.names stubs_mn.names > stubs_not_found_names.err ; \ 
    53           rm -f stubs_nf.names stubs_mn.names ; \ 
    54           if [ -s stubs_not_found_names.err ] ; then \ 
    55             echo ERROR! There are unresolved addresses in \'stubs_entry.S\' \($(PLATFORM)-$(PLATFORMSUB)\) for the following names: ; \ 
    56             cat stubs_not_found_names.err ; \ 
    57             echo Please, add them into \'stubs_entry_2.S\' manually! ; \ 
    58             mv stubs_entry.S stubs_entry.S.err ; \ 
    59             exit 1 ; \ 
    60           fi ; \ 
    61           rm -f stubs_not_found_names.err ; \ 
    62         fi 
    63  
    64 $(TARGET_PRIMARY): 
    65         touch $(TARGET_PRIMARY) 
    66  
    67 include $(topdir)bottom.inc 
     6include $(topdir)/platform/makefile_sub.inc 
  • trunk/platform/ixus55_sd450/sub/100c/stubs_auto.S

    r313 r379  
    11/* THIS FILE IS GENERATED */ 
     2/* DO NOT EDIT THIS FILE! */ 
     3 
    24#include "stubs_asm.h" 
    35 
  • trunk/platform/ixus65_sd630/sub/100a/Makefile

    r344 r379  
    11topdir=../../../../ 
    22 
    3 include $(topdir)makefile.inc 
     3OBJS=boot.o stubs_min.o stubs_auto.o stubs_entry.o lib.o stubs_entry_2.o capt_seq.o 
     4STUBS_AUTO_DEPS=boot.c capt_seq.c 
    45 
    5 CFLAGS+=-DLOW_LEVEL 
    6  
    7 all: libplatformsub.a 
    8  
    9 TARGET_PRIMARY = PRIMARY.BIN 
    10 OBJS=boot.o stubs_min.o stubs_auto.o stubs_entry.o lib.o stubs_entry_2.o capt_seq.o 
    11  
    12 libplatformsub.a: $(OBJS) 
    13  
    14 clean: 
    15         rm -f $(OBJS) libplatformsub.a stubs_entry.S.err stubs_not_found_names.err 
    16  
    17 distclean: clean 
    18         rm -f stubs_entry.S stubs_auto.S 
    19         rm -rf .dep 
    20  
    21  
    22 stubs_auto.S: boot.c capt_seq.c 
    23         @echo $< \-\> $@ 
    24 ifeq ($(OSTYPE),Windows) 
    25         cat $^ | \ 
    26             grep 'BL\\?[[:space:]]*sub_[0-9A-Fa-f]' | \ 
    27             sed 's/.*sub_\\([0-9A-Fa-f]*\\).*/\\1/' | \ 
    28             $(SORT) | uniq | \ 
    29             awk 'BEGIN {print "/* THIS FILE IS GENERATED */\n#include \"stubs_asm.h\"\n"} \ 
    30                 {printf("STUB(%s)\n",$$1)}' > stubs_auto.S 
    31 else     
    32         cat $^ | \ 
    33             grep 'BL\?[[:space:]]*sub_[0-9A-Fa-f]' | \ 
    34             sed 's/.*sub_\([0-9A-Fa-f]*\).*/\1/' | \ 
    35             $(SORT) | uniq | \ 
    36             awk 'BEGIN {print "/* THIS FILE IS GENERATED */\n#include \"stubs_asm.h\"\n"} \ 
    37                 {printf("STUB(%s)\n",$$1)}' > stubs_auto.S 
    38 endif 
    39  
    40 stubs_entry.S: $(TARGET_PRIMARY) $(topdir)tools/signatures_$(PLATFORMOS).h $(topdir)tools/finsig$(EXE) 
    41         @echo \-\> $@ 
    42         rm -f stubs_entry.S.err 
    43         if [ -s $(TARGET_PRIMARY) ] ; then \ 
    44           $(topdir)tools/finsig $(TARGET_PRIMARY) $(ROMBASEADDR) > stubs_entry.S ; \ 
    45         else \ 
    46           echo CAUTION! \'stubs_entry.S\' is not uptated due to target firmware binary not found! ; \ 
    47           touch stubs_entry.S ; \ 
    48         fi ; \ 
    49         if [ "X`grep 'ERROR' stubs_entry.S`" != "X" ] ; then \ 
    50           grep "ERROR" stubs_entry.S | sed -r "s/\/\/ ERROR: ([^ ]+) is not found.*/\1/" | $(SORT) | uniq > stubs_nf.names ; \ 
    51           grep -E "NH?STUB" stubs_entry_2.S | sed -r "s/ *NH?STUB\( *([^ ,]+).*/\1/" | $(SORT) | uniq > stubs_mn.names ; \ 
    52           comm -23 stubs_nf.names stubs_mn.names > stubs_not_found_names.err ; \ 
    53           rm -f stubs_nf.names stubs_mn.names ; \ 
    54           if [ -s stubs_not_found_names.err ] ; then \ 
    55             echo ERROR! There are unresolved addresses in \'stubs_entry.S\' \($(PLATFORM)-$(PLATFORMSUB)\) for the following names: ; \ 
    56             cat stubs_not_found_names.err ; \ 
    57             echo Please, add them into \'stubs_entry_2.S\' manually! ; \ 
    58             mv stubs_entry.S stubs_entry.S.err ; \ 
    59             exit 1 ; \ 
    60           fi ; \ 
    61           rm -f stubs_not_found_names.err ; \ 
    62         fi 
    63  
    64 $(TARGET_PRIMARY): 
    65         touch $(TARGET_PRIMARY) 
    66  
    67 include $(topdir)bottom.inc 
     6include $(topdir)/platform/makefile_sub.inc 
  • trunk/platform/ixus65_sd630/sub/100a/stubs_auto.S

    r343 r379  
    11/* THIS FILE IS GENERATED */ 
     2/* DO NOT EDIT THIS FILE! */ 
     3 
    24#include "stubs_asm.h" 
    35 
  • trunk/platform/ixus700_sd500/sub/101a/Makefile

    r301 r379  
    11topdir=../../../../ 
    22 
    3 include $(topdir)makefile.inc 
     3OBJS=boot.o stubs_min.o stubs_auto.o stubs_entry.o lib.o stubs_entry_2.o capt_seq.o movie_rec.o 
     4STUBS_AUTO_DEPS=boot.c capt_seq.c movie_rec.c 
    45 
    5 CFLAGS+=-DLOW_LEVEL 
    6  
    7 all: libplatformsub.a 
    8  
    9 TARGET_PRIMARY = PRIMARY.BIN 
    10 OBJS=boot.o stubs_min.o stubs_auto.o stubs_entry.o lib.o stubs_entry_2.o capt_seq.o movie_rec.o 
    11  
    12 libplatformsub.a: $(OBJS) 
    13  
    14 clean: 
    15         rm -f $(OBJS) libplatformsub.a stubs_entry.S.err stubs_not_found_names.err 
    16  
    17 distclean: clean 
    18         rm -f stubs_entry.S stubs_auto.S 
    19         rm -rf .dep 
    20  
    21  
    22 stubs_auto.S: boot.c capt_seq.c movie_rec.c 
    23         @echo $< \-\> $@ 
    24 ifeq ($(OSTYPE),Windows) 
    25         cat $^ | \ 
    26             grep 'BL\\?[[:space:]]*sub_[0-9A-Fa-f]' | \ 
    27             sed 's/.*sub_\\([0-9A-Fa-f]*\\).*/\\1/' | \ 
    28             $(SORT) | uniq | \ 
    29             awk 'BEGIN {print "/* THIS FILE IS GENERATED */\n#include \"stubs_asm.h\"\n"} \ 
    30                 {printf("STUB(%s)\n",$$1)}' > stubs_auto.S 
    31 else     
    32         cat $^ | \ 
    33             grep 'BL\?[[:space:]]*sub_[0-9A-Fa-f]' | \ 
    34             sed 's/.*sub_\([0-9A-Fa-f]*\).*/\1/' | \ 
    35             $(SORT) | uniq | \ 
    36             awk 'BEGIN {print "/* THIS FILE IS GENERATED */\n#include \"stubs_asm.h\"\n"} \ 
    37                 {printf("STUB(%s)\n",$$1)}' > stubs_auto.S 
    38 endif 
    39  
    40 stubs_entry.S: $(TARGET_PRIMARY) $(topdir)tools/signatures_$(PLATFORMOS).h 
    41         @echo \-\> $@ 
    42         rm -f stubs_entry.S.err 
    43         if [ -s $(TARGET_PRIMARY) ] ; then \ 
    44           $(topdir)tools/finsig $(TARGET_PRIMARY) $(ROMBASEADDR) > stubs_entry.S ; \ 
    45         else \ 
    46           echo CAUTION! \'stubs_entry.S\' is not uptated due to target firmware binary not found! ; \ 
    47           touch stubs_entry.S ; \ 
    48         fi ; \ 
    49         if [ "X`grep 'ERROR' stubs_entry.S`" != "X" ] ; then \ 
    50           grep "ERROR" stubs_entry.S | sed -r "s/\/\/ ERROR: ([^ ]+) is not found.*/\1/" | $(SORT) | uniq > stubs_nf.names ; \ 
    51           grep -E "NH?STUB" stubs_entry_2.S | sed -r "s/ *NH?STUB\( *([^ ,]+).*/\1/" | $(SORT) | uniq > stubs_mn.names ; \ 
    52           comm -23 stubs_nf.names stubs_mn.names > stubs_not_found_names.err ; \ 
    53           rm -f stubs_nf.names stubs_mn.names ; \ 
    54           if [ -s stubs_not_found_names.err ] ; then \ 
    55             echo ERROR! There are unresolved addresses in \'stubs_entry.S\' \($(PLATFORM)-$(PLATFORMSUB)\) for the following names: ; \ 
    56             cat stubs_not_found_names.err ; \ 
    57             echo Please, add them into \'stubs_entry_2.S\' manually! ; \ 
    58             mv stubs_entry.S stubs_entry.S.err ; \ 
    59             exit 1 ; \ 
    60           fi ; \ 
    61           rm -f stubs_not_found_names.err ; \ 
    62         fi 
    63  
    64 $(TARGET_PRIMARY): 
    65         touch $(TARGET_PRIMARY) 
    66  
    67 include $(topdir)bottom.inc 
     6include $(topdir)/platform/makefile_sub.inc 
  • trunk/platform/ixus700_sd500/sub/101a/stubs_auto.S

    r246 r379  
    11/* THIS FILE IS GENERATED */ 
     2/* DO NOT EDIT THIS FILE! */ 
     3 
    24#include "stubs_asm.h" 
    35 
  • trunk/platform/ixus700_sd500/sub/101b/Makefile

    r301 r379  
    11topdir=../../../../ 
    22 
    3 include $(topdir)makefile.inc 
     3OBJS=boot.o stubs_min.o stubs_auto.o stubs_entry.o lib.o stubs_entry_2.o capt_seq.o movie_rec.o 
     4STUBS_AUTO_DEPS=boot.c capt_seq.c movie_rec.c 
    45 
    5 CFLAGS+=-DLOW_LEVEL 
    6  
    7 all: libplatformsub.a 
    8  
    9 TARGET_PRIMARY = PRIMARY.BIN 
    10 OBJS=boot.o stubs_min.o stubs_auto.o stubs_entry.o lib.o stubs_entry_2.o capt_seq.o movie_rec.o 
    11  
    12 libplatformsub.a: $(OBJS) 
    13  
    14 clean: 
    15         rm -f $(OBJS) libplatformsub.a stubs_entry.S.err stubs_not_found_names.err 
    16  
    17 distclean: clean 
    18         rm -f stubs_entry.S stubs_auto.S 
    19         rm -rf .dep 
    20  
    21  
    22 stubs_auto.S: boot.c capt_seq.c movie_rec.c 
    23         @echo $< \-\> $@ 
    24 ifeq ($(OSTYPE),Windows) 
    25         cat $^ | \ 
    26             grep 'BL\\?[[:space:]]*sub_[0-9A-Fa-f]' | \ 
    27             sed 's/.*sub_\\([0-9A-Fa-f]*\\).*/\\1/' | \ 
    28             $(SORT) | uniq | \ 
    29             awk 'BEGIN {print "/* THIS FILE IS GENERATED */\n#include \"stubs_asm.h\"\n"} \ 
    30                 {printf("STUB(%s)\n",$$1)}' > stubs_auto.S 
    31 else     
    32         cat $^ | \ 
    33             grep 'BL\?[[:space:]]*sub_[0-9A-Fa-f]' | \ 
    34             sed 's/.*sub_\([0-9A-Fa-f]*\).*/\1/' | \ 
    35             $(SORT) | uniq | \ 
    36             awk 'BEGIN {print "/* THIS FILE IS GENERATED */\n#include \"stubs_asm.h\"\n"} \ 
    37                 {printf("STUB(%s)\n",$$1)}' > stubs_auto.S 
    38 endif 
    39  
    40 stubs_entry.S: $(TARGET_PRIMARY) $(topdir)tools/signatures_$(PLATFORMOS).h 
    41         @echo \-\> $@ 
    42         rm -f stubs_entry.S.err 
    43         if [ -s $(TARGET_PRIMARY) ] ; then \ 
    44           $(topdir)tools/finsig $(TARGET_PRIMARY) $(ROMBASEADDR) > stubs_entry.S ; \ 
    45         else \ 
    46           echo CAUTION! \'stubs_entry.S\' is not uptated due to target firmware binary not found! ; \ 
    47           touch stubs_entry.S ; \ 
    48         fi ; \ 
    49         if [ "X`grep 'ERROR' stubs_entry.S`" != "X" ] ; then \ 
    50           grep "ERROR" stubs_entry.S | sed -r "s/\/\/ ERROR: ([^ ]+) is not found.*/\1/" | $(SORT) | uniq > stubs_nf.names ; \ 
    51           grep -E "NH?STUB" stubs_entry_2.S | sed -r "s/ *NH?STUB\( *([^ ,]+).*/\1/" | $(SORT) | uniq > stubs_mn.names ; \ 
    52           comm -23 stubs_nf.names stubs_mn.names > stubs_not_found_names.err ; \ 
    53           rm -f stubs_nf.names stubs_mn.names ; \ 
    54           if [ -s stubs_not_found_names.err ] ; then \ 
    55             echo ERROR! There are unresolved addresses in \'stubs_entry.S\' \($(PLATFORM)-$(PLATFORMSUB)\) for the following names: ; \ 
    56             cat stubs_not_found_names.err ; \ 
    57             echo Please, add them into \'stubs_entry_2.S\' manually! ; \ 
    58             mv stubs_entry.S stubs_entry.S.err ; \ 
    59             exit 1 ; \ 
    60           fi ; \ 
    61           rm -f stubs_not_found_names.err ; \ 
    62         fi 
    63  
    64 $(TARGET_PRIMARY): 
    65         touch $(TARGET_PRIMARY) 
    66  
    67 include $(topdir)bottom.inc 
     6include $(topdir)/platform/makefile_sub.inc 
  • trunk/platform/ixus700_sd500/sub/101b/stubs_auto.S

    r246 r379  
    11/* THIS FILE IS GENERATED */ 
     2/* DO NOT EDIT THIS FILE! */ 
     3 
    24#include "stubs_asm.h" 
    35 
  • trunk/platform/ixus70_sd1000/sub/100c/Makefile

    r339 r379  
    11topdir=../../../../ 
    22 
    3 include $(topdir)makefile.inc 
     3OBJS=boot.o stubs_min.o stubs_auto.o stubs_entry.o lib.o stubs_entry_2.o capt_seq.o movie_rec.o 
     4STUBS_AUTO_DEPS=boot.c capt_seq.c movie_rec.c 
    45 
    5 CFLAGS+=-DLOW_LEVEL 
    6  
    7 all: libplatformsub.a 
    8  
    9 TARGET_PRIMARY = PRIMARY.BIN 
    10 OBJS=boot.o stubs_min.o stubs_auto.o stubs_entry.o lib.o stubs_entry_2.o capt_seq.o movie_rec.o 
    11  
    12 libplatformsub.a: $(OBJS) 
    13  
    14 clean: 
    15         rm -f $(OBJS) libplatformsub.a stubs_entry.S.err stubs_not_found_names.err 
    16  
    17 distclean: clean 
    18         rm -f stubs_entry.S stubs_auto.S 
    19         rm -rf .dep 
    20  
    21  
    22 stubs_auto.S: boot.c capt_seq.c movie_rec.c 
    23         @echo $< \-\> $@ 
    24 ifeq ($(OSTYPE),Windows) 
    25         cat $^ | \ 
    26             grep 'BL\\?[[:space:]]*sub_[0-9A-Fa-f]' | \ 
    27             sed 's/.*sub_\\([0-9A-Fa-f]*\\).*/\\1/' | \ 
    28             $(SORT) | uniq | \ 
    29             awk 'BEGIN {print "/* THIS FILE IS GENERATED */\n#include \"stubs_asm.h\"\n"} \ 
    30                 {printf("STUB(%s)\n",$$1)}' > stubs_auto.S 
    31 else     
    32         cat $^ | \ 
    33             grep 'BL\?[[:space:]]*sub_[0-9A-Fa-f]' | \ 
    34             sed 's/.*sub_\([0-9A-Fa-f]*\).*/\1/' | \ 
    35             $(SORT) | uniq | \ 
    36             awk 'BEGIN {print "/* THIS FILE IS GENERATED */\n#include \"stubs_asm.h\"\n"} \ 
    37                 {printf("STUB(%s)\n",$$1)}' > stubs_auto.S 
    38 endif 
    39  
    40 stubs_entry.S: $(TARGET_PRIMARY) $(topdir)tools/signatures_$(PLATFORMOS).h 
    41         @echo \-\> $@ 
    42         rm -f stubs_entry.S.err 
    43         if [ -s $(TARGET_PRIMARY) ] ; then \ 
    44           $(topdir)tools/finsig $(TARGET_PRIMARY) $(ROMBASEADDR) > stubs_entry.S ; \ 
    45         else \ 
    46           echo CAUTION! \'stubs_entry.S\' is not uptated due to target firmware binary not found! ; \ 
    47           touch stubs_entry.S ; \ 
    48         fi ; \ 
    49         if [ "X`grep 'ERROR' stubs_entry.S`" != "X" ] ; then \ 
    50           grep "ERROR" stubs_entry.S | sed -r "s/\/\/ ERROR: ([^ ]+) is not found.*/\1/" | $(SORT) | uniq > stubs_nf.names ; \ 
    51           grep -E "NH?STUB" stubs_entry_2.S | sed -r "s/ *NH?STUB\( *([^ ,]+).*/\1/" | $(SORT) | uniq > stubs_mn.names ; \ 
    52           comm -23 stubs_nf.names stubs_mn.names > stubs_not_found_names.err ; \ 
    53           rm -f stubs_nf.names stubs_mn.names ; \ 
    54           if [ -s stubs_not_found_names.err ] ; then \ 
    55             echo ERROR! There are unresolved addresses in \'stubs_entry.S\' \($(PLATFORM)-$(PLATFORMSUB)\) for the following names: ; \ 
    56             cat stubs_not_found_names.err ; \ 
    57             echo Please, add them into \'stubs_entry_2.S\' manually! ; \ 
    58             mv stubs_entry.S stubs_entry.S.err ; \ 
    59             exit 1 ; \ 
    60           fi ; \ 
    61           rm -f stubs_not_found_names.err ; \ 
    62         fi 
    63  
    64 $(TARGET_PRIMARY): 
    65         touch $(TARGET_PRIMARY) 
    66  
    67 include $(topdir)bottom.inc 
     6include $(topdir)/platform/makefile_sub.inc 
  • trunk/platform/ixus70_sd1000/sub/100c/stubs_auto.S

    r339 r379  
    11/* THIS FILE IS GENERATED */ 
     2/* DO NOT EDIT THIS FILE! */ 
     3 
    24#include "stubs_asm.h" 
    35 
  • trunk/platform/ixus70_sd1000/sub/101b/Makefile

    r301 r379  
    11topdir=../../../../ 
    22 
    3 include $(topdir)makefile.inc 
     3OBJS=boot.o stubs_min.o stubs_auto.o stubs_entry.o lib.o stubs_entry_2.o capt_seq.o movie_rec.o 
     4STUBS_AUTO_DEPS=boot.c capt_seq.c movie_rec.c 
    45 
    5 CFLAGS+=-DLOW_LEVEL 
    6  
    7 all: libplatformsub.a 
    8  
    9 TARGET_PRIMARY = PRIMARY.BIN 
    10 OBJS=boot.o stubs_min.o stubs_auto.o stubs_entry.o lib.o stubs_entry_2.o capt_seq.o movie_rec.o 
    11  
    12 libplatformsub.a: $(OBJS) 
    13  
    14 clean: 
    15         rm -f $(OBJS) libplatformsub.a stubs_entry.S.err stubs_not_found_names.err 
    16  
    17 distclean: clean 
    18         rm -f stubs_entry.S stubs_auto.S 
    19         rm -rf .dep 
    20  
    21  
    22 stubs_auto.S: boot.c capt_seq.c movie_rec.c 
    23         @echo $< \-\> $@ 
    24 ifeq ($(OSTYPE),Windows) 
    25         cat $^ | \ 
    26             grep 'BL\\?[[:space:]]*sub_[0-9A-Fa-f]' | \ 
    27             sed 's/.*sub_\\([0-9A-Fa-f]*\\).*/\\1/' | \ 
    28             $(SORT) | uniq | \ 
    29             awk 'BEGIN {print "/* THIS FILE IS GENERATED */\n#include \"stubs_asm.h\"\n"} \ 
    30                 {printf("STUB(%s)\n",$$1)}' > stubs_auto.S 
    31 else     
    32         cat $^ | \ 
    33             grep 'BL\?[[:space:]]*sub_[0-9A-Fa-f]' | \ 
    34             sed 's/.*sub_\([0-9A-Fa-f]*\).*/\1/' | \ 
    35             $(SORT) | uniq | \ 
    36             awk 'BEGIN {print "/* THIS FILE IS GENERATED */\n#include \"stubs_asm.h\"\n"} \ 
    37                 {printf("STUB(%s)\n",$$1)}' > stubs_auto.S 
    38 endif 
    39  
    40 stubs_entry.S: $(TARGET_PRIMARY) $(topdir)tools/signatures_$(PLATFORMOS).h 
    41         @echo \-\> $@ 
    42         rm -f stubs_entry.S.err 
    43         if [ -s $(TARGET_PRIMARY) ] ; then \ 
    44           $(topdir)tools/finsig $(TARGET_PRIMARY) $(ROMBASEADDR) > stubs_entry.S ; \ 
    45         else \ 
    46           echo CAUTION! \'stubs_entry.S\' is not uptated due to target firmware binary not found! ; \ 
    47           touch stubs_entry.S ; \ 
    48         fi ; \ 
    49         if [ "X`grep 'ERROR' stubs_entry.S`" != "X" ] ; then \ 
    50           grep "ERROR" stubs_entry.S | sed -r "s/\/\/ ERROR: ([^ ]+) is not found.*/\1/" | $(SORT) | uniq > stubs_nf.names ; \ 
    51           grep -E "NH?STUB" stubs_entry_2.S | sed -r "s/ *NH?STUB\( *([^ ,]+).*/\1/" | $(SORT) | uniq > stubs_mn.names ; \ 
    52           comm -23 stubs_nf.names stubs_mn.names > stubs_not_found_names.err ; \ 
    53           rm -f stubs_nf.names stubs_mn.names ; \ 
    54           if [ -s stubs_not_found_names.err ] ; then \ 
    55             echo ERROR! There are unresolved addresses in \'stubs_entry.S\' \($(PLATFORM)-$(PLATFORMSUB)\) for the following names: ; \ 
    56             cat stubs_not_found_names.err ; \ 
    57             echo Please, add them into \'stubs_entry_2.S\' manually! ; \ 
    58             mv stubs_entry.S stubs_entry.S.err ; \ 
    59             exit 1 ; \ 
    60           fi ; \ 
    61           rm -f stubs_not_found_names.err ; \ 
    62         fi 
    63  
    64 $(TARGET_PRIMARY): 
    65         touch $(TARGET_PRIMARY) 
    66  
    67 include $(topdir)bottom.inc 
     6include $(topdir)/platform/makefile_sub.inc 
  • trunk/platform/ixus70_sd1000/sub/101b/stubs_auto.S

    r277 r379  
    11/* THIS FILE IS GENERATED */ 
     2/* DO NOT EDIT THIS FILE! */ 
     3 
    24#include "stubs_asm.h" 
    35 
  • trunk/platform/ixus70_sd1000/sub/102a/Makefile

    r301 r379  
    11topdir=../../../../ 
    22 
    3 include $(topdir)makefile.inc 
     3OBJS=boot.o stubs_min.o stubs_auto.o stubs_entry.o lib.o stubs_entry_2.o capt_seq.o movie_rec.o 
     4STUBS_AUTO_DEPS=boot.c capt_seq.c movie_rec.c 
    45 
    5 CFLAGS+=-DLOW_LEVEL 
    6  
    7 all: libplatformsub.a 
    8  
    9 TARGET_PRIMARY = PRIMARY.BIN 
    10 OBJS=boot.o stubs_min.o stubs_auto.o stubs_entry.o lib.o stubs_entry_2.o capt_seq.o movie_rec.o 
    11  
    12 libplatformsub.a: $(OBJS) 
    13  
    14 clean: 
    15         rm -f $(OBJS) libplatformsub.a stubs_entry.S.err stubs_not_found_names.err 
    16  
    17 distclean: clean 
    18         rm -f stubs_entry.S stubs_auto.S 
    19         rm -rf .dep 
    20  
    21  
    22 stubs_auto.S: boot.c capt_seq.c movie_rec.c 
    23         @echo $< \-\> $@ 
    24 ifeq ($(OSTYPE),Windows) 
    25         cat $^ | \ 
    26             grep 'BL\\?[[:space:]]*sub_[0-9A-Fa-f]' | \ 
    27             sed 's/.*sub_\\([0-9A-Fa-f]*\\).*/\\1/' | \ 
    28             $(SORT) | uniq | \ 
    29             awk 'BEGIN {print "/* THIS FILE IS GENERATED */\n#include \"stubs_asm.h\"\n"} \ 
    30                 {printf("STUB(%s)\n",$$1)}' > stubs_auto.S 
    31 else     
    32         cat $^ | \ 
    33             grep 'BL\?[[:space:]]*sub_[0-9A-Fa-f]' | \ 
    34             sed 's/.*sub_\([0-9A-Fa-f]*\).*/\1/' | \ 
    35             $(SORT) | uniq | \ 
    36             awk 'BEGIN {print "/* THIS FILE IS GENERATED */\n#include \"stubs_asm.h\"\n"} \ 
    37                 {printf("STUB(%s)\n",$$1)}' > stubs_auto.S 
    38 endif 
    39  
    40 stubs_entry.S: $(TARGET_PRIMARY) $(topdir)tools/signatures_$(PLATFORMOS).h 
    41         @echo \-\> $@ 
    42         rm -f stubs_entry.S.err 
    43         if [ -s $(TARGET_PRIMARY) ] ; then \ 
    44           $(topdir)tools/finsig $(TARGET_PRIMARY) $(ROMBASEADDR) > stubs_entry.S ; \ 
    45         else \ 
    46           echo CAUTION! \'stubs_entry.S\' is not uptated due to target firmware binary not found! ; \ 
    47           touch stubs_entry.S ; \ 
    48         fi ; \ 
    49         if [ "X`grep 'ERROR' stubs_entry.S`" != "X" ] ; then \ 
    50           grep "ERROR" stubs_entry.S | sed -r "s/\/\/ ERROR: ([^ ]+) is not found.*/\1/" | $(SORT) | uniq > stubs_nf.names ; \ 
    51           grep -E "NH?STUB" stubs_entry_2.S | sed -r "s/ *NH?STUB\( *([^ ,]+).*/\1/" | $(SORT) | uniq > stubs_mn.names ; \ 
    52           comm -23 stubs_nf.names stubs_mn.names > stubs_not_found_names.err ; \ 
    53           rm -f stubs_nf.names stubs_mn.names ; \ 
    54           if [ -s stubs_not_found_names.err ] ; then \ 
    55             echo ERROR! There are unresolved addresses in \'stubs_entry.S\' \($(PLATFORM)-$(PLATFORMSUB)\) for the following names: ; \ 
    56             cat stubs_not_found_names.err ; \ 
    57             echo Please, add them into \'stubs_entry_2.S\' manually! ; \ 
    58             mv stubs_entry.S stubs_entry.S.err ; \ 
    59             exit 1 ; \ 
    60           fi ; \ 
    61           rm -f stubs_not_found_names.err ; \ 
    62         fi 
    63  
    64 $(TARGET_PRIMARY): 
    65         touch $(TARGET_PRIMARY) 
    66  
    67 include $(topdir)bottom.inc 
     6include $(topdir)/platform/makefile_sub.inc 
  • trunk/platform/ixus70_sd1000/sub/102a/stubs_auto.S

    r276 r379  
    11/* THIS FILE IS GENERATED */ 
     2/* DO NOT EDIT THIS FILE! */ 
     3 
    24#include "stubs_asm.h" 
    35 
  • trunk/platform/ixus800_sd700/sub/100b/Makefile

    r301 r379  
    11topdir=../../../../ 
    22 
    3 include $(topdir)makefile.inc 
     3OBJS=boot.o stubs_min.o stubs_auto.o stubs_entry.o lib.o stubs_entry_2.o capt_seq.o movie_rec.o 
     4STUBS_AUTO_DEPS=boot.c capt_seq.c movie_rec.c 
    45 
    5 CFLAGS+=-DLOW_LEVEL 
    6  
    7 all: libplatformsub.a 
    8  
    9 TARGET_PRIMARY = PRIMARY.BIN 
    10 OBJS=boot.o stubs_min.o stubs_auto.o stubs_entry.o lib.o stubs_entry_2.o capt_seq.o movie_rec.o 
    11  
    12 libplatformsub.a: $(OBJS) 
    13  
    14 clean: 
    15         rm -f $(OBJS) libplatformsub.a stubs_entry.S.err stubs_not_found_names.err 
    16  
    17 distclean: clean 
    18         rm -f stubs_entry.S stubs_auto.S 
    19         rm -rf .dep 
    20  
    21  
    22 stubs_auto.S: boot.c capt_seq.c movie_rec.c 
    23         @echo $< \-\> $@ 
    24 ifeq ($(OSTYPE),Windows) 
    25         cat $^ | \ 
    26             grep 'BL\\?[[:space:]]*sub_[0-9A-Fa-f]' | \ 
    27             sed 's/.*sub_\\([0-9A-Fa-f]*\\).*/\\1/' | \ 
    28             $(SORT) | uniq | \ 
    29             awk 'BEGIN {print "/* THIS FILE IS GENERATED */\n#include \"stubs_asm.h\"\n"} \ 
    30                 {printf("STUB(%s)\n",$$1)}' > stubs_auto.S 
    31 else     
    32         cat $^ | \ 
    33             grep 'BL\?[[:space:]]*sub_[0-9A-Fa-f]' | \ 
    34             sed 's/.*sub_\([0-9A-Fa-f]*\).*/\1/' | \ 
    35             $(SORT) | uniq | \ 
    36             awk 'BEGIN {print "/* THIS FILE IS GENERATED */\n#include \"stubs_asm.h\"\n"} \ 
    37                 {printf("STUB(%s)\n",$$1)}' > stubs_auto.S 
    38 endif 
    39  
    40 stubs_entry.S: $(TARGET_PRIMARY) $(topdir)tools/signatures_$(PLATFORMOS).h 
    41         @echo \-\> $@ 
    42         rm -f stubs_entry.S.err 
    43         if [ -s $(TARGET_PRIMARY) ] ; then \ 
    44           $(topdir)tools/finsig $(TARGET_PRIMARY) $(ROMBASEADDR) > stubs_entry.S ; \ 
    45         else \ 
    46           echo CAUTION! \'stubs_entry.S\' is not uptated due to target firmware binary not found! ; \ 
    47           touch stubs_entry.S ; \ 
    48         fi ; \ 
    49         if [ "X`grep 'ERROR' stubs_entry.S`" != "X" ] ; then \ 
    50           grep "ERROR" stubs_entry.S | sed -r "s/\/\/ ERROR: ([^ ]+) is not found.*/\1/" | $(SORT) | uniq > stubs_nf.names ; \ 
    51           grep -E "NH?STUB" stubs_entry_2.S | sed -r "s/ *NH?STUB\( *([^ ,]+).*/\1/" | $(SORT) | uniq > stubs_mn.names ; \ 
    52           comm -23 stubs_nf.names stubs_mn.names > stubs_not_found_names.err ; \ 
    53           rm -f stubs_nf.names stubs_mn.names ; \ 
    54           if [ -s stubs_not_found_names.err ] ; then \ 
    55             echo ERROR! There are unresolved addresses in \'stubs_entry.S\' \($(PLATFORM)-$(PLATFORMSUB)\) for the following names: ; \ 
    56             cat stubs_not_found_names.err ; \ 
    57             echo Please, add them into \'stubs_entry_2.S\' manually! ; \ 
    58             mv stubs_entry.S stubs_entry.S.err ; \ 
    59             exit 1 ; \ 
    60           fi ; \ 
    61           rm -f stubs_not_found_names.err ; \ 
    62         fi 
    63  
    64 $(TARGET_PRIMARY): 
    65         touch $(TARGET_PRIMARY) 
    66  
    67 include $(topdir)bottom.inc 
     6include $(topdir)/platform/makefile_sub.inc 
  • trunk/platform/ixus800_sd700/sub/100b/stubs_auto.S

    r283 r379  
    11/* THIS FILE IS GENERATED */ 
     2/* DO NOT EDIT THIS FILE! */ 
     3 
    24#include "stubs_asm.h" 
    35 
  • trunk/platform/ixus800_sd700/sub/101b/Makefile

    r301 r379  
    11topdir=../../../../ 
    22 
    3 include $(topdir)makefile.inc 
     3OBJS=boot.o stubs_min.o stubs_auto.o stubs_entry.o lib.o stubs_entry_2.o capt_seq.o movie_rec.o 
     4STUBS_AUTO_DEPS=boot.c capt_seq.c movie_rec.c 
    45 
    5 CFLAGS+=-DLOW_LEVEL 
    6  
    7 all: libplatformsub.a 
    8  
    9 TARGET_PRIMARY = PRIMARY.BIN 
    10 OBJS=boot.o stubs_min.o stubs_auto.o stubs_entry.o lib.o stubs_entry_2.o capt_seq.o movie_rec.o 
    11  
    12 libplatformsub.a: $(OBJS) 
    13  
    14 clean: 
    15         rm -f $(OBJS) libplatformsub.a stubs_entry.S.err stubs_not_found_names.err 
    16  
    17 distclean: clean 
    18         rm -f stubs_entry.S stubs_auto.S 
    19         rm -rf .dep 
    20  
    21  
    22 stubs_auto.S: boot.c capt_seq.c movie_rec.c 
    23         @echo $< \-\> $@ 
    24 ifeq ($(OSTYPE),Windows) 
    25         cat $^ | \ 
    26             grep 'BL\\?[[:space:]]*sub_[0-9A-Fa-f]' | \ 
    27             sed 's/.*sub_\\([0-9A-Fa-f]*\\).*/\\1/' | \ 
    28             $(SORT) | uniq | \ 
    29             awk 'BEGIN {print "/* THIS FILE IS GENERATED */\n#include \"stubs_asm.h\"\n"} \ 
    30                 {printf("STUB(%s)\n",$$1)}' > stubs_auto.S 
    31 else     
    32         cat $^ | \ 
    33             grep 'BL\?[[:space:]]*sub_[0-9A-Fa-f]' | \ 
    34             sed 's/.*sub_\([0-9A-Fa-f]*\).*/\1/' | \ 
    35             $(SORT) | uniq | \ 
    36             awk 'BEGIN {print "/* THIS FILE IS GENERATED */\n#include \"stubs_asm.h\"\n"} \ 
    37                 {printf("STUB(%s)\n",$$1)}' > stubs_auto.S 
    38 endif 
    39  
    40 stubs_entry.S: $(TARGET_PRIMARY) $(topdir)tools/signatures_$(PLATFORMOS).h 
    41         @echo \-\> $@ 
    42         rm -f stubs_entry.S.err 
    43         if [ -s $(TARGET_PRIMARY) ] ; then \ 
    44           $(topdir)tools/finsig $(TARGET_PRIMARY) $(ROMBASEADDR) > stubs_entry.S ; \ 
    45         else \ 
    46           echo CAUTION! \'stubs_entry.S\' is not uptated due to target firmware binary not found! ; \ 
    47           touch stubs_entry.S ; \ 
    48         fi ; \ 
    49         if [ "X`grep 'ERROR' stubs_entry.S`" != "X" ] ; then \ 
    50           grep "ERROR" stubs_entry.S | sed -r "s/\/\/ ERROR: ([^ ]+) is not found.*/\1/" | $(SORT) | uniq > stubs_nf.names ; \ 
    51           grep -E "NH?STUB" stubs_entry_2.S | sed -r "s/ *NH?STUB\( *([^ ,]+).*/\1/" | $(SORT) | uniq > stubs_mn.names ; \ 
    52           comm -23 stubs_nf.names stubs_mn.names > stubs_not_found_names.err ; \ 
    53           rm -f stubs_nf.names stubs_mn.names ; \ 
    54           if [ -s stubs_not_found_names.err ] ; then \ 
    55             echo ERROR! There are unresolved addresses in \'stubs_entry.S\' \($(PLATFORM)-$(PLATFORMSUB)\) for the following names: ; \ 
    56             cat stubs_not_found_names.err ; \ 
    57             echo Please, add them into \'stubs_entry_2.S\' manually! ; \ 
    58             mv stubs_entry.S stubs_entry.S.err ; \ 
    59             exit 1 ; \ 
    60           fi ; \ 
    61           rm -f stubs_not_found_names.err ; \ 
    62         fi 
    63  
    64 $(TARGET_PRIMARY): 
    65         touch $(TARGET_PRIMARY) 
    66  
    67 include $(topdir)bottom.inc 
     6include $(topdir)/platform/makefile_sub.inc 
  • trunk/platform/ixus800_sd700/sub/101b/stubs_auto.S

    r246 r379  
    11/* THIS FILE IS GENERATED */ 
     2/* DO NOT EDIT THIS FILE! */ 
     3 
    24#include "stubs_asm.h" 
    35 
  • trunk/platform/ixus850_sd800/sub/100e/Makefile

    r312 r379  
    11topdir=../../../../ 
    22 
    3 include $(topdir)makefile.inc 
     3OBJS=boot.o stubs_min.o stubs_auto.o stubs_entry.o lib.o stubs_entry_2.o capt_seq.o movie_rec.o 
     4STUBS_AUTO_DEPS=boot.c capt_seq.c movie_rec.c 
    45 
    5 CFLAGS+=-DLOW_LEVEL 
    6  
    7 all: libplatformsub.a 
    8  
    9 TARGET_PRIMARY = PRIMARY.BIN 
    10 OBJS=boot.o stubs_min.o stubs_auto.o stubs_entry.o lib.o stubs_entry_2.o capt_seq.o movie_rec.o 
    11  
    12 libplatformsub.a: $(OBJS) 
    13  
    14 clean: 
    15         rm -f $(OBJS) libplatformsub.a stubs_entry.S.err stubs_not_found_names.err 
    16  
    17 distclean: clean 
    18         rm -f stubs_entry.S stubs_auto.S 
    19         rm -rf .dep 
    20  
    21  
    22 stubs_auto.S: boot.c capt_seq.c movie_rec.c 
    23         @echo $< \-\> $@ 
    24 ifeq ($(OSTYPE),Windows) 
    25         cat $^ | \ 
    26             grep 'BL\\?[[:space:]]*sub_[0-9A-Fa-f]' | \ 
    27             sed 's/.*sub_\\([0-9A-Fa-f]*\\).*/\\1/' | \ 
    28             $(SORT) | uniq | \ 
    29             awk 'BEGIN {print "/* THIS FILE IS GENERATED */\n#include \"stubs_asm.h\"\n"} \ 
    30                 {printf("STUB(%s)\n",$$1)}' > stubs_auto.S 
    31 else     
    32         cat $^ | \ 
    33             grep 'BL\?[[:space:]]*sub_[0-9A-Fa-f]' | \ 
    34             sed 's/.*sub_\([0-9A-Fa-f]*\).*/\1/' | \ 
    35             $(SORT) | uniq | \ 
    36             awk 'BEGIN {print "/* THIS FILE IS GENERATED */\n#include \"stubs_asm.h\"\n"} \ 
    37                 {printf("STUB(%s)\n",$$1)}' > stubs_auto.S 
    38 endif 
    39  
    40 stubs_entry.S: $(TARGET_PRIMARY) $(topdir)tools/signatures_$(PLATFORMOS).h 
    41         @echo \-\> $@ 
    42         rm -f stubs_entry.S.err 
    43         if [ -s $(TARGET_PRIMARY) ] ; then \ 
    44           $(topdir)tools/finsig $(TARGET_PRIMARY) $(ROMBASEADDR) > stubs_entry.S ; \ 
    45         else \ 
    46           echo CAUTION! \'stubs_entry.S\' is not uptated due to target firmware binary not found! ; \ 
    47           touch stubs_entry.S ; \ 
    48         fi ; \ 
    49         if [ "X`grep 'ERROR' stubs_entry.S`" != "X" ] ; then \ 
    50           grep "ERROR" stubs_entry.S | sed -r "s/\/\/ ERROR: ([^ ]+) is not found.*/\1/" | $(SORT) | uniq > stubs_nf.names ; \ 
    51           grep -E "NH?STUB" stubs_entry_2.S | sed -r "s/ *NH?STUB\( *([^ ,]+).*/\1/" | $(SORT) | uniq > stubs_mn.names ; \ 
    52           comm -23 stubs_nf.names stubs_mn.names > stubs_not_found_names.err ; \ 
    53           rm -f stubs_nf.names stubs_mn.names ; \ 
    54           if [ -s stubs_not_found_names.err ] ; then \ 
    55             echo ERROR! There are unresolved addresses in \'stubs_entry.S\' \($(PLATFORM)-$(PLATFORMSUB)\) for the following names: ; \ 
    56             cat stubs_not_found_names.err ; \ 
    57             echo Please, add them into \'stubs_entry_2.S\' manually! ; \ 
    58             mv stubs_entry.S stubs_entry.S.err ; \ 
    59             exit 1 ; \ 
    60           fi ; \ 
    61           rm -f stubs_not_found_names.err ; \ 
    62         fi 
    63  
    64 $(TARGET_PRIMARY): 
    65         touch $(TARGET_PRIMARY) 
    66  
    67 include $(topdir)bottom.inc 
     6include $(topdir)/platform/makefile_sub.inc 
  • trunk/platform/ixus850_sd800/sub/100e/stubs_auto.S

    r312 r379  
    11/* THIS FILE IS GENERATED */ 
     2/* DO NOT EDIT THIS FILE! */ 
     3 
    24#include "stubs_asm.h" 
    35 
  • trunk/platform/ixus860_sd870/sub/100c/Makefile

    r341 r379  
    11topdir=../../../../ 
    22 
    3 include $(topdir)makefile.inc 
     3OBJS=boot.o stubs_min.o stubs_auto.o stubs_entry.o lib.o stubs_entry_2.o capt_seq.o 
     4STUBS_AUTO_DEPS=boot.c capt_seq.c 
    45 
    5 CFLAGS+=-DLOW_LEVEL 
    6  
    7 all: libplatformsub.a 
    8  
    9 TARGET_PRIMARY = PRIMARY.BIN 
    10 OBJS=boot.o stubs_min.o stubs_auto.o stubs_entry.o lib.o stubs_entry_2.o capt_seq.o 
    11  
    12 libplatformsub.a: $(OBJS) 
    13  
    14 clean: 
    15         rm -f $(OBJS) libplatformsub.a stubs_entry.S.err stubs_not_found_names.err 
    16  
    17 distclean: clean 
    18         rm -f stubs_entry.S stubs_auto.S 
    19         rm -rf .dep 
    20  
    21  
    22 stubs_auto.S: boot.c capt_seq.c 
    23         @echo $< \-\> $@ 
    24 ifeq ($(OSTYPE),Windows) 
    25         cat $^ | \ 
    26             grep -E 'B.*[[:space:]]+sub_[0-9A-Fa-f]' | \ 
    27             sed 's/.*sub_\\([0-9A-Fa-f]*\\).*/\\1/' | \ 
    28             $(SORT) | uniq | \ 
    29             awk 'BEGIN {print "/* THIS FILE IS GENERATED */\n#include \"stubs_asm.h\"\n"} \ 
    30                 {printf("STUB(%s)\n",$$1)}' > stubs_auto.S 
    31 else     
    32         cat $^ | \ 
    33             grep 'B.*[[:space:]]*sub_[0-9A-Fa-f]' | \ 
    34             sed 's/.*sub_\([0-9A-Fa-f]*\).*/\1/' | \ 
    35             $(SORT) | uniq | \ 
    36             awk 'BEGIN {print "/* THIS FILE IS GENERATED */\n#include \"stubs_asm.h\"\n"} \ 
    37                 {printf("STUB(%s)\n",$$1)}' > stubs_auto.S 
    38 endif 
    39  
    40 stubs_entry.S: $(TARGET_PRIMARY) $(topdir)tools/signatures_$(PLATFORMOS).h 
    41         @echo \-\> $@ 
    42         rm -f stubs_entry.S.err 
    43         if [ -s $(TARGET_PRIMARY) ] ; then \ 
    44           $(topdir)tools/finsig $(TARGET_PRIMARY) $(ROMBASEADDR) > stubs_entry.S ; \ 
    45         else \ 
    46           echo CAUTION! \'stubs_entry.S\' is not uptated due to target firmware binary not found! ; \ 
    47           touch stubs_entry.S ; \ 
    48         fi ; \ 
    49         if [ "X`grep 'ERROR' stubs_entry.S`" != "X" ] ; then \ 
    50           grep "ERROR" stubs_entry.S | sed -r "s/\/\/ ERROR: ([^ ]+) is not found.*/\1/" | $(SORT) | uniq > stubs_nf.names ; \ 
    51           grep -E "NH?STUB" stubs_entry_2.S | sed -r "s/ *NH?STUB\( *([^ ,]+).*/\1/" | $(SORT) | uniq > stubs_mn.names ; \ 
    52           comm -23 stubs_nf.names stubs_mn.names > stubs_not_found_names.err ; \ 
    53           rm -f stubs_nf.names stubs_mn.names ; \ 
    54           if [ -s stubs_not_found_names.err ] ; then \ 
    55             echo ERROR! There are unresolved addresses in \'stubs_entry.S\' \($(PLATFORM)-$(PLATFORMSUB)\) for the following names: ; \ 
    56             cat stubs_not_found_names.err ; \ 
    57             echo Please, add them into \'stubs_entry_2.S\' manually! ; \ 
    58             mv stubs_entry.S stubs_entry.S.err ; \ 
    59             exit 1 ; \ 
    60           fi ; \ 
    61           rm -f stubs_not_found_names.err ; \ 
    62         fi 
    63  
    64 $(TARGET_PRIMARY): 
    65         touch $(TARGET_PRIMARY) 
    66  
    67 include $(topdir)bottom.inc 
    68  
     6include $(topdir)/platform/makefile_sub.inc 
  • trunk/platform/ixus860_sd870/sub/100c/stubs_auto.S

    r341 r379  
    11/* THIS FILE IS GENERATED */ 
     2/* DO NOT EDIT THIS FILE! */ 
     3 
    24#include "stubs_asm.h" 
    35 
  • trunk/platform/ixus950_sd850/sub/100c/Makefile

    r322 r379  
    11topdir=../../../../ 
    22 
    3 include $(topdir)makefile.inc 
     3OBJS=boot.o stubs_min.o stubs_auto.o stubs_entry.o lib.o stubs_entry_2.o capt_seq.o movie_rec.o 
     4STUBS_AUTO_DEPS=boot.c capt_seq.c movie_rec.c 
    45 
    5 CFLAGS+=-DLOW_LEVEL 
    6  
    7 all: libplatformsub.a 
    8  
    9 TARGET_PRIMARY = PRIMARY.BIN 
    10 OBJS=boot.o stubs_min.o stubs_auto.o stubs_entry.o lib.o stubs_entry_2.o capt_seq.o movie_rec.o 
    11  
    12 libplatformsub.a: $(OBJS) 
    13  
    14 clean: 
    15         rm -f $(OBJS) libplatformsub.a stubs_entry.S.err stubs_not_found_names.err 
    16  
    17 distclean: clean 
    18         rm -f stubs_entry.S stubs_auto.S 
    19         rm -rf .dep 
    20  
    21  
    22 stubs_auto.S: boot.c capt_seq.c movie_rec.c 
    23         @echo $< \-\> $@ 
    24 ifeq ($(OSTYPE),Windows) 
    25         cat $^ | \ 
    26             grep 'BL\\?[[:space:]]*sub_[0-9A-Fa-f]' | \ 
    27             sed 's/.*sub_\\([0-9A-Fa-f]*\\).*/\\1/' | \ 
    28             $(SORT) | uniq | \ 
    29             awk 'BEGIN {print "/* THIS FILE IS GENERATED */\n#include \"stubs_asm.h\"\n"} \ 
    30                 {printf("STUB(%s)\n",$$1)}' > stubs_auto.S 
    31 else     
    32         cat $^ | \ 
    33             grep 'BL\?[[:space:]]*sub_[0-9A-Fa-f]' | \ 
    34             sed 's/.*sub_\([0-9A-Fa-f]*\).*/\1/' | \ 
    35             $(SORT) | uniq | \ 
    36             awk 'BEGIN {print "/* THIS FILE IS GENERATED */\n#include \"stubs_asm.h\"\n"} \ 
    37                 {printf("STUB(%s)\n",$$1)}' > stubs_auto.S 
    38 endif 
    39  
    40 stubs_entry.S: $(TARGET_PRIMARY) $(topdir)tools/signatures_$(PLATFORMOS).h 
    41         @echo \-\> $@ 
    42         rm -f stubs_entry.S.err 
    43         if [ -s $(TARGET_PRIMARY) ] ; then \ 
    44           $(topdir)tools/finsig $(TARGET_PRIMARY) $(ROMBASEADDR) > stubs_entry.S ; \ 
    45         else \ 
    46           echo CAUTION! \'stubs_entry.S\' is not uptated due to target firmware binary not found! ; \ 
    47           touch stubs_entry.S ; \ 
    48         fi ; \ 
    49         if [ "X`grep 'ERROR' stubs_entry.S`" != "X" ] ; then \ 
    50           grep "ERROR" stubs_entry.S | sed -r "s/\/\/ ERROR: ([^ ]+) is not found.*/\1/" | $(SORT) | uniq > stubs_nf.names ; \ 
    51           grep -E "NH?STUB" stubs_entry_2.S | sed -r "s/ *NH?STUB\( *([^ ,]+).*/\1/" | $(SORT) | uniq > stubs_mn.names ; \ 
    52           comm -23 stubs_nf.names stubs_mn.names > stubs_not_found_names.err ; \ 
    53           rm -f stubs_nf.names stubs_mn.names ; \ 
    54           if [ -s stubs_not_found_names.err ] ; then \ 
    55             echo ERROR! There are unresolved addresses in \'stubs_entry.S\' \($(PLATFORM)-$(PLATFORMSUB)\) for the following names: ; \ 
    56             cat stubs_not_found_names.err ; \ 
    57             echo Please, add them into \'stubs_entry_2.S\' manually! ; \ 
    58             mv stubs_entry.S stubs_entry.S.err ; \ 
    59             exit 1 ; \ 
    60           fi ; \ 
    61           rm -f stubs_not_found_names.err ; \ 
    62         fi 
    63  
    64 $(TARGET_PRIMARY): 
    65         touch $(TARGET_PRIMARY) 
    66  
    67 include $(topdir)bottom.inc 
     6include $(topdir)/platform/makefile_sub.inc 
  • trunk/platform/ixus950_sd850/sub/100c/stubs_auto.S

    r378 r379  
    11/* THIS FILE IS GENERATED */ 
     2/* DO NOT EDIT THIS FILE! */ 
     3 
    24#include "stubs_asm.h" 
    35 
  • trunk/platform/ixusW_sd430/sub/110a/Makefile

    r301 r379  
    11topdir=../../../../ 
    22 
    3 include $(topdir)makefile.inc 
     3OBJS=boot.o stubs_min.o stubs_auto.o stubs_entry.o lib.o stubs_entry_2.o capt_seq.o movie_rec.o 
     4STUBS_AUTO_DEPS=boot.c capt_seq.c movie_rec.c 
    45 
    5 CFLAGS+=-DLOW_LEVEL 
    6  
    7 all: libplatformsub.a 
    8  
    9 TARGET_PRIMARY = PRIMARY.BIN 
    10 OBJS=boot.o stubs_min.o stubs_auto.o stubs_entry.o lib.o stubs_entry_2.o capt_seq.o movie_rec.o 
    11  
    12 libplatformsub.a: $(OBJS) 
    13  
    14 clean: 
    15         rm -f $(OBJS) libplatformsub.a stubs_entry.S.err stubs_not_found_names.err 
    16  
    17 distclean: clean 
    18         rm -f stubs_entry.S stubs_auto.S 
    19         rm -rf .dep 
    20  
    21  
    22 stubs_auto.S: boot.c capt_seq.c movie_rec.c 
    23         @echo $< \-\> $@ 
    24 ifeq ($(OSTYPE),Windows) 
    25         cat $^ | \ 
    26             grep 'BL\\?[[:space:]]*sub_[0-9A-Fa-f]' | \ 
    27             sed 's/.*sub_\\([0-9A-Fa-f]*\\).*/\\1/' | \ 
    28             $(SORT) | uniq | \ 
    29             awk 'BEGIN {print "/* THIS FILE IS GENERATED */\n#include \"stubs_asm.h\"\n"} \ 
    30                 {printf("STUB(%s)\n",$$1)}' > stubs_auto.S 
    31 else     
    32         cat $^ | \ 
    33             grep 'BL\?[[:space:]]*sub_[0-9A-Fa-f]' | \ 
    34             sed 's/.*sub_\([0-9A-Fa-f]*\).*/\1/' | \ 
    35             $(SORT) | uniq | \ 
    36             awk 'BEGIN {print "/* THIS FILE IS GENERATED */\n#include \"stubs_asm.h\"\n"} \ 
    37                 {printf("STUB(%s)\n",$$1)}' > stubs_auto.S 
    38 endif 
    39  
    40 stubs_entry.S: $(TARGET_PRIMARY) $(topdir)tools/signatures_$(PLATFORMOS).h 
    41         @echo \-\> $@ 
    42         rm -f stubs_entry.S.err 
    43         if [ -s $(TARGET_PRIMARY) ] ; then \ 
    44           $(topdir)tools/finsig $(TARGET_PRIMARY) $(ROMBASEADDR) > stubs_entry.S ; \ 
    45         else \ 
    46           echo CAUTION! \'stubs_entry.S\' is not uptated due to target firmware binary not found! ; \ 
    47           touch stubs_entry.S ; \ 
    48         fi ; \ 
    49         if [ "X`grep 'ERROR' stubs_entry.S`" != "X" ] ; then \ 
    50           grep "ERROR" stubs_entry.S | sed -r "s/\/\/ ERROR: ([^ ]+) is not found.*/\1/" | $(SORT) | uniq > stubs_nf.names ; \ 
    51           grep -E "NH?STUB" stubs_entry_2.S | sed -r "s/ *NH?STUB\( *([^ ,]+).*/\1/" | $(SORT) | uniq > stubs_mn.names ; \ 
    52           comm -23 stubs_nf.names stubs_mn.names > stubs_not_found_names.err ; \ 
    53           rm -f stubs_nf.names stubs_mn.names ; \ 
    54           if [ -s stubs_not_found_names.err ] ; then \ 
    55             echo ERROR! There are unresolved addresses in \'stubs_entry.S\' \($(PLATFORM)-$(PLATFORMSUB)\) for the following names: ; \ 
    56             cat stubs_not_found_names.err ; \ 
    57             echo Please, add them into \'stubs_entry_2.S\' manually! ; \ 
    58             mv stubs_entry.S stubs_entry.S.err ; \ 
    59             exit 1 ; \ 
    60           fi ; \ 
    61           rm -f stubs_not_found_names.err ; \ 
    62         fi 
    63  
    64 $(TARGET_PRIMARY): 
    65         touch $(TARGET_PRIMARY) 
    66  
    67 include $(topdir)bottom.inc 
     6include $(topdir)/platform/makefile_sub.inc 
  • trunk/platform/s2is/sub/100e/Makefile

    r301 r379  
    11topdir=../../../../ 
    22 
    3 include $(topdir)makefile.inc 
     3OBJS=boot.o stubs_min.o stubs_auto.o stubs_entry.o lib.o stubs_entry_2.o capt_seq.o movie_rec.o 
     4STUBS_AUTO_DEPS=boot.c capt_seq.c movie_rec.c 
    45 
    5 CFLAGS+=-DLOW_LEVEL 
    6  
    7 all: libplatformsub.a 
    8  
    9 TARGET_PRIMARY = PRIMARY.BIN 
    10 OBJS=boot.o stubs_min.o stubs_auto.o stubs_entry.o lib.o stubs_entry_2.o capt_seq.o movie_rec.o 
    11  
    12 libplatformsub.a: $(OBJS) 
    13  
    14 clean: 
    15         rm -f $(OBJS) libplatformsub.a stubs_entry.S.err stubs_not_found_names.err 
    16  
    17 distclean: clean 
    18         rm -f stubs_entry.S stubs_auto.S 
    19         rm -rf .dep 
    20  
    21  
    22 stubs_auto.S: boot.c capt_seq.c movie_rec.c 
    23         @echo $< \-\> $@ 
    24 ifeq ($(OSTYPE),Windows) 
    25         cat $^ | \ 
    26             grep 'BL\\?[[:space:]]*sub_[0-9A-Fa-f]' | \ 
    27             sed 's/.*sub_\\([0-9A-Fa-f]*\\).*/\\1/' | \ 
    28             $(SORT) | uniq | \ 
    29             awk 'BEGIN {print "/* THIS FILE IS GENERATED */\n#include \"stubs_asm.h\"\n"} \ 
    30                 {printf("STUB(%s)\n",$$1)}' > stubs_auto.S 
    31 else     
    32         cat $^ | \ 
    33             grep 'BL\?[[:space:]]*sub_[0-9A-Fa-f]' | \ 
    34             sed 's/.*sub_\([0-9A-Fa-f]*\).*/\1/' | \ 
    35             $(SORT) | uniq | \ 
    36             awk 'BEGIN {print "/* THIS FILE IS GENERATED */\n#include \"stubs_asm.h\"\n"} \ 
    37                 {printf("STUB(%s)\n",$$1)}' > stubs_auto.S 
    38 endif 
    39  
    40 stubs_entry.S: $(TARGET_PRIMARY) $(topdir)tools/signatures_$(PLATFORMOS).h 
    41         @echo \-\> $@ 
    42         rm -f stubs_entry.S.err 
    43         if [ -s $(TARGET_PRIMARY) ] ; then \ 
    44           $(topdir)tools/finsig $(TARGET_PRIMARY) $(ROMBASEADDR) > stubs_entry.S ; \ 
    45         else \ 
    46           echo CAUTION! \'stubs_entry.S\' is not uptated due to target firmware binary not found! ; \ 
    47           touch stubs_entry.S ; \ 
    48         fi ; \ 
    49         if [ "X`grep 'ERROR' stubs_entry.S`" != "X" ] ; then \ 
    50           grep "ERROR" stubs_entry.S | sed -r "s/\/\/ ERROR: ([^ ]+) is not found.*/\1/" | $(SORT) | uniq > stubs_nf.names ; \ 
    51           grep -E "NH?STUB" stubs_entry_2.S | sed -r "s/ *NH?STUB\( *([^ ,]+).*/\1/" | $(SORT) | uniq > stubs_mn.names ; \ 
    52           comm -23 stubs_nf.names stubs_mn.names > stubs_not_found_names.err ; \ 
    53           rm -f stubs_nf.names stubs_mn.names ; \ 
    54           if [ -s stubs_not_found_names.err ] ; then \ 
    55             echo ERROR! There are unresolved addresses in \'stubs_entry.S\' \($(PLATFORM)-$(PLATFORMSUB)\) for the following names: ; \ 
    56             cat stubs_not_found_names.err ; \ 
    57             echo Please, add them into \'stubs_entry_2.S\' manually! ; \ 
    58             mv stubs_entry.S stubs_entry.S.err ; \ 
    59             exit 1 ; \ 
    60           fi ; \ 
    61           rm -f stubs_not_found_names.err ; \ 
    62         fi 
    63  
    64 $(TARGET_PRIMARY): 
    65         touch $(TARGET_PRIMARY) 
    66  
    67 include $(topdir)bottom.inc 
     6include $(topdir)/platform/makefile_sub.inc 
  • trunk/platform/s2is/sub/100e/stubs_auto.S

    r243 r379  
    11/* THIS FILE IS GENERATED */ 
     2/* DO NOT EDIT THIS FILE! */ 
     3 
    24#include "stubs_asm.h" 
    35 
  • trunk/platform/s2is/sub/100f/Makefile

    r301 r379  
    11topdir=../../../../ 
    22 
    3 include $(topdir)makefile.inc 
     3OBJS=boot.o stubs_min.o stubs_auto.o stubs_entry.o lib.o stubs_entry_2.o capt_seq.o movie_rec.o 
     4STUBS_AUTO_DEPS=boot.c capt_seq.c movie_rec.c 
    45 
    5 CFLAGS+=-DLOW_LEVEL 
    6  
    7 all: libplatformsub.a 
    8  
    9 TARGET_PRIMARY = PRIMARY.BIN 
    10 OBJS=boot.o stubs_min.o stubs_auto.o stubs_entry.o lib.o stubs_entry_2.o capt_seq.o movie_rec.o 
    11  
    12 libplatformsub.a: $(OBJS) 
    13  
    14 clean: 
    15         rm -f $(OBJS) libplatformsub.a stubs_entry.S.err stubs_not_found_names.err 
    16  
    17 distclean: clean 
    18         rm -f stubs_entry.S stubs_auto.S 
    19         rm -rf .dep 
    20  
    21  
    22 stubs_auto.S: boot.c capt_seq.c movie_rec.c 
    23         @echo $< \-\> $@ 
    24 ifeq ($(OSTYPE),Windows) 
    25         cat $^ | \ 
    26             grep 'BL\\?[[:space:]]*sub_[0-9A-Fa-f]' | \ 
    27             sed 's/.*sub_\\([0-9A-Fa-f]*\\).*/\\1/' | \ 
    28             $(SORT) | uniq | \ 
    29             awk 'BEGIN {print "/* THIS FILE IS GENERATED */\n#include \"stubs_asm.h\"\n"} \ 
    30                 {printf("STUB(%s)\n",$$1)}' > stubs_auto.S 
    31 else     
    32         cat $^ | \ 
    33             grep 'BL\?[[:space:]]*sub_[0-9A-Fa-f]' | \ 
    34             sed 's/.*sub_\([0-9A-Fa-f]*\).*/\1/' | \ 
    35             $(SORT) | uniq | \ 
    36             awk 'BEGIN {print "/* THIS FILE IS GENERATED */\n#include \"stubs_asm.h\"\n"} \ 
    37                 {printf("STUB(%s)\n",$$1)}' > stubs_auto.S 
    38 endif 
    39  
    40 stubs_entry.S: $(TARGET_PRIMARY) $(topdir)tools/signatures_$(PLATFORMOS).h 
    41         @echo \-\> $@ 
    42         rm -f stubs_entry.S.err 
    43         if [ -s $(TARGET_PRIMARY) ] ; then \ 
    44           $(topdir)tools/finsig $(TARGET_PRIMARY) $(ROMBASEADDR) > stubs_entry.S ; \ 
    45         else \ 
    46           echo CAUTION! \'stubs_entry.S\' is not uptated due to target firmware binary not found! ; \ 
    47           touch stubs_entry.S ; \ 
    48         fi ; \ 
    49         if [ "X`grep 'ERROR' stubs_entry.S`" != "X" ] ; then \ 
    50           grep "ERROR" stubs_entry.S | sed -r "s/\/\/ ERROR: ([^ ]+) is not found.*/\1/" | $(SORT) | uniq > stubs_nf.names ; \ 
    51           grep -E "NH?STUB" stubs_entry_2.S | sed -r "s/ *NH?STUB\( *([^ ,]+).*/\1/" | $(SORT) | uniq > stubs_mn.names ; \ 
    52           comm -23 stubs_nf.names stubs_mn.names > stubs_not_found_names.err ; \ 
    53           rm -f stubs_nf.names stubs_mn.names ; \ 
    54           if [ -s stubs_not_found_names.err ] ; then \ 
    55             echo ERROR! There are unresolved addresses in \'stubs_entry.S\' \($(PLATFORM)-$(PLATFORMSUB)\) for the following names: ; \ 
    56             cat stubs_not_found_names.err ; \ 
    57             echo Please, add them into \'stubs_entry_2.S\' manually! ; \ 
    58             mv stubs_entry.S stubs_entry.S.err ; \ 
    59             exit 1 ; \ 
    60           fi ; \ 
    61           rm -f stubs_not_found_names.err ; \ 
    62         fi 
    63  
    64 $(TARGET_PRIMARY): 
    65         touch $(TARGET_PRIMARY) 
    66  
    67 include $(topdir)bottom.inc 
     6include $(topdir)/platform/makefile_sub.inc 
  • trunk/platform/s2is/sub/100f/stubs_auto.S

    r243 r379  
    11/* THIS FILE IS GENERATED */ 
     2/* DO NOT EDIT THIS FILE! */ 
     3 
    24#include "stubs_asm.h" 
    35 
  • trunk/platform/s2is/sub/100g/Makefile

    r301 r379  
    11topdir=../../../../ 
    22 
    3 include $(topdir)makefile.inc 
     3OBJS=boot.o stubs_min.o stubs_auto.o stubs_entry.o lib.o stubs_entry_2.o capt_seq.o movie_rec.o 
     4STUBS_AUTO_DEPS=boot.c capt_seq.c movie_rec.c 
    45 
    5 CFLAGS+=-DLOW_LEVEL 
    6  
    7 all: libplatformsub.a 
    8  
    9 TARGET_PRIMARY = PRIMARY.BIN 
    10 OBJS=boot.o stubs_min.o stubs_auto.o stubs_entry.o lib.o stubs_entry_2.o capt_seq.o movie_rec.o 
    11  
    12 libplatformsub.a: $(OBJS) 
    13  
    14 clean: 
    15         rm -f $(OBJS) libplatformsub.a stubs_entry.S.err stubs_not_found_names.err 
    16  
    17 distclean: clean 
    18         rm -f stubs_entry.S stubs_auto.S 
    19         rm -rf .dep 
    20  
    21  
    22 stubs_auto.S: boot.c capt_seq.c movie_rec.c 
    23         @echo $< \-\> $@ 
    24 ifeq ($(OSTYPE),Windows) 
    25         cat $^ | \ 
    26             grep 'BL\\?[[:space:]]*sub_[0-9A-Fa-f]' | \ 
    27             sed 's/.*sub_\\([0-9A-Fa-f]*\\).*/\\1/' | \ 
    28             $(SORT) | uniq | \ 
    29             awk 'BEGIN {print "/* THIS FILE IS GENERATED */\n#include \"stubs_asm.h\"\n"} \ 
    30                 {printf("STUB(%s)\n",$$1)}' > stubs_auto.S 
    31 else     
    32         cat $^ | \ 
    33             grep 'BL\?[[:space:]]*sub_[0-9A-Fa-f]' | \ 
    34             sed 's/.*sub_\([0-9A-Fa-f]*\).*/\1/' | \ 
    35             $(SORT) | uniq | \ 
    36             awk 'BEGIN {print "/* THIS FILE IS GENERATED */\n#include \"stubs_asm.h\"\n"} \ 
    37                 {printf("STUB(%s)\n",$$1)}' > stubs_auto.S 
    38 endif 
    39  
    40 stubs_entry.S: $(TARGET_PRIMARY) $(topdir)tools/signatures_$(PLATFORMOS).h 
    41         @echo \-\> $@ 
    42         rm -f stubs_entry.S.err 
    43         if [ -s $(TARGET_PRIMARY) ] ; then \ 
    44           $(topdir)tools/finsig $(TARGET_PRIMARY) $(ROMBASEADDR) > stubs_entry.S ; \ 
    45         else \ 
    46           echo CAUTION! \'stubs_entry.S\' is not uptated due to target firmware binary not found! ; \ 
    47           touch stubs_entry.S ; \ 
    48         fi ; \ 
    49         if [ "X`grep 'ERROR' stubs_entry.S`" != "X" ] ; then \ 
    50           grep "ERROR" stubs_entry.S | sed -r "s/\/\/ ERROR: ([^ ]+) is not found.*/\1/" | $(SORT) | uniq > stubs_nf.names ; \ 
    51           grep -E "NH?STUB" stubs_entry_2.S | sed -r "s/ *NH?STUB\( *([^ ,]+).*/\1/" | $(SORT) | uniq > stubs_mn.names ; \ 
    52           comm -23 stubs_nf.names stubs_mn.names > stubs_not_found_names.err ; \ 
    53           rm -f stubs_nf.names stubs_mn.names ; \ 
    54           if [ -s stubs_not_found_names.err ] ; then \ 
    55             echo ERROR! There are unresolved addresses in \'stubs_entry.S\' \($(PLATFORM)-$(PLATFORMSUB)\) for the following names: ; \ 
    56             cat stubs_not_found_names.err ; \ 
    57             echo Please, add them into \'stubs_entry_2.S\' manually! ; \ 
    58             mv stubs_entry.S stubs_entry.S.err ; \ 
    59             exit 1 ; \ 
    60           fi ; \ 
    61           rm -f stubs_not_found_names.err ; \ 
    62         fi 
    63  
    64 $(TARGET_PRIMARY): 
    65         touch $(TARGET_PRIMARY) 
    66  
    67 include $(topdir)bottom.inc 
     6include $(topdir)/platform/makefile_sub.inc 
  • trunk/platform/s2is/sub/100g/stubs_auto.S

    r243 r379  
    11/* THIS FILE IS GENERATED */ 
     2/* DO NOT EDIT THIS FILE! */ 
     3 
    24#include "stubs_asm.h" 
    35 
  • trunk/platform/s3is/sub/100a/Makefile

    r301 r379  
    11topdir=../../../../ 
    22 
    3 include $(topdir)makefile.inc 
     3OBJS=boot.o stubs_min.o stubs_auto.o stubs_entry.o lib.o stubs_entry_2.o capt_seq.o movie_rec.o mount.o 
     4STUBS_AUTO_DEPS=boot.c capt_seq.c movie_rec.c mount.c 
    45 
    5 CFLAGS+=-DLOW_LEVEL 
    6  
    7 all: libplatformsub.a 
    8  
    9 TARGET_PRIMARY = PRIMARY.BIN 
    10 OBJS=boot.o stubs_min.o stubs_auto.o stubs_entry.o lib.o stubs_entry_2.o capt_seq.o movie_rec.o mount.o 
    11  
    12 libplatformsub.a: $(OBJS) 
    13  
    14 clean: 
    15         rm -f $(OBJS) libplatformsub.a stubs_entry.S.err stubs_not_found_names.err 
    16  
    17 distclean: clean 
    18         rm -f stubs_entry.S stubs_auto.S 
    19         rm -rf .dep 
    20  
    21  
    22 stubs_auto.S: boot.c capt_seq.c movie_rec.c mount.c 
    23         @echo $< \-\> $@ 
    24 ifeq ($(OSTYPE),Windows) 
    25         cat $^ | \ 
    26             grep 'BL\\?[[:space:]]*sub_[0-9A-Fa-f]' | \ 
    27             sed 's/.*sub_\\([0-9A-Fa-f]*\\).*/\\1/' | \ 
    28             $(SORT) | uniq | \ 
    29             awk 'BEGIN {print "/* THIS FILE IS GENERATED */\n#include \"stubs_asm.h\"\n"} \ 
    30                 {printf("STUB(%s)\n",$$1)}' > stubs_auto.S 
    31 else     
    32         cat $^ | \ 
    33             grep 'BL\?[[:space:]]*sub_[0-9A-Fa-f]' | \ 
    34             sed 's/.*sub_\([0-9A-Fa-f]*\).*/\1/' | \ 
    35             $(SORT) | uniq | \ 
    36             awk 'BEGIN {print "/* THIS FILE IS GENERATED */\n#include \"stubs_asm.h\"\n"} \ 
    37                 {printf("STUB(%s)\n",$$1)}' > stubs_auto.S 
    38 endif 
    39  
    40 stubs_entry.S: $(TARGET_PRIMARY) $(topdir)tools/signatures_$(PLATFORMOS).h 
    41         @echo \-\> $@ 
    42         rm -f stubs_entry.S.err 
    43         if [ -s $(TARGET_PRIMARY) ] ; then \ 
    44           $(topdir)tools/finsig $(TARGET_PRIMARY) $(ROMBASEADDR) > stubs_entry.S ; \ 
    45         else \ 
    46           echo CAUTION! \'stubs_entry.S\' is not uptated due to target firmware binary not found! ; \ 
    47           touch stubs_entry.S ; \ 
    48         fi ; \ 
    49         if [ "X`grep 'ERROR' stubs_entry.S`" != "X" ] ; then \ 
    50           grep "ERROR" stubs_entry.S | sed -r "s/\/\/ ERROR: ([^ ]+) is not found.*/\1/" | $(SORT) | uniq > stubs_nf.names ; \ 
    51           grep -E "NH?STUB" stubs_entry_2.S | sed -r "s/ *NH?STUB\( *([^ ,]+).*/\1/" | $(SORT) | uniq > stubs_mn.names ; \ 
    52           comm -23 stubs_nf.names stubs_mn.names > stubs_not_found_names.err ; \ 
    53           rm -f stubs_nf.names stubs_mn.names ; \ 
    54           if [ -s stubs_not_found_names.err ] ; then \ 
    55             echo ERROR! There are unresolved addresses in \'stubs_entry.S\' \($(PLATFORM)-$(PLATFORMSUB)\) for the following names: ; \ 
    56             cat stubs_not_found_names.err ; \ 
    57             echo Please, add them into \'stubs_entry_2.S\' manually! ; \ 
    58             mv stubs_entry.S stubs_entry.S.err ; \ 
    59             exit 1 ; \ 
    60           fi ; \ 
    61           rm -f stubs_not_found_names.err ; \ 
    62         fi 
    63  
    64 $(TARGET_PRIMARY): 
    65         touch $(TARGET_PRIMARY) 
    66  
    67 include $(topdir)bottom.inc 
     6include $(topdir)/platform/makefile_sub.inc 
  • trunk/platform/s3is/sub/100a/stubs_auto.S

    r299 r379  
    11/* THIS FILE IS GENERATED */ 
     2/* DO NOT EDIT THIS FILE! */ 
     3 
    24#include "stubs_asm.h" 
    35 
  • trunk/platform/s5is/sub/101b/Makefile

    r372 r379  
    11topdir=../../../../ 
    22 
    3 include $(topdir)makefile.inc 
     3OBJS=boot.o stubs_min.o stubs_auto.o stubs_entry.o lib.o stubs_entry_2.o capt_seq.o 
     4STUBS_AUTO_DEPS=boot.c capt_seq.c 
    45 
    5 CFLAGS+=-DLOW_LEVEL 
    6  
    7 all: libplatformsub.a 
    8  
    9 TARGET_PRIMARY = PRIMARY.BIN 
    10 OBJS=boot.o stubs_min.o stubs_auto.o stubs_entry.o lib.o stubs_entry_2.o capt_seq.o 
    11  
    12 libplatformsub.a: $(OBJS) 
    13  
    14 clean: 
    15         rm -f $(OBJS) libplatformsub.a stubs_entry.S.err stubs_not_found_names.err 
    16  
    17 distclean: clean 
    18         rm -f stubs_entry.S stubs_auto.S 
    19         rm -rf .dep 
    20  
    21  
    22 stubs_auto.S: boot.c capt_seq.c 
    23         @echo $< \-\> $@ 
    24 ifeq ($(OSTYPE),Windows) 
    25         cat $^ | \ 
    26             grep -E 'B.*[[:space:]]+sub_[0-9A-Fa-f]' | \ 
    27             sed 's/.*sub_\\([0-9A-Fa-f]*\\).*/\\1/' | \ 
    28             $(SORT) | uniq | \ 
    29             awk 'BEGIN {print "/* THIS FILE IS GENERATED */\n#include \"stubs_asm.h\"\n"} \ 
    30                 {printf("STUB(%s)\n",$$1)}' > stubs_auto.S 
    31 else     
    32         cat $^ | \ 
    33             grep 'B.*[[:space:]]*sub_[0-9A-Fa-f]' | \ 
    34             sed 's/.*sub_\([0-9A-Fa-f]*\).*/\1/' | \ 
    35             $(SORT) | uniq | \ 
    36             awk 'BEGIN {print "/* THIS FILE IS GENERATED */\n#include \"stubs_asm.h\"\n"} \ 
    37                 {printf("STUB(%s)\n",$$1)}' > stubs_auto.S 
    38 endif 
    39  
    40 stubs_entry.S: $(TARGET_PRIMARY) $(topdir)tools/signatures_$(PLATFORMOS).h 
    41         @echo \-\> $@ 
    42         rm -f stubs_entry.S.err 
    43         if [ -s $(TARGET_PRIMARY) ] ; then \ 
    44           $(topdir)tools/finsig $(TARGET_PRIMARY) $(ROMBASEADDR) > stubs_entry.S ; \ 
    45         else \ 
    46           echo CAUTION! \'stubs_entry.S\' is not uptated due to target firmware binary not found! ; \ 
    47           touch stubs_entry.S ; \ 
    48         fi ; \ 
    49         if [ "X`grep 'ERROR' stubs_entry.S`" != "X" ] ; then \ 
    50           grep "ERROR" stubs_entry.S | sed -r "s/\/\/ ERROR: ([^ ]+) is not found.*/\1/" | $(SORT) | uniq > stubs_nf.names ; \ 
    51           grep -E "NH?STUB" stubs_entry_2.S | sed -r "s/ *NH?STUB\( *([^ ,]+).*/\1/" | $(SORT) | uniq > stubs_mn.names ; \ 
    52           comm -23 stubs_nf.names stubs_mn.names > stubs_not_found_names.err ; \ 
    53           rm -f stubs_nf.names stubs_mn.names ; \ 
    54           if [ -s stubs_not_found_names.err ] ; then \ 
    55             echo ERROR! There are unresolved addresses in \'stubs_entry.S\' \($(PLATFORM)-$(PLATFORMSUB)\) for the following names: ; \ 
    56             cat stubs_not_found_names.err ; \ 
    57             echo Please, add them into \'stubs_entry_2.S\' manually! ; \ 
    58             mv stubs_entry.S stubs_entry.S.err ; \ 
    59             exit 1 ; \ 
    60           fi ; \ 
    61           rm -f stubs_not_found_names.err ; \ 
    62         fi 
    63  
    64 $(TARGET_PRIMARY): 
    65         touch $(TARGET_PRIMARY) 
    66  
    67 include $(topdir)bottom.inc 
     6include $(topdir)/platform/makefile_sub.inc 
  • trunk/platform/s5is/sub/101b/stubs_auto.S

    r376 r379  
    11/* THIS FILE IS GENERATED */ 
     2/* DO NOT EDIT THIS FILE! */ 
     3 
    24#include "stubs_asm.h" 
    35 
  • trunk/platform/s80/sub/100g/Makefile

    r301 r379  
    11topdir=../../../../ 
    22 
    3 include $(topdir)makefile.inc 
     3OBJS=boot.o stubs_min.o stubs_auto.o stubs_entry.o lib.o stubs_entry_2.o capt_seq.o movie_rec.o 
     4STUBS_AUTO_DEPS=boot.c capt_seq.c movie_rec.c 
    45 
    5 CFLAGS+=-DLOW_LEVEL 
    6  
    7 all: libplatformsub.a 
    8  
    9 TARGET_PRIMARY = PRIMARY.BIN 
    10 OBJS=boot.o stubs_min.o stubs_auto.o stubs_entry.o lib.o stubs_entry_2.o capt_seq.o movie_rec.o 
    11  
    12 libplatformsub.a: $(OBJS) 
    13  
    14 clean: 
    15         rm -f $(OBJS) libplatformsub.a stubs_entry.S.err stubs_not_found_names.err 
    16  
    17 distclean: clean 
    18         rm -f stubs_entry.S stubs_auto.S 
    19         rm -rf .dep 
    20  
    21  
    22 stubs_auto.S: boot.c capt_seq.c movie_rec.c 
    23         @echo $< \-\> $@ 
    24 ifeq ($(OSTYPE),Windows) 
    25         cat $^ | \ 
    26             grep 'BL\\?[[:space:]]*sub_[0-9A-Fa-f]' | \ 
    27             sed 's/.*sub_\\([0-9A-Fa-f]*\\).*/\\1/' | \ 
    28             $(SORT) | uniq | \ 
    29             awk 'BEGIN {print "/* THIS FILE IS GENERATED */\n#include \"stubs_asm.h\"\n"} \ 
    30                 {printf("STUB(%s)\n",$$1)}' > stubs_auto.S 
    31 else     
    32         cat $^ | \ 
    33             grep 'BL\?[[:space:]]*sub_[0-9A-Fa-f]' | \ 
    34             sed 's/.*sub_\([0-9A-Fa-f]*\).*/\1/' | \ 
    35             $(SORT) | uniq | \ 
    36             awk 'BEGIN {print "/* THIS FILE IS GENERATED */\n#include \"stubs_asm.h\"\n"} \ 
    37                 {printf("STUB(%s)\n",$$1)}' > stubs_auto.S 
    38 endif 
    39  
    40 stubs_entry.S: $(TARGET_PRIMARY) $(topdir)tools/signatures_$(PLATFORMOS).h 
    41         @echo \-\> $@ 
    42         rm -f stubs_entry.S.err 
    43         if [ -s $(TARGET_PRIMARY) ] ; then \ 
    44           $(topdir)tools/finsig $(TARGET_PRIMARY) $(ROMBASEADDR) > stubs_entry.S ; \ 
    45         else \ 
    46           echo CAUTION! \'stubs_entry.S\' is not uptated due to target firmware binary not found! ; \ 
    47           touch stubs_entry.S ; \ 
    48         fi ; \ 
    49         if [ "X`grep 'ERROR' stubs_entry.S`" != "X" ] ; then \ 
    50           grep "ERROR" stubs_entry.S | sed -r "s/\/\/ ERROR: ([^ ]+) is not found.*/\1/" | $(SORT) | uniq > stubs_nf.names ; \ 
    51           grep -E "NH?STUB" stubs_entry_2.S | sed -r "s/ *NH?STUB\( *([^ ,]+).*/\1/" | $(SORT) | uniq > stubs_mn.names ; \ 
    52           comm -23 stubs_nf.names stubs_mn.names > stubs_not_found_names.err ; \ 
    53           rm -f stubs_nf.names stubs_mn.names ; \ 
    54           if [ -s stubs_not_found_names.err ] ; then \ 
    55             echo ERROR! There are unresolved addresses in \'stubs_entry.S\' \($(PLATFORM)-$(PLATFORMSUB)\) for the following names: ; \ 
    56             cat stubs_not_found_names.err ; \ 
    57             echo Please, add them into \'stubs_entry_2.S\' manually! ; \ 
    58             mv stubs_entry.S stubs_entry.S.err ; \ 
    59             exit 1 ; \ 
    60           fi ; \ 
    61           rm -f stubs_not_found_names.err ; \ 
    62         fi 
    63  
    64 $(TARGET_PRIMARY): 
    65         touch $(TARGET_PRIMARY) 
    66  
    67 include $(topdir)bottom.inc 
     6include $(topdir)/platform/makefile_sub.inc 
Note: See TracChangeset for help on using the changeset viewer.