configtool/preinstall/makefile_template/configurationtool.mk
changeset 0 30eb2d538f02
equal deleted inserted replaced
-1:000000000000 0:30eb2d538f02
       
     1 #
       
     2 # Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies).
       
     3 # All rights reserved.
       
     4 # This component and the accompanying materials are made available
       
     5 # under the terms of "Eclipse Public License v1.0"
       
     6 # which accompanies this distribution, and is available
       
     7 # at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 #
       
     9 # Initial Contributors:
       
    10 # Nokia Corporation - initial contribution.
       
    11 #
       
    12 # Contributors:
       
    13 #
       
    14 # Description:
       
    15 #
       
    16 
       
    17 # To ensure that EPOCROOT always ends with a forward slash
       
    18 TMPROOT:=$(subst \,/,$(EPOCROOT))
       
    19 EPOCROOT:=$(patsubst %/,%,$(TMPROOT))/
       
    20 
       
    21 include $(EPOCROOT)epoc32/tools/shell/$(notdir $(basename $(SHELL))).mk
       
    22 
       
    23 ifndef CONFML
       
    24 $(error Variable CONFML not defined!)
       
    25 endif
       
    26 
       
    27 ifndef CRML
       
    28 $(error Variable CRML not defined!)
       
    29 endif
       
    30 
       
    31 ifndef OUTPUT
       
    32 $(error Variable OUTPUT not defined!)
       
    33 endif
       
    34 
       
    35 CONFM_FILES   = $(wildcard $(CONFML)/*.confml)
       
    36 CRML_FILES    = $(wildcard $(CRML)/*.crml)
       
    37 CONF_TOOL     := cli_build.cmd
       
    38 CONF_TOOL_OPT := -no_iby
       
    39 CONF_TOOL_CMD := $(CONF_TOOL) -confml "$(CONFML)" -impl "$(CRML)" -cenrep "$(OUTPUT)" $(CONF_TOOL_OPT) -master_conf master.confml
       
    40 
       
    41 BLD         : DO_NOTHING
       
    42 SAVESPACE   : DO_NOTHING
       
    43 RELEASABLES : DO_NOTHING		
       
    44 MAKMAKE     : DO_NOTHING
       
    45 FREEZE      : DO_NOTHING
       
    46 LIB         : DO_NOTHING
       
    47 CLEANLIB    : DO_NOTHING
       
    48 # configuration tool will be invoked here
       
    49 RESOURCE    : generate.$(PLATFORM_PATH).$(CFG_PATH)
       
    50 FINAL       : DO_NOTHING
       
    51 CLEAN       :
       
    52 	$(ERASE) generate.$(PLATFORM_PATH).$(CFG_PATH)
       
    53 
       
    54 DO_NOTHING :
       
    55 	@echo do nothing
       
    56 
       
    57 # generate configuration with configuration tool
       
    58 # create a dummy generate.platform text file to represent the output files
       
    59 generate.$(PLATFORM_PATH).$(CFG_PATH): $(CONFM_FILES) $(CRML_FILES)
       
    60 	@echo running configurationtool $(CONF_TOOL_CMD)
       
    61 	$(CONF_TOOL_CMD)
       
    62 	@echo // configurationtool generate command $(CONF_TOOL_CMD) > generate.$(PLATFORM_PATH).$(CFG_PATH)
       
    63