[coreboot] [v2] r4083 - trunk/coreboot-v2/util/newconfig

svn at coreboot.org svn at coreboot.org
Wed Apr 8 08:41:07 CEST 2009


Author: stepan
Date: 2009-04-08 08:41:06 +0200 (Wed, 08 Apr 2009)
New Revision: 4083

Modified:
   trunk/coreboot-v2/util/newconfig/config.g
Log:
Only build romfs on those target that have CONFIG_ROMFS enabled.

Signed-off-by: Stefan Reinauer <stepan at coresystems.de>
Acked-by: Stefan Reinauer <stepan at coresystems.de>



Modified: trunk/coreboot-v2/util/newconfig/config.g
===================================================================
--- trunk/coreboot-v2/util/newconfig/config.g	2009-04-07 15:38:17 UTC (rev 4082)
+++ trunk/coreboot-v2/util/newconfig/config.g	2009-04-08 06:41:06 UTC (rev 4083)
@@ -2034,7 +2034,7 @@
 	for o in exported:
 		file.write("export VARIABLES += %s\n" % o.name)
 	file.write("\n")
-	writemakefilefooter(file,filename)
+	# writemakefilefooter(file,filename)
 	file.close()
 
 # write the romimage makefile
@@ -2224,11 +2224,21 @@
 	file = safe_open(makefilepath, 'w+')
 	writemakefileheader(file, makefilepath)
 
+	# Hack to get the necessary settings (CONFIG_ROMFS):
+	file.write("include %s/Makefile.settings\n\n" % romimages.keys()[0])
+
 	# main rule
+	file.write("ifeq \"$(CONFIG_ROMFS)\" \"1\"\n")
 	file.write("\nall: ")
 	for i in buildroms:
 		file.write(" %sfs" % i.name)
-	file.write("\n\n")	
+	file.write("\n")
+	file.write("else")
+	file.write("\nall: ")
+	for i in buildroms:
+		file.write(" %s" % i.name)
+	file.write("\n")
+	file.write("endif\n\n")
 
 	# romtool rules
 	file.write("\nromtool:\n\tmkdir -p tools/lzma\n\t$(MAKE) -C $(TOP)/util/romtool obj=$(shell pwd)\n\n")





More information about the coreboot mailing list