kernel/eka/rombuild/rom.flm
author Mark Wilcox <markw@symbian.org>
Tue, 25 May 2010 13:20:47 +0100
changeset 116 57eea1054f46
parent 99 6e5f9f6173bc
child 205 0b74fa7370f0
permissions -rw-r--r--
Use RVCT assembler for __crash() when running armcc with the --gnu option. Fix for bug 2742.
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
6e5f9f6173bc re-apply changes to support syborg rom
andy simpson <andrews@symbian.org>
parents:
diff changeset
     5
# macro for all the rules
6e5f9f6173bc re-apply changes to support syborg rom
andy simpson <andrews@symbian.org>
parents:
diff changeset
     6
define rom
6e5f9f6173bc re-apply changes to support syborg rom
andy simpson <andrews@symbian.org>
parents:
diff changeset
     7
6e5f9f6173bc re-apply changes to support syborg rom
andy simpson <andrews@symbian.org>
parents:
diff changeset
     8
FINAL::	
6e5f9f6173bc re-apply changes to support syborg rom
andy simpson <andrews@symbian.org>
parents:
diff changeset
     9
ifeq ($(OSTYPE),unix)
6e5f9f6173bc re-apply changes to support syborg rom
andy simpson <andrews@symbian.org>
parents:
diff changeset
    10
	$(call startrule,rom) \
6e5f9f6173bc re-apply changes to support syborg rom
andy simpson <andrews@symbian.org>
parents:
diff changeset
    11
	echo "This is not supported currently"; \
6e5f9f6173bc re-apply changes to support syborg rom
andy simpson <andrews@symbian.org>
parents:
diff changeset
    12
	$(call endrule,rom)
6e5f9f6173bc re-apply changes to support syborg rom
andy simpson <andrews@symbian.org>
parents:
diff changeset
    13
else
6e5f9f6173bc re-apply changes to support syborg rom
andy simpson <andrews@symbian.org>
parents:
diff changeset
    14
	$(call startrule,rom) \
6e5f9f6173bc re-apply changes to support syborg rom
andy simpson <andrews@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 \
6e5f9f6173bc re-apply changes to support syborg rom
andy simpson <andrews@symbian.org>
parents:
diff changeset
    16
	$(call endrule,rom)
6e5f9f6173bc re-apply changes to support syborg rom
andy simpson <andrews@symbian.org>
parents:
diff changeset
    17
endif
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