os/kernelhwsrv/kernel/eka/rombuild/rom.flm
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
     1 #
     2 # Copyright (c) 2009 Symbian.  All rights reserved.
     3 #
     4 
     5 # macro for all the rules
     6 define rom
     7 
     8 FINAL::	
     9 ifeq ($(OSTYPE),unix)
    10 	$(call startrule,rom) \
    11 	echo "This is not supported currently"; \
    12 	$(call endrule,rom)
    13 else
    14 	$(call startrule,rom) \
    15 	$(PERL) $(EPOCROOT)/sf/os/kernelhwsrv/kernel/eka/rombuild/rom_sbs.pl --variant=$(REE_TARGET) --inst=$(PLATFORM) --build=$(CFG) --type=$(TYPE) --clean --name=$(REE_TARGET)_$(TYPE)_$(PLATFORM)_$(CFG).img \
    16 	$(call endrule,rom)
    17 endif
    18 
    19 FINAL::	
    20 	$(call startrule,copy) \
    21 	mv rom.oby $(EPOCROOT)/epoc32/rom/$(REE_TARGET)/$(REE_TARGET)_$(TYPE)_$(PLATFORM)_$(CFG)_rom.oby; \
    22 	mv ROMBUILD.LOG $(EPOCROOT)/epoc32/rom/$(REE_TARGET)/$(REE_TARGET)_$(TYPE)_$(PLATFORM)_$(CFG)_ROMBUILD.LOG; \
    23 	mv $(REE_TARGET)_$(TYPE)_$(PLATFORM)_$(CFG).img $(EPOCROOT)/epoc32/rom/$(REE_TARGET)_$(TYPE)_$(PLATFORM)_$(CFG).img; \
    24 	$(call endrule,copy)
    25 
    26 endef
    27 
    28 # expand
    29 $(eval $(rom))
    30 
    31 # The items produced by this FLM:
    32 RELEASEABLES:=$(EPOCROOT)/epoc32/rom/$(REE_TARGET)/$(REE_TARGET)_$(TYPE)_$(PLATFORM)_$(CFG)_rom.oby $(EPOCROOT)/epoc32/rom/$(REE_TARGET)/$(REE_TARGET)_$(TYPE)_$(PLATFORM)_$(CFG)_ROMBUILD.LOG $(EPOCROOT)/epoc32/rom/$(REE_TARGET)_$(TYPE)_$(PLATFORM)_$(CFG).img
    33 
    34 ## What targets -- declare the files produced here
    35 $(eval $(call whatmacro, $(RELEASEABLES)))
    36 ## Clean up
    37 $(eval $(call GenerateStandardCleanTarget, $(RELEASEABLES)))
    38 
    39 
    40