Changeset 1362


Ignore:
Timestamp:
10/10/11 10:37:50 (20 months ago)
Author:
philmoz
Message:

Some more cleanup of the Makefile batch build:

  • removed some test entries from camera_list.csv
  • changed auto_build.sh to stop on build errors
  • fixed up the dummy empty recipes in the makefiles to stop gmake from recursively trying to rebuild the makefiles themselves. this speeds up the build process.
  • fixed handling or PLATFORM/PLATFORMSUB error message to that the batch targets can be specified without these; but the default target will produce an error if either is undefined.
Location:
branches/philmoz
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • branches/philmoz/Makefile

    r1357 r1362  
    55 
    66SUBDIRS=tools lib platform core loader CHDK 
    7  
    8 all: all-recursive 
    9  
    10 clean: clean-recursive 
    11  
    12 distclean: distclean-recursive 
    137 
    148.PHONY: fir 
     
    118112        zip -9 $(topdir)bin/$(PLATFORM)-$(PLATFORMSUB)-$(BUILD_NUMBER)-full$(STATE).zip $(topdir)CHDK/SCRIPTS/4Pack/*    > $(DEVNULL) 
    119113        zip -9 $(topdir)bin/$(PLATFORM)-$(PLATFORMSUB)-$(BUILD_NUMBER)-full$(STATE).zip $(topdir)CHDK/SCRIPTS/4Pack/Lua/*        > $(DEVNULL) 
    120         zip -9 $(topdir)bin/$(PLATFORM)-$(PLATFORMSUB)-$(BUILD_NUMBER)-full$(STATE).zip $(topdir)CHDK/SCRIPTS/4Pack/uBasic/*     > $(DEVNULL) 
     114        zip -9 $(topdir)bin/$(PLATFORM)-$(PLATFORMSUB)-$(BUILD_NUMBER)-full$(STATE).zip $(topdir)CHDK/SCRIPTS/4Pack/uBasic/* > $(DEVNULL) 
     115        zip -9 $(topdir)bin/$(PLATFORM)-$(PLATFORMSUB)-$(BUILD_NUMBER)-full$(STATE).zip $(topdir)CHDK/SCRIPTS/EDITOR/*   > $(DEVNULL) 
    121116        zip -9 $(topdir)bin/$(PLATFORM)-$(PLATFORMSUB)-$(BUILD_NUMBER)-full$(STATE).zip $(topdir)CHDK/syscurves.CVF      > $(DEVNULL) 
    122117        zip -9j $(topdir)bin/$(PLATFORM)-$(PLATFORMSUB)-$(BUILD_NUMBER)-full$(STATE).zip $(topdir)doc/changelog.txt  > $(DEVNULL) 
     
    176171batch-clean: 
    177172        sh auto_build.sh $(MAKE) clean camera_list.csv 
    178  
    179  
    180 # Define empty recipes for all the included makefiles (including this one) 
    181 # This stops gmake from attempting to see if the makefiles need to be rebuilt 
    182 Makefile: ; 
    183 makefile.inc: ; 
    184 version.inc: ; 
    185 buildconf.inc: ; 
    186 localbuildconf.inc: ; 
    187 $(topdir)/platform/fi2.inc: ; 
    188 $(topdir)/platform/$(PLATFORM)/sub/$(PLATFORMSUB)/makefile.inc: ; 
  • branches/philmoz/auto_build.sh

    r1357 r1362  
    99  if [ ${cam} != "CAMERA" ] && [ "${skip}" = "" ]; then \ 
    1010    if [ "${state}" != "" ]; then state=_${state}; fi; \ 
    11     $1 -s --no-print-directory PLATFORM=${cam} PLATFORMSUB=${fw} STATE=${state} COPY_TO=${copy} $2; \ 
     11    $1 -s --no-print-directory PLATFORM=${cam} PLATFORMSUB=${fw} STATE=${state} COPY_TO=${copy} $2 || exit 1; \ 
    1212  fi; 
    1313done < $3 
  • branches/philmoz/bottom.inc

    r515 r1362  
    44#-include $(OBJS:%.o=.dep/%.d) 
    55#endif 
     6 
     7 
     8# Define empty recipes for all the included makefiles (including this one) 
     9# This stops gmake from attempting to see if the makefiles need to be rebuilt 
     10$(topdir)bottom.inc: ; 
  • branches/philmoz/camera_list.csv

    r1357 r1362  
    11CAMERA,FIRMWARE,BETA_STATUS,COPY_TO,SKIP_AUTOBUILD 
    2 a1100,100a,BETA,, 
    3 a1100,100b,BETA,, 
    42a1100,100c,BETA,, 
    53a2000,100c,BETA,, 
     
    1210a480,100b,,, 
    1311a490,100d,BETA,, 
    14 a490,100e,BETA,, 
    1512a490,100f,BETA,, 
    1613a495,100d,BETA,, 
     
    6057ixus120_sd940,103b,BETA,, 
    6158ixus120_sd940,103c,BETA,, 
    62 ixus200_sd980,100c,BETA,, 
    6359ixus200_sd980,101c,BETA,, 
    6460ixus200_sd980,101d,BETA,, 
     
    137133sx130is,101d,BETA,, 
    138134sx130is,101f,BETA,, 
    139 sx20,100f,,, 
    140135sx20,102b,,, 
    141136sx20,102d,,, 
  • branches/philmoz/makefile.inc

    r1358 r1362  
    1010# you may also set your default camera here 
    1111-include $(topdir)localbuildconf.inc 
    12  
    13 ifndef PLATFORM 
    14 $(error PLATFORM has not been defined. Specify the PLATFORM to build on the command line or in localbuildconf.inc) 
    15 endif 
    16 ifndef PLATFORMSUB 
    17 $(error PLATFORMSUB has not been defined. Specify the PLATFORMSUB to build on the command line or in localbuildconf.inc) 
    18 endif 
    19  
    2012include $(topdir)version.inc 
    21 include $(topdir)platform/$(PLATFORM)/sub/$(PLATFORMSUB)/makefile.inc 
     13 
     14ifdef PLATFORM 
     15  ifdef PLATFORMSUB 
     16    include $(topdir)platform/$(PLATFORM)/sub/$(PLATFORMSUB)/makefile.inc 
     17  endif 
     18endif 
    2219 
    2320# Used in gui_debug.c for controlling memory browser allowed address ranges 
     
    223220endif 
    224221 
     222.PHONY: all 
    225223all: all-recursive 
     224 
     225.PHONY: clean 
    226226clean: clean-recursive 
     227 
     228.PHONY: distclean 
    227229distclean: distclean-recursive 
    228230 
     
    243245 
    244246all-recursive: 
     247ifndef PLATFORM 
     248        $(error PLATFORM has not been defined. Specify the PLATFORM to build on the command line or in localbuildconf.inc) 
     249endif 
     250ifndef PLATFORMSUB 
     251        $(error PLATFORMSUB has not been defined. Specify the PLATFORMSUB to build on the command line or in localbuildconf.inc) 
     252endif 
    245253        @for i in $(SUBDIRS); do \ 
    246254                echo \>\> Entering to $(FOLDER)$$i; \ 
     
    259267.SILENT: 
    260268endif 
     269 
     270 
     271# Define empty recipes for all the included makefiles (including this one) 
     272# This stops gmake from attempting to see if the makefiles need to be rebuilt 
     273Makefile: ; 
     274$(topdir)makefile.inc: ; 
     275$(topdir)buildconf.inc: ; 
     276$(topdir)localbuildconf.inc: ; 
     277$(topdir)version.inc: ; 
     278$(topdir)platform/$(PLATFORM)/sub/$(PLATFORMSUB)/makefile.inc: ; 
     279$(topdir)platform/fi2.inc: ; 
  • branches/philmoz/platform/makefile_sub.inc

    r1320 r1362  
    7373 
    7474include $(topdir)bottom.inc 
     75 
     76 
     77# Define empty recipes for all the included makefiles (including this one) 
     78# This stops gmake from attempting to see if the makefiles need to be rebuilt 
     79$(topdir)platform/makefile_sub.inc: ; 
Note: See TracChangeset for help on using the changeset viewer.