kernel/eka/rombuild/rom.flm
author Dario Sestito <darios@symbian.org>
Thu, 22 Jul 2010 18:40:35 +0100
branchRCL_3
changeset 222 d58cd785e8c7
parent 9 9cb0a1529d81
permissions -rw-r--r--
Remove redundant FINAL:: from rom.flm
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
5
4ab060f25417 Create and register FLM for building ROMs with rom_sbs.pl through SBSv2.
Arnaud Lenoir <arnaudl@symbian.org>
parents:
diff changeset
     1
#
4ab060f25417 Create and register FLM for building ROMs with rom_sbs.pl through SBSv2.
Arnaud Lenoir <arnaudl@symbian.org>
parents:
diff changeset
     2
# Copyright (c) 2009 Symbian.  All rights reserved.
4ab060f25417 Create and register FLM for building ROMs with rom_sbs.pl through SBSv2.
Arnaud Lenoir <arnaudl@symbian.org>
parents:
diff changeset
     3
#
4ab060f25417 Create and register FLM for building ROMs with rom_sbs.pl through SBSv2.
Arnaud Lenoir <arnaudl@symbian.org>
parents:
diff changeset
     4
4ab060f25417 Create and register FLM for building ROMs with rom_sbs.pl through SBSv2.
Arnaud Lenoir <arnaudl@symbian.org>
parents:
diff changeset
     5
# macro for all the rules
4ab060f25417 Create and register FLM for building ROMs with rom_sbs.pl through SBSv2.
Arnaud Lenoir <arnaudl@symbian.org>
parents:
diff changeset
     6
define rom
4ab060f25417 Create and register FLM for building ROMs with rom_sbs.pl through SBSv2.
Arnaud Lenoir <arnaudl@symbian.org>
parents:
diff changeset
     7
4ab060f25417 Create and register FLM for building ROMs with rom_sbs.pl through SBSv2.
Arnaud Lenoir <arnaudl@symbian.org>
parents:
diff changeset
     8
FINAL::	
4ab060f25417 Create and register FLM for building ROMs with rom_sbs.pl through SBSv2.
Arnaud Lenoir <arnaudl@symbian.org>
parents:
diff changeset
     9
ifeq ($(OSTYPE),unix)
4ab060f25417 Create and register FLM for building ROMs with rom_sbs.pl through SBSv2.
Arnaud Lenoir <arnaudl@symbian.org>
parents:
diff changeset
    10
	$(call startrule,rom) \
4ab060f25417 Create and register FLM for building ROMs with rom_sbs.pl through SBSv2.
Arnaud Lenoir <arnaudl@symbian.org>
parents:
diff changeset
    11
	echo "This is not supported currently"; \
4ab060f25417 Create and register FLM for building ROMs with rom_sbs.pl through SBSv2.
Arnaud Lenoir <arnaudl@symbian.org>
parents:
diff changeset
    12
	$(call endrule,rom)
4ab060f25417 Create and register FLM for building ROMs with rom_sbs.pl through SBSv2.
Arnaud Lenoir <arnaudl@symbian.org>
parents:
diff changeset
    13
else
4ab060f25417 Create and register FLM for building ROMs with rom_sbs.pl through SBSv2.
Arnaud Lenoir <arnaudl@symbian.org>
parents:
diff changeset
    14
	$(call startrule,rom) \
4ab060f25417 Create and register FLM for building ROMs with rom_sbs.pl through SBSv2.
Arnaud Lenoir <arnaudl@symbian.org>
parents:
diff changeset
    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 \
4ab060f25417 Create and register FLM for building ROMs with rom_sbs.pl through SBSv2.
Arnaud Lenoir <arnaudl@symbian.org>
parents:
diff changeset
    16
	$(call endrule,rom)
4ab060f25417 Create and register FLM for building ROMs with rom_sbs.pl through SBSv2.
Arnaud Lenoir <arnaudl@symbian.org>
parents:
diff changeset
    17
endif
4ab060f25417 Create and register FLM for building ROMs with rom_sbs.pl through SBSv2.
Arnaud Lenoir <arnaudl@symbian.org>
parents:
diff changeset
    18
4ab060f25417 Create and register FLM for building ROMs with rom_sbs.pl through SBSv2.
Arnaud Lenoir <arnaudl@symbian.org>
parents:
diff changeset
    19
	$(call startrule,copy) \
9
9cb0a1529d81 Changed export of log files to just export them from the current directory, as that's where rom.pl/rom_sbs.pl leaves them.
Simon Howkins <simonh@symbian.org>
parents: 6
diff changeset
    20
	mv rom.oby $(EPOCROOT)/epoc32/rom/$(REE_TARGET)/$(REE_TARGET)_$(TYPE)_$(PLATFORM)_$(CFG)_rom.oby; \
9cb0a1529d81 Changed export of log files to just export them from the current directory, as that's where rom.pl/rom_sbs.pl leaves them.
Simon Howkins <simonh@symbian.org>
parents: 6
diff changeset
    21
	mv ROMBUILD.LOG $(EPOCROOT)/epoc32/rom/$(REE_TARGET)/$(REE_TARGET)_$(TYPE)_$(PLATFORM)_$(CFG)_ROMBUILD.LOG; \
9cb0a1529d81 Changed export of log files to just export them from the current directory, as that's where rom.pl/rom_sbs.pl leaves them.
Simon Howkins <simonh@symbian.org>
parents: 6
diff changeset
    22
	mv $(REE_TARGET)_$(TYPE)_$(PLATFORM)_$(CFG).img $(EPOCROOT)/epoc32/rom/$(REE_TARGET)_$(TYPE)_$(PLATFORM)_$(CFG).img; \
5
4ab060f25417 Create and register FLM for building ROMs with rom_sbs.pl through SBSv2.
Arnaud Lenoir <arnaudl@symbian.org>
parents:
diff changeset
    23
	$(call endrule,copy)
4ab060f25417 Create and register FLM for building ROMs with rom_sbs.pl through SBSv2.
Arnaud Lenoir <arnaudl@symbian.org>
parents:
diff changeset
    24
4ab060f25417 Create and register FLM for building ROMs with rom_sbs.pl through SBSv2.
Arnaud Lenoir <arnaudl@symbian.org>
parents:
diff changeset
    25
endef
4ab060f25417 Create and register FLM for building ROMs with rom_sbs.pl through SBSv2.
Arnaud Lenoir <arnaudl@symbian.org>
parents:
diff changeset
    26
4ab060f25417 Create and register FLM for building ROMs with rom_sbs.pl through SBSv2.
Arnaud Lenoir <arnaudl@symbian.org>
parents:
diff changeset
    27
# expand
4ab060f25417 Create and register FLM for building ROMs with rom_sbs.pl through SBSv2.
Arnaud Lenoir <arnaudl@symbian.org>
parents:
diff changeset
    28
$(eval $(rom))
6
248107124823 Updated to support the WHAT and CLEAN commands by declaring that the FLM will generate 3 output files (IMG, LOG and OBY).
Simon Howkins <simonh@symbian.org>
parents: 5
diff changeset
    29
248107124823 Updated to support the WHAT and CLEAN commands by declaring that the FLM will generate 3 output files (IMG, LOG and OBY).
Simon Howkins <simonh@symbian.org>
parents: 5
diff changeset
    30
# The items produced by this FLM:
248107124823 Updated to support the WHAT and CLEAN commands by declaring that the FLM will generate 3 output files (IMG, LOG and OBY).
Simon Howkins <simonh@symbian.org>
parents: 5
diff changeset
    31
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
248107124823 Updated to support the WHAT and CLEAN commands by declaring that the FLM will generate 3 output files (IMG, LOG and OBY).
Simon Howkins <simonh@symbian.org>
parents: 5
diff changeset
    32
248107124823 Updated to support the WHAT and CLEAN commands by declaring that the FLM will generate 3 output files (IMG, LOG and OBY).
Simon Howkins <simonh@symbian.org>
parents: 5
diff changeset
    33
## What targets -- declare the files produced here
248107124823 Updated to support the WHAT and CLEAN commands by declaring that the FLM will generate 3 output files (IMG, LOG and OBY).
Simon Howkins <simonh@symbian.org>
parents: 5
diff changeset
    34
$(eval $(call whatmacro, $(RELEASEABLES)))
248107124823 Updated to support the WHAT and CLEAN commands by declaring that the FLM will generate 3 output files (IMG, LOG and OBY).
Simon Howkins <simonh@symbian.org>
parents: 5
diff changeset
    35
## Clean up
248107124823 Updated to support the WHAT and CLEAN commands by declaring that the FLM will generate 3 output files (IMG, LOG and OBY).
Simon Howkins <simonh@symbian.org>
parents: 5
diff changeset
    36
$(eval $(call GenerateStandardCleanTarget, $(RELEASEABLES)))
248107124823 Updated to support the WHAT and CLEAN commands by declaring that the FLM will generate 3 output files (IMG, LOG and OBY).
Simon Howkins <simonh@symbian.org>
parents: 5
diff changeset
    37
248107124823 Updated to support the WHAT and CLEAN commands by declaring that the FLM will generate 3 output files (IMG, LOG and OBY).
Simon Howkins <simonh@symbian.org>
parents: 5
diff changeset
    38
9
9cb0a1529d81 Changed export of log files to just export them from the current directory, as that's where rom.pl/rom_sbs.pl leaves them.
Simon Howkins <simonh@symbian.org>
parents: 6
diff changeset
    39