kernel/eka/rombuild/rom.flm
author William Roberts <williamr@symbian.org>
Tue, 20 Jul 2010 09:59:06 +0100
changeset 214 aa7a21cbc82b
child 205 0b74fa7370f0
permissions -rw-r--r--
Really supply rom.flm and friends (missed from previous commit)
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
214
aa7a21cbc82b Really supply rom.flm and friends (missed from previous commit)
William Roberts <williamr@symbian.org>
parents:
diff changeset
     1
#
aa7a21cbc82b Really supply rom.flm and friends (missed from previous commit)
William Roberts <williamr@symbian.org>
parents:
diff changeset
     2
# Copyright (c) 2009 Symbian.  All rights reserved.
aa7a21cbc82b Really supply rom.flm and friends (missed from previous commit)
William Roberts <williamr@symbian.org>
parents:
diff changeset
     3
#
aa7a21cbc82b Really supply rom.flm and friends (missed from previous commit)
William Roberts <williamr@symbian.org>
parents:
diff changeset
     4
aa7a21cbc82b Really supply rom.flm and friends (missed from previous commit)
William Roberts <williamr@symbian.org>
parents:
diff changeset
     5
# macro for all the rules
aa7a21cbc82b Really supply rom.flm and friends (missed from previous commit)
William Roberts <williamr@symbian.org>
parents:
diff changeset
     6
define rom
aa7a21cbc82b Really supply rom.flm and friends (missed from previous commit)
William Roberts <williamr@symbian.org>
parents:
diff changeset
     7
aa7a21cbc82b Really supply rom.flm and friends (missed from previous commit)
William Roberts <williamr@symbian.org>
parents:
diff changeset
     8
FINAL::	
aa7a21cbc82b Really supply rom.flm and friends (missed from previous commit)
William Roberts <williamr@symbian.org>
parents:
diff changeset
     9
ifeq ($(OSTYPE),unix)
aa7a21cbc82b Really supply rom.flm and friends (missed from previous commit)
William Roberts <williamr@symbian.org>
parents:
diff changeset
    10
	$(call startrule,rom) \
aa7a21cbc82b Really supply rom.flm and friends (missed from previous commit)
William Roberts <williamr@symbian.org>
parents:
diff changeset
    11
	echo "This is not supported currently"; \
aa7a21cbc82b Really supply rom.flm and friends (missed from previous commit)
William Roberts <williamr@symbian.org>
parents:
diff changeset
    12
	$(call endrule,rom)
aa7a21cbc82b Really supply rom.flm and friends (missed from previous commit)
William Roberts <williamr@symbian.org>
parents:
diff changeset
    13
else
aa7a21cbc82b Really supply rom.flm and friends (missed from previous commit)
William Roberts <williamr@symbian.org>
parents:
diff changeset
    14
	$(call startrule,rom) \
aa7a21cbc82b Really supply rom.flm and friends (missed from previous commit)
William Roberts <williamr@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 \
aa7a21cbc82b Really supply rom.flm and friends (missed from previous commit)
William Roberts <williamr@symbian.org>
parents:
diff changeset
    16
	$(call endrule,rom)
aa7a21cbc82b Really supply rom.flm and friends (missed from previous commit)
William Roberts <williamr@symbian.org>
parents:
diff changeset
    17
endif
aa7a21cbc82b Really supply rom.flm and friends (missed from previous commit)
William Roberts <williamr@symbian.org>
parents:
diff changeset
    18
aa7a21cbc82b Really supply rom.flm and friends (missed from previous commit)
William Roberts <williamr@symbian.org>
parents:
diff changeset
    19
FINAL::	
aa7a21cbc82b Really supply rom.flm and friends (missed from previous commit)
William Roberts <williamr@symbian.org>
parents:
diff changeset
    20
	$(call startrule,copy) \
aa7a21cbc82b Really supply rom.flm and friends (missed from previous commit)
William Roberts <williamr@symbian.org>
parents:
diff changeset
    21
	mv rom.oby $(EPOCROOT)/epoc32/rom/$(REE_TARGET)/$(REE_TARGET)_$(TYPE)_$(PLATFORM)_$(CFG)_rom.oby; \
aa7a21cbc82b Really supply rom.flm and friends (missed from previous commit)
William Roberts <williamr@symbian.org>
parents:
diff changeset
    22
	mv ROMBUILD.LOG $(EPOCROOT)/epoc32/rom/$(REE_TARGET)/$(REE_TARGET)_$(TYPE)_$(PLATFORM)_$(CFG)_ROMBUILD.LOG; \
aa7a21cbc82b Really supply rom.flm and friends (missed from previous commit)
William Roberts <williamr@symbian.org>
parents:
diff changeset
    23
	mv $(REE_TARGET)_$(TYPE)_$(PLATFORM)_$(CFG).img $(EPOCROOT)/epoc32/rom/$(REE_TARGET)_$(TYPE)_$(PLATFORM)_$(CFG).img; \
aa7a21cbc82b Really supply rom.flm and friends (missed from previous commit)
William Roberts <williamr@symbian.org>
parents:
diff changeset
    24
	$(call endrule,copy)
aa7a21cbc82b Really supply rom.flm and friends (missed from previous commit)
William Roberts <williamr@symbian.org>
parents:
diff changeset
    25
aa7a21cbc82b Really supply rom.flm and friends (missed from previous commit)
William Roberts <williamr@symbian.org>
parents:
diff changeset
    26
endef
aa7a21cbc82b Really supply rom.flm and friends (missed from previous commit)
William Roberts <williamr@symbian.org>
parents:
diff changeset
    27
aa7a21cbc82b Really supply rom.flm and friends (missed from previous commit)
William Roberts <williamr@symbian.org>
parents:
diff changeset
    28
# expand
aa7a21cbc82b Really supply rom.flm and friends (missed from previous commit)
William Roberts <williamr@symbian.org>
parents:
diff changeset
    29
$(eval $(rom))
aa7a21cbc82b Really supply rom.flm and friends (missed from previous commit)
William Roberts <williamr@symbian.org>
parents:
diff changeset
    30
aa7a21cbc82b Really supply rom.flm and friends (missed from previous commit)
William Roberts <williamr@symbian.org>
parents:
diff changeset
    31
# The items produced by this FLM:
aa7a21cbc82b Really supply rom.flm and friends (missed from previous commit)
William Roberts <williamr@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
aa7a21cbc82b Really supply rom.flm and friends (missed from previous commit)
William Roberts <williamr@symbian.org>
parents:
diff changeset
    33
aa7a21cbc82b Really supply rom.flm and friends (missed from previous commit)
William Roberts <williamr@symbian.org>
parents:
diff changeset
    34
## What targets -- declare the files produced here
aa7a21cbc82b Really supply rom.flm and friends (missed from previous commit)
William Roberts <williamr@symbian.org>
parents:
diff changeset
    35
$(eval $(call whatmacro, $(RELEASEABLES)))
aa7a21cbc82b Really supply rom.flm and friends (missed from previous commit)
William Roberts <williamr@symbian.org>
parents:
diff changeset
    36
## Clean up
aa7a21cbc82b Really supply rom.flm and friends (missed from previous commit)
William Roberts <williamr@symbian.org>
parents:
diff changeset
    37
$(eval $(call GenerateStandardCleanTarget, $(RELEASEABLES)))
aa7a21cbc82b Really supply rom.flm and friends (missed from previous commit)
William Roberts <williamr@symbian.org>
parents:
diff changeset
    38
aa7a21cbc82b Really supply rom.flm and friends (missed from previous commit)
William Roberts <williamr@symbian.org>
parents:
diff changeset
    39
aa7a21cbc82b Really supply rom.flm and friends (missed from previous commit)
William Roberts <williamr@symbian.org>
parents:
diff changeset
    40