We need a way to pass flags to rombuilds in Raptor via extension flm interfaces, so that the CPP pass GCC_SURGE
authorMike Kinghan <mikek@symbian.org>
Tue, 16 Nov 2010 14:39:21 +0000
branchGCC_SURGE
changeset 303 9b85206a602c
parent 267 9b718307b8ec
child 304 65c392e2638d
We need a way to pass flags to rombuilds in Raptor via extension flm interfaces, so that the CPP pass of the rom input files can be informed what toolchain we are building with and conditionally include or exclude files depending on whether the toolchain could build them.
kernel/eka/rombuild/rom.flm
kernel/eka/rombuild/rom.xml
--- a/kernel/eka/rombuild/rom.flm	Thu Sep 23 11:57:02 2010 +0100
+++ b/kernel/eka/rombuild/rom.flm	Tue Nov 16 14:39:21 2010 +0000
@@ -2,6 +2,10 @@
 # Copyright (c) 2009 Symbian.  All rights reserved.
 #
 
+ifdef ROM_DEFS
+ROMBUILD_FLAGS := --define="$(ROM_DEFS)"
+endif
+
 ifeq ($(OSTYPE),unix)
 	rombuilder := $(EPOCROOT)/epoc32/rom/tools/romnibus.pl
 else
@@ -13,7 +17,7 @@
 
 FINAL::	
 	$(call startrule,rom) \
-	$(PERL) $(rombuilder) --variant=$(REE_TARGET) --inst=$(PLATFORM) --build=$(CFG) --type=$(TYPE) --clean --name=$(REE_TARGET)_$(TYPE)_$(PLATFORM)_$(CFG).img \
+	$(PERL) $(rombuilder) $(ROMBUILD_FLAGS) --variant=$(REE_TARGET) --inst=$(PLATFORM) --build=$(CFG) --type=$(TYPE) --clean --name=$(REE_TARGET)_$(TYPE)_$(PLATFORM)_$(CFG).img \
 	$(call endrule,rom)
 
 FINAL::	
--- a/kernel/eka/rombuild/rom.xml	Thu Sep 23 11:57:02 2010 +0100
+++ b/kernel/eka/rombuild/rom.xml	Tue Nov 16 14:39:21 2010 +0000
@@ -22,5 +22,6 @@
 	<interface name="base.rom" extends="Symbian.KernelFLM" flm="rom.flm">
 		<param name="REE_TARGET"/>
 		<param name="TYPE"/>
+		<param name="ROM_DEFS"/>
 	</interface>
 </build>