imgtools/imaker/src/imaker_minienv.mk
changeset 607 378360dbbdba
parent 596 9f25be3da657
equal deleted inserted replaced
591:22486c9c7b15 607:378360dbbdba
    21 # |  \/  (_)_ _ (_) __|_ ___ __
    21 # |  \/  (_)_ _ (_) __|_ ___ __
    22 # | |\/| | | ' \| | _|| ' \ V /
    22 # | |\/| | | ' \| | _|| ' \ V /
    23 # |_|  |_|_|_||_|_|___|_||_\_/
    23 # |_|  |_|_|_||_|_|___|_||_\_/
    24 #
    24 #
    25 
    25 
    26 MINIENV_ZIP     = $(WORKPREFIX)_minienv.zip
    26 MINIENV_ZIP      = $(EPOC_ROOT)/$(MINIENV_MFBSNAME)_$(MINIENV_MFBVER).jar
    27 MINIENV_EXCLBIN = *.axf *.bin *.cmt *.fpsx *.hex *.out *.pmd *.ppu *.zip
    27 MINIENV_EXCLBIN  = *.axf *.bin *.cmt *.fpsx *.hex *.out *.pmd *.ppu *.zip
    28 MINIENV_INCLBIN = *.axf *.bin *.fpsx *.hex *.out
    28 MINIENV_INCLBIN  = *.axf *.bin *.fpsx *.hex *.out
    29 MINIENV_SOSDIR  = $(WORKDIR)
    29 MINIENV_SOSDIR   = $(OUTDIR)
    30 
    30 
    31 CLEAN_MINIENV = del | $(MINIENV_ZIP)
    31 MINIENV_MFFILE   = $(EPOC_ROOT)/META-INF/MANIFEST.MF
    32 BUILD_MINIENV =\
    32 MINIENV_MFTMP    = $(OUTTMPDIR)/META-INF/MANIFEST.MF
    33   echo-q | Creating minimal flash image creation environment $(MINIENV_ZIP) |\
    33 
    34   $(MINIENV_TOOL) | $(MINIENV_CONF) |\
    34 MINIENV_MFBNAME  = Minienv for $(PRODUCT_MODEL)
    35   zip-q  | $(MINIENV_ZIP) | __find__ |
    35 MINIENV_MFBSNAME = com.nokia.tools.griffin.minienv.$(PRODUCT_MODEL)
       
    36 MINIENV_MFBVER   = $(MAJOR_VERSION).$(MINOR_VERSION).0
       
    37 MINIENV_MFPATH   = epoc32/tools
       
    38 MINIENV_MFSWVER  = $(word 1,$(subst ., ,$(MINIENV_MFBVER))).*
       
    39 MINIENV_MFCFGFLT = (&(product_type=$(PRODUCT_TYPE))(sw_version=$(MINIENV_MFSWVER)))
       
    40 #MINIENV_MFCFGFLT = (&(product_type=$(PRODUCT_TYPE))(sw_version=$(MAJOR_VERSION).$(MINOR_VERSION)))
       
    41 
       
    42 define MINIENV_MFINFO
       
    43   Manifest-Version: 1.0
       
    44   Bundle-ManifestVersion: 2.0
       
    45   Bundle-Name: $(MINIENV_MFBNAME)
       
    46   Bundle-SymbolicName: $(MINIENV_MFBSNAME);singleton:=true
       
    47   Bundle-Version: $(MINIENV_MFBVER)
       
    48   Griffin-ExportDirectory: $(MINIENV_MFPATH)
       
    49   Griffin-ConfigurationFilter: $(MINIENV_MFCFGFLT)
       
    50 
       
    51   Name: epoc32/tools/imaker.cmd
       
    52   Require-Bundle: com.nokia.tools.griffin.theme
       
    53 endef
       
    54 
       
    55 MINIENV_META = find-af | $(MINIENV_MFTMP) | $(MINIENV_MFFILE) |
       
    56 
       
    57 #==============================================================================
    36 
    58 
    37 MINIENV_IMAKER =\
    59 MINIENV_IMAKER =\
    38   find   | $(E32TOOLS)   | imaker.cmd localise.pm localise_all_resources.pm obyparse.pm override.pm plugincommon.pm | |\
    60   find-a  | $(E32TOOLS)   | imaker imaker.cmd ||\
    39   find-a | $(IMAKER_DIR) | * |
    61   find-a  | $(IMAKER_DIR) | * ||\
       
    62   find-ar | $(CONFIGROOT)/assets/image | * |
    40 
    63 
    41 MINIENV_TOOL =\
    64 MINIENV_ITOOL =\
       
    65   find-a | $(ITOOL_DIR) | *.exe *.pl *.py imgcheck.* | *upct*
       
    66 
       
    67 MINIENV_BLDROM =\
       
    68   find-a | $(E32TOOLS) |\
       
    69     armutl.pm bpabiutl.pm buildrom.* checksource.pm configpaging.* datadriveimage.pm e32plat.pm e32variant.pm\
       
    70     externaltools.pm flexmodload.pm genutl.pm maksym.* maksymrofs.* modload.pm pathutl.pm rofsbuild.exe rombuild.exe\
       
    71     romosvariant.pm romutl.pm spitool.* uidcrc.exe winutl.pm feature* genericparser.pm rvct_*2set.pm writer.pm mingwm10.dll ||\
       
    72   find-ar | $(E32TOOLS)/build/lib/XML | * |
       
    73 
       
    74 MINIENV_CONE = find-a | $(E32TOOLS) | cone cone.cmd || find-ar | $(CONE_TOOLDIR) | * |
       
    75 
       
    76 MINIENV_CPP = find-a | $(E32GCCBIN) | cpp.exe cygwin1.dll |
       
    77 
       
    78 MINIENV_TOOL1 =\
       
    79   $(MINIENV_ITOOL)  |\
       
    80   $(MINIENV_BLDROM) |\
       
    81   $(MINIENV_CONE)   |\
       
    82   $(MINIENV_CPP)    |\
       
    83   find-a | $(E32TOOLS) |\
       
    84     featuredatabase.dtd s60ibymacros.pm\
       
    85     bmconv.exe dumpsis.exe elf2e32.exe interpretsis.exe mifconv.exe petran.exe svgtbinencode.exe\
       
    86     xerces-c_2_*.dll ||\
       
    87   find-a | $(E32TOOLS)/variant | * ||
       
    88 
       
    89 MINIENV_TOOL2 =\
       
    90   find-ar | $(dir $(WIDGET_TOOL)) $(WIDGET_HSTOOLDIR) | * ||\
       
    91   find-a  | $(E32DATAZ)/private/10282f06 $(EPOC32)/winscw/c/private/10282f06 | Widget_lproj.xml ||
       
    92 
       
    93 MINIENV_TOOL = $(foreach tool,$(sort $(filter $(addprefix MINIENV_TOOL,0 1 2 3 4 5 6 7 8 9),$(.VARIABLES))),$($(tool)) |)
       
    94 
       
    95 MINIENV_CONF1 =\
       
    96   find-a  | $(E32INC)              | *.hrh ||\
       
    97   find-ar | $(E32INCCFG)           | *     ||\
       
    98   find-ar | $(E32ROM)/configpaging | *     ||\
       
    99   find-a  | $(sort $(dir $(CORE_FEAXML)))  | $(notdir $(CORE_FEAXML)) ||\
       
   100   find-a  | $(CONFIGROOT)          | *.mk  ||\
       
   101   find-a  | $(PLATFORM_DIR)        | *.mk mem*.hrh ||\
       
   102   find-ar | $(PRODUCT_DIR)         | *.mk mem*.hrh ||\
       
   103   find-a  | $(E32INC)/mw                                      | ThirdPartyBitmap.pal       ||\
       
   104   find-a  | $(E32ROMINC)/customervariant/mw                   | Certificates_Operator.iby  ||\
       
   105   find-a  | $(E32DATAZ)/private/101f72a6                      | *                          ||\
       
   106   find-a  | $(E32DATAZ)/private/10202be9                      | cccccc00_empty.cre         ||\
       
   107   find-a  | $(E32DATAZ)/private/200009F3                      | defaultimportfile.mde      ||\
       
   108   find-a  | $(E32DATAZ)/private/20019119                      | config.xml                 ||\
       
   109   find-a  | $(E32DATAZ)/resource                              | swicertstore*.dat          ||\
       
   110   find-a  | $(E32DATAZ)/system/data                           | SkinExclusions.ini         ||\
       
   111   find-ar | $(E32DATAZ)/system/data/midp2/security/trustroots | *                          ||\
       
   112   find-a  | $(E32DATAZ)/system/sounds/audiothemes             | at_nokia.xml               ||\
       
   113   find-a  | $(EPOC32)/release/armv5/urel                      | R1_Mobile_4_0_Operator.cfg ||\
       
   114   find-a  | $(EPOC32)/release/armv5/urel/z/private/100059C9   | ScriptInit.txt             ||\
       
   115   find-a  | $(EPOC_ROOT)/ext/app/firsttimeuse/StartupSettings3/tools | APConf.txt          ||\
       
   116   find-af | $(SISINST_HALHDA) |||\
       
   117   find-ar | $(CONFIGROOT) | * | *.pmd isa.out dsp.hex *.cmt fota_updapp.bin *.axf DCT_ISA*.zip |
       
   118 
       
   119 MINIENV_CONF2 =\
       
   120   sosfind-a | $(MINIENV_SOSDIR) | *.rom.oby *.rofs?.oby *.uda.oby *.emmc.oby *.mcard.oby | *_bldromplugin.log
       
   121 
       
   122 MINIENV_CONF3 =\
       
   123   find-ar | $(OST_DICTDIR)  | $(OST_DICTPAT)     ||\
       
   124   find-a  | $(COREPLAT_DIR) | $(MINIENV_INCLBIN) ||\
       
   125   find-ar | $(PRODUCT_DIR)  | $(MINIENV_INCLBIN) ||
       
   126 
       
   127 #  find-a  | $(CONFIGROOT)   | *.confml ||\
       
   128 #  find-ar | $(CONFIGROOT)/assets | *   ||\
       
   129 #  find-a  | $(PLATFORM_DIR) | *.confml ||\
       
   130 #  find-ar | $(PRODUCT_DIR)  | *.confml ||\
       
   131 
       
   132 MINIENV_CONF = $(foreach conf,$(sort $(filter $(addprefix MINIENV_CONF,0 1 2 3 4 5 6 7 8 9),$(.VARIABLES))),$($(conf)) |)
       
   133 
       
   134 #==============================================================================
       
   135 
       
   136 CLEAN_MINIENV = $(if $(MINIENV_META),$(CLEAN_MINIENVMETA) |) del | "$(MINIENV_ZIP)"
       
   137 BUILD_MINIENV =\
       
   138   $(if $(MINIENV_META),$(BUILD_MINIENVMETA) |)\
       
   139   echo-q | Creating minimal flash image creation environment |\
       
   140   find ||||\
       
   141   $(MINIENV_META)   |\
    42   $(MINIENV_IMAKER) |\
   142   $(MINIENV_IMAKER) |\
    43   find-a | $(ITOOL_DIR) | * | |\
   143   $(MINIENV_TOOL)   |\
    44   find-a | $(E32TOOLS) |\
   144   $(MINIENV_CONF)   |\
    45     cli.cmd s60ibymacros.pm\
   145   zip$(if $(filter debug 127,$(VERBOSE)),,-q) | "$(MINIENV_ZIP)" | __find__ |
    46     armutl.pm bpabiutl.pm buildrom.* checksource.pm configpaging.pm datadriveimage.pm e32plat.pm\
       
    47     e32variant.pm externaltools.pm featurevariantmap.pm featurevariantparser.pm genutl.pm maksym.*\
       
    48     maksymrofs.* modload.pm pathutl.pm rofsbuild.exe rombuild.exe spitool.* uidcrc.exe winutl.pm\
       
    49     *.bsf | gcc*.bsf |\
       
    50   find-a  | $(E32TOOLS)/variant | * | |\
       
    51   find-ar | $(E32GCCBIN)        | * | |\
       
    52   find-ar | $(CONFT_TOOLDIR)    | * |
       
    53 
   146 
    54 MINIENV_CONF =\
   147 REPORT_MINIENV =\
    55   find-a    | $(E32INC)              | *.hrh | |\
   148   Minienv input SOS dir | $(MINIENV_SOSDIR) | d |\
    56   find-ar   | $(E32INCCFG)           | * | |\
   149   Minienv archive       | $(MINIENV_ZIP)    | f
    57   find-ar   | $(E32INC)/oem          | * | |\
   150 
    58   find-ar   | $(E32INC)/variant      | * | |\
   151 CLEAN_MINIENVMETA = del | "$(MINIENV_MFTMP)"
    59   find-a    | $(E32ROM)              | * | |\
   152 BUILD_MINIENVMETA =\
    60   find-ar   | $(E32ROMCFG)           | * | $(MINIENV_EXCLBIN) |\
   153   echo-q | Creating manifest file |\
    61   find-ar   | $(E32ROM)/configpaging | * | |\
   154   write  | "$(MINIENV_MFTMP)" | $(call def2str,$(MINIENV_MFINFO))\n
    62   find-ar   | $(E32ROMINC)           | * | |\
       
    63   find-ar   | $(E32ROM)/variant      | * | |\
       
    64   find-ar   | $(OST_DICTDIR)         | $(OST_DICTPAT) | |\
       
    65   find-ar   | $(EPOC32)/data/Z/resource/plugins | * | |\
       
    66   find-a    | $(COREPLAT_DIR) | $(MINIENV_INCLBIN) | |\
       
    67   find-ar   | $(PRODUCT_DIR)  | $(MINIENV_INCLBIN) | |\
       
    68   sosfind-a | $(MINIENV_SOSDIR) | *.tmp1.oby | *.rom.oby *.rofs?.oby | *_bldromplugin.log
       
    69 
   155 
    70 
   156 
    71 ###############################################################################
   157 ###############################################################################
    72 # Targets
   158 # Targets
    73 
   159 
    74 .PHONY:\
   160 .PHONY: minienv minienv-conf minienv-imaker minienv-tool core-minienv
    75   minienv
       
    76 
   161 
    77 minienv: ;@$(call IMAKER,$(call ucase,$@))
   162 minienv-conf: MINIENV_IMAKER =
       
   163 minienv-conf: MINIENV_TOOL   =
       
   164 
       
   165 minienv-imaker: MINIENV_TOOL =
       
   166 minienv-imaker: minienv-tool ;
       
   167 
       
   168 minienv-itool: MINIENV_TOOL = $(MINIENV_ITOOL)
       
   169 minienv-itool: minienv-tool ;
       
   170 
       
   171 minienv-tool: MINIENV_META =
       
   172 minienv-tool: MINIENV_CONF =
       
   173 
       
   174 minienv: MINIENV_CONF3 =
       
   175 minienv minienv-conf minienv-tool core-minienv: ;@$(call IMAKER,MINIENV)
    78 
   176 
    79 
   177 
    80 # END OF IMAKER_MINIENV.MK
   178 # END OF IMAKER_MINIENV.MK