kernel/eka/rombuild/rom.flm
author Simon Howkins <simonh@symbian.org>
Fri, 27 Nov 2009 12:28:52 +0000
changeset 6 248107124823
parent 5 4ab060f25417
child 9 9cb0a1529d81
permissions -rw-r--r--
Updated to support the WHAT and CLEAN commands by declaring that the FLM will generate 3 output files (IMG, LOG and OBY).

#
# Copyright (c) 2009 Symbian.  All rights reserved.
#

# macro for all the rules
define rom

FINAL::	
ifeq ($(OSTYPE),unix)
	$(call startrule,rom) \
	echo "This is not supported currently"; \
	$(call endrule,rom)
else
	$(call startrule,rom) \
	$(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 \
	$(call endrule,rom)
endif

FINAL::	
	$(call startrule,copy) \
	mv $(EPOCROOT)/$(REE_PATH)/rom.oby $(EPOCROOT)/epoc32/rom/$(REE_TARGET)/$(REE_TARGET)_$(TYPE)_$(PLATFORM)_$(CFG)_rom.oby; \
	mv $(EPOCROOT)/$(REE_PATH)/ROMBUILD.LOG $(EPOCROOT)/epoc32/rom/$(REE_TARGET)/$(REE_TARGET)_$(TYPE)_$(PLATFORM)_$(CFG)_ROMBUILD.LOG; \
	mv $(EPOCROOT)/$(REE_PATH)/$(REE_TARGET)_$(TYPE)_$(PLATFORM)_$(CFG).img $(EPOCROOT)/epoc32/rom/$(REE_TARGET)_$(TYPE)_$(PLATFORM)_$(CFG).img; \
	$(call endrule,copy)

endef

# expand
$(eval $(rom))

# The items produced by this FLM:
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

## What targets -- declare the files produced here
$(eval $(call whatmacro, $(RELEASEABLES)))
## Clean up
$(eval $(call GenerateStandardCleanTarget, $(RELEASEABLES)))