kernel/eka/rombuild/rom.flm
author Mike Kinghan <mikek@symbian.org>
Wed, 24 Nov 2010 09:22:22 +0000
branchGCC_SURGE
changeset 304 65c392e2638d
parent 303 9b85206a602c
child 305 1ba12ef4ef89
permissions -rw-r--r--
Use the portable rom builder romnibus.pl for Windows as well as Linux hosts.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
99
6e5f9f6173bc re-apply changes to support syborg rom
andy simpson <andrews@symbian.org>
parents:
diff changeset
     1
#
6e5f9f6173bc re-apply changes to support syborg rom
andy simpson <andrews@symbian.org>
parents:
diff changeset
     2
# Copyright (c) 2009 Symbian.  All rights reserved.
6e5f9f6173bc re-apply changes to support syborg rom
andy simpson <andrews@symbian.org>
parents:
diff changeset
     3
#
6e5f9f6173bc re-apply changes to support syborg rom
andy simpson <andrews@symbian.org>
parents:
diff changeset
     4
303
9b85206a602c We need a way to pass flags to rombuilds in Raptor via extension flm interfaces, so that the CPP pass
Mike Kinghan <mikek@symbian.org>
parents: 205
diff changeset
     5
ifdef ROM_DEFS
9b85206a602c We need a way to pass flags to rombuilds in Raptor via extension flm interfaces, so that the CPP pass
Mike Kinghan <mikek@symbian.org>
parents: 205
diff changeset
     6
ROMBUILD_FLAGS := --define="$(ROM_DEFS)"
9b85206a602c We need a way to pass flags to rombuilds in Raptor via extension flm interfaces, so that the CPP pass
Mike Kinghan <mikek@symbian.org>
parents: 205
diff changeset
     7
endif
9b85206a602c We need a way to pass flags to rombuilds in Raptor via extension flm interfaces, so that the CPP pass
Mike Kinghan <mikek@symbian.org>
parents: 205
diff changeset
     8
304
65c392e2638d Use the portable rom builder romnibus.pl for Windows as well as Linux hosts.
Mike Kinghan <mikek@symbian.org>
parents: 303
diff changeset
     9
rombuilder := $(EPOCROOT)/epoc32/rom/tools/romnibus.pl
205
0b74fa7370f0 Support rom building under Linux, using the FCL/interim/sftools/linux_build/ tools
Mike Kinghan <mikek@symbian.org>
parents: 99
diff changeset
    10
99
6e5f9f6173bc re-apply changes to support syborg rom
andy simpson <andrews@symbian.org>
parents:
diff changeset
    11
# macro for all the rules
6e5f9f6173bc re-apply changes to support syborg rom
andy simpson <andrews@symbian.org>
parents:
diff changeset
    12
define rom
6e5f9f6173bc re-apply changes to support syborg rom
andy simpson <andrews@symbian.org>
parents:
diff changeset
    13
6e5f9f6173bc re-apply changes to support syborg rom
andy simpson <andrews@symbian.org>
parents:
diff changeset
    14
FINAL::	
6e5f9f6173bc re-apply changes to support syborg rom
andy simpson <andrews@symbian.org>
parents:
diff changeset
    15
	$(call startrule,rom) \
303
9b85206a602c We need a way to pass flags to rombuilds in Raptor via extension flm interfaces, so that the CPP pass
Mike Kinghan <mikek@symbian.org>
parents: 205
diff changeset
    16
	$(PERL) $(rombuilder) $(ROMBUILD_FLAGS) --variant=$(REE_TARGET) --inst=$(PLATFORM) --build=$(CFG) --type=$(TYPE) --clean --name=$(REE_TARGET)_$(TYPE)_$(PLATFORM)_$(CFG).img \
99
6e5f9f6173bc re-apply changes to support syborg rom
andy simpson <andrews@symbian.org>
parents:
diff changeset
    17
	$(call endrule,rom)
6e5f9f6173bc re-apply changes to support syborg rom
andy simpson <andrews@symbian.org>
parents:
diff changeset
    18
6e5f9f6173bc re-apply changes to support syborg rom
andy simpson <andrews@symbian.org>
parents:
diff changeset
    19
FINAL::	
6e5f9f6173bc re-apply changes to support syborg rom
andy simpson <andrews@symbian.org>
parents:
diff changeset
    20
	$(call startrule,copy) \
6e5f9f6173bc re-apply changes to support syborg rom
andy simpson <andrews@symbian.org>
parents:
diff changeset
    21
	mv rom.oby $(EPOCROOT)/epoc32/rom/$(REE_TARGET)/$(REE_TARGET)_$(TYPE)_$(PLATFORM)_$(CFG)_rom.oby; \
6e5f9f6173bc re-apply changes to support syborg rom
andy simpson <andrews@symbian.org>
parents:
diff changeset
    22
	mv ROMBUILD.LOG $(EPOCROOT)/epoc32/rom/$(REE_TARGET)/$(REE_TARGET)_$(TYPE)_$(PLATFORM)_$(CFG)_ROMBUILD.LOG; \
6e5f9f6173bc re-apply changes to support syborg rom
andy simpson <andrews@symbian.org>
parents:
diff changeset
    23
	mv $(REE_TARGET)_$(TYPE)_$(PLATFORM)_$(CFG).img $(EPOCROOT)/epoc32/rom/$(REE_TARGET)_$(TYPE)_$(PLATFORM)_$(CFG).img; \
6e5f9f6173bc re-apply changes to support syborg rom
andy simpson <andrews@symbian.org>
parents:
diff changeset
    24
	$(call endrule,copy)
6e5f9f6173bc re-apply changes to support syborg rom
andy simpson <andrews@symbian.org>
parents:
diff changeset
    25
6e5f9f6173bc re-apply changes to support syborg rom
andy simpson <andrews@symbian.org>
parents:
diff changeset
    26
endef
6e5f9f6173bc re-apply changes to support syborg rom
andy simpson <andrews@symbian.org>
parents:
diff changeset
    27
6e5f9f6173bc re-apply changes to support syborg rom
andy simpson <andrews@symbian.org>
parents:
diff changeset
    28
# expand
6e5f9f6173bc re-apply changes to support syborg rom
andy simpson <andrews@symbian.org>
parents:
diff changeset
    29
$(eval $(rom))
6e5f9f6173bc re-apply changes to support syborg rom
andy simpson <andrews@symbian.org>
parents:
diff changeset
    30
6e5f9f6173bc re-apply changes to support syborg rom
andy simpson <andrews@symbian.org>
parents:
diff changeset
    31
# The items produced by this FLM:
6e5f9f6173bc re-apply changes to support syborg rom
andy simpson <andrews@symbian.org>
parents:
diff changeset
    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
6e5f9f6173bc re-apply changes to support syborg rom
andy simpson <andrews@symbian.org>
parents:
diff changeset
    33
6e5f9f6173bc re-apply changes to support syborg rom
andy simpson <andrews@symbian.org>
parents:
diff changeset
    34
## What targets -- declare the files produced here
6e5f9f6173bc re-apply changes to support syborg rom
andy simpson <andrews@symbian.org>
parents:
diff changeset
    35
$(eval $(call whatmacro, $(RELEASEABLES)))
6e5f9f6173bc re-apply changes to support syborg rom
andy simpson <andrews@symbian.org>
parents:
diff changeset
    36
## Clean up
6e5f9f6173bc re-apply changes to support syborg rom
andy simpson <andrews@symbian.org>
parents:
diff changeset
    37
$(eval $(call GenerateStandardCleanTarget, $(RELEASEABLES)))
6e5f9f6173bc re-apply changes to support syborg rom
andy simpson <andrews@symbian.org>
parents:
diff changeset
    38
6e5f9f6173bc re-apply changes to support syborg rom
andy simpson <andrews@symbian.org>
parents:
diff changeset
    39
6e5f9f6173bc re-apply changes to support syborg rom
andy simpson <andrews@symbian.org>
parents:
diff changeset
    40