Changeset 1371 for trunk/Makefile


Ignore:
Timestamp:
10/19/11 07:47:16 (19 months ago)
Author:
philmoz
Message:

Update from CHDK-DE changeset 831 to the new batch build makefile version.
This now supports the case where one CHDK version can be used on two or more other firmware versions (e.g. A2000 1.00c).
Updated the A2000 1.00c build definition in camera_list.csv to include the 1.00a and 1.00b versions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Makefile

    r1369 r1371  
    6767        LANG=C echo -e "CHDK-$(VER) for $(PLATFORM) fw:$(PLATFORMSUB) build:$(BUILD_NUMBER) date:`date -R`" | \ 
    6868            zip -9jz $(topdir)bin/$(VER)-$(PLATFORM)-$(PLATFORMSUB)-$(BUILD_NUMBER)$(STATE).zip $(topdir)bin/DISKBOOT.BIN > $(DEVNULL) 
    69 ifdef PLATFORMOS 
    70   ifeq ($(PLATFORMOS),vxworks) 
    71         zip -9j $(topdir)bin/$(VER)-$(PLATFORM)-$(PLATFORMSUB)-$(BUILD_NUMBER)$(STATE).zip $(topdir)bin/PS.FIR > $(DEVNULL) 
    72         rm -f $(topdir)bin/PS.FIR 
    73   endif 
    74   ifeq ($(PLATFORMOS),dryos) 
    75     ifdef OPT_FI2 
    76       ifdef FI2KEY 
    77             zip -9j $(topdir)bin/$(VER)-$(PLATFORM)-$(PLATFORMSUB)-$(BUILD_NUMBER)$(STATE).zip $(topdir)bin/PS.FI2 > $(DEVNULL) 
    78             rm -f $(topdir)bin/PS.FI2 
     69    ifdef PLATFORMOS 
     70      ifeq ($(PLATFORMOS),vxworks) 
     71                zip -9j $(topdir)bin/$(VER)-$(PLATFORM)-$(PLATFORMSUB)-$(BUILD_NUMBER)$(STATE).zip $(topdir)bin/PS.FIR > $(DEVNULL) 
     72                rm -f $(topdir)bin/PS.FIR 
     73      endif 
     74      ifeq ($(PLATFORMOS),dryos) 
     75        ifdef OPT_FI2 
     76          ifdef FI2KEY 
     77                        zip -9j $(topdir)bin/$(VER)-$(PLATFORM)-$(PLATFORMSUB)-$(BUILD_NUMBER)$(STATE).zip $(topdir)bin/PS.FI2 > $(DEVNULL) 
     78                        rm -f $(topdir)bin/PS.FI2 
     79          endif 
     80        endif 
    7981      endif 
    8082    endif 
    81   endif 
    82 endif 
    83 # if COPY_TO is defined then copy this camera/firmware version to the copied firmware version 
    84 # Define COPY_TO in $(topdir)/platform/$(PLATFORM)/sub/$(PLATFORMSUB)/makefile.inc of the source 
    85 # firmware version that needs to be copied to another firmware version 
    86 ifdef COPY_TO 
    87         cp $(topdir)bin/$(VER)-$(PLATFORM)-$(PLATFORMSUB)-$(BUILD_NUMBER)$(STATE).zip $(topdir)bin/$(VER)-$(PLATFORM)-$(COPY_TO)-$(BUILD_NUMBER)$(STATE).zip 
    88 endif 
     83        # if COPY_TO is defined then copy this camera/firmware version to the copied firmware version 
     84        # Define COPY_TO in $(topdir)/platform/$(PLATFORM)/sub/$(PLATFORMSUB)/makefile.inc of the source 
     85        # firmware version that needs to be copied to another firmware version 
     86        # For the case where one CHDK version applies to two or more other Canon firmware version place all the 
     87        # 'copy to' firmware versions together seperated by ':' - e.g. "a2000,100c,BETA,100a:100b," 
     88    ifdef COPY_TO 
     89                @echo "**** Copying duplicate Firmwares" 
     90                $(foreach COPY_PLATFORMSUB, $(subst :, ,$(COPY_TO)), \ 
     91                        cp $(topdir)bin/$(VER)-$(PLATFORM)-$(PLATFORMSUB)-$(BUILD_NUMBER)$(STATE).zip $(topdir)bin/$(VER)-$(PLATFORM)-$(COPY_PLATFORMSUB)-$(BUILD_NUMBER)$(STATE).zip ; \ 
     92                ) 
     93    endif 
    8994        rm -f $(topdir)bin/DISKBOOT.BIN 
    9095 
     
    124129        zip -9j $(topdir)bin/$(PLATFORM)-$(PLATFORMSUB)-$(BUILD_NUMBER)$(STATE).zip $(topdir)doc/readme.txt  > $(DEVNULL) 
    125130 
    126 ifdef PLATFORMOS 
    127   ifeq ($(PLATFORMOS),vxworks) 
    128         zip -9j $(topdir)bin/$(PLATFORM)-$(PLATFORMSUB)-$(BUILD_NUMBER)-full$(STATE).zip $(topdir)bin/PS.FIR > $(DEVNULL) 
    129         zip -9j $(topdir)bin/$(PLATFORM)-$(PLATFORMSUB)-$(BUILD_NUMBER)$(STATE).zip $(topdir)bin/PS.FIR > $(DEVNULL) 
    130         rm -f $(topdir)bin/PS.FIR 
    131   endif 
    132   ifeq ($(PLATFORMOS),dryos) 
    133     ifdef OPT_FI2 
    134       ifdef FI2KEY 
    135             zip -9j $(topdir)bin/$(PLATFORM)-$(PLATFORMSUB)-$(BUILD_NUMBER)-full$(STATE).zip $(topdir)bin/PS.FI2 > $(DEVNULL) 
    136             zip -9j $(topdir)bin/$(PLATFORM)-$(PLATFORMSUB)-$(BUILD_NUMBER)$(STATE).zip $(topdir)bin/PS.FI2 > $(DEVNULL) 
    137             rm -f $(topdir)bin/PS.FI2 
     131    ifdef PLATFORMOS 
     132      ifeq ($(PLATFORMOS),vxworks) 
     133                zip -9j $(topdir)bin/$(PLATFORM)-$(PLATFORMSUB)-$(BUILD_NUMBER)-full$(STATE).zip $(topdir)bin/PS.FIR > $(DEVNULL) 
     134                zip -9j $(topdir)bin/$(PLATFORM)-$(PLATFORMSUB)-$(BUILD_NUMBER)$(STATE).zip $(topdir)bin/PS.FIR > $(DEVNULL) 
     135                rm -f $(topdir)bin/PS.FIR 
     136      endif 
     137      ifeq ($(PLATFORMOS),dryos) 
     138        ifdef OPT_FI2 
     139          ifdef FI2KEY 
     140                        zip -9j $(topdir)bin/$(PLATFORM)-$(PLATFORMSUB)-$(BUILD_NUMBER)-full$(STATE).zip $(topdir)bin/PS.FI2 > $(DEVNULL) 
     141                        zip -9j $(topdir)bin/$(PLATFORM)-$(PLATFORMSUB)-$(BUILD_NUMBER)$(STATE).zip $(topdir)bin/PS.FI2 > $(DEVNULL) 
     142                        rm -f $(topdir)bin/PS.FI2 
     143          endif 
     144        endif 
    138145      endif 
    139146    endif 
    140   endif 
    141 endif 
    142 # if COPY_TO is defined then copy this camera/firmware version to the copied firmware version 
    143 # Define COPY_TO in $(topdir)/platform/$(PLATFORM)/sub/$(PLATFORMSUB)/makefile.inc of the source 
    144 # firmware version that needs to be copied to another firmware version 
    145 ifdef COPY_TO 
    146         cp $(topdir)bin/$(PLATFORM)-$(PLATFORMSUB)-$(BUILD_NUMBER)-full$(STATE).zip $(topdir)bin/$(PLATFORM)-$(COPY_TO)-$(BUILD_NUMBER)-full$(STATE).zip 
    147         cp $(topdir)bin/$(PLATFORM)-$(PLATFORMSUB)-$(BUILD_NUMBER)$(STATE).zip $(topdir)bin/$(PLATFORM)-$(COPY_TO)-$(BUILD_NUMBER)$(STATE).zip 
    148 endif 
     147        # if COPY_TO is defined then copy this camera/firmware version to the copied firmware version 
     148        # Define COPY_TO in $(topdir)/platform/$(PLATFORM)/sub/$(PLATFORMSUB)/makefile.inc of the source 
     149        # firmware version that needs to be copied to another firmware version 
     150        # For the case where one CHDK version applies to two or more other Canon firmware version place all the 
     151        # 'copy to' firmware versions together seperated by ':' - e.g. "a2000,100c,BETA,100a:100b," 
     152    ifdef COPY_TO 
     153                @echo "**** Copying duplicate Firmwares" 
     154                $(foreach COPY_PLATFORMSUB, $(subst :, ,$(COPY_TO)), \ 
     155                        cp $(topdir)bin/$(PLATFORM)-$(PLATFORMSUB)-$(BUILD_NUMBER)-full$(STATE).zip $(topdir)bin/$(PLATFORM)-$(COPY_PLATFORMSUB)-$(BUILD_NUMBER)-full$(STATE).zip ; \ 
     156                        cp $(topdir)bin/$(PLATFORM)-$(PLATFORMSUB)-$(BUILD_NUMBER)$(STATE).zip $(topdir)bin/$(PLATFORM)-$(COPY_PLATFORMSUB)-$(BUILD_NUMBER)$(STATE).zip ; \ 
     157                ) 
     158    endif 
    149159        rm -f $(topdir)bin/DISKBOOT.BIN 
    150160 
Note: See TracChangeset for help on using the changeset viewer.