kernel/eka/rombuild/rom.flm
author Mike Kinghan <mikek@symbian.org>
Sat, 17 Jul 2010 15:20:54 +0100
branchGCC_SURGE
changeset 205 0b74fa7370f0
parent 99 6e5f9f6173bc
child 303 9b85206a602c
permissions -rw-r--r--
Support rom building under Linux, using the FCL/interim/sftools/linux_build/ tools
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
205
0b74fa7370f0 Support rom building under Linux, using the FCL/interim/sftools/linux_build/ tools
Mike Kinghan <mikek@symbian.org>
parents: 99
diff changeset
     5
ifeq ($(OSTYPE),unix)
0b74fa7370f0 Support rom building under Linux, using the FCL/interim/sftools/linux_build/ tools
Mike Kinghan <mikek@symbian.org>
parents: 99
diff changeset
     6
	rombuilder := $(EPOCROOT)/epoc32/rom/tools/romnibus.pl
0b74fa7370f0 Support rom building under Linux, using the FCL/interim/sftools/linux_build/ tools
Mike Kinghan <mikek@symbian.org>
parents: 99
diff changeset
     7
else
0b74fa7370f0 Support rom building under Linux, using the FCL/interim/sftools/linux_build/ tools
Mike Kinghan <mikek@symbian.org>
parents: 99
diff changeset
     8
	rombuilder := $(EPOCROOT)/sf/os/kernelhwsrv/kernel/eka/rombuild/rom_sbs.pl 
0b74fa7370f0 Support rom building under Linux, using the FCL/interim/sftools/linux_build/ tools
Mike Kinghan <mikek@symbian.org>
parents: 99
diff changeset
     9
endif
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) \
205
0b74fa7370f0 Support rom building under Linux, using the FCL/interim/sftools/linux_build/ tools
Mike Kinghan <mikek@symbian.org>
parents: 99
diff changeset
    16
	$(PERL) $(rombuilder) --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