summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorStefan Reinauer <stepan@coresystems.de>2009-04-08 06:41:06 +0000
committerStefan Reinauer <stepan@openbios.org>2009-04-08 06:41:06 +0000
commitd40f7db2d92c9f5421fbd80b8a479524284e781e (patch)
treefa0e4fc0a79f6f18b22d3ea847fb6ec322bdb6e7 /util
parent0de8b9111aec7ee5f625ab9c5e3f813d7929bc71 (diff)
Only build romfs on those target that have CONFIG_ROMFS enabled.
Signed-off-by: Stefan Reinauer <stepan@coresystems.de> Acked-by: Stefan Reinauer <stepan@coresystems.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4083 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'util')
-rw-r--r--util/newconfig/config.g14
1 files changed, 12 insertions, 2 deletions
diff --git a/util/newconfig/config.g b/util/newconfig/config.g
index e9cd8806c2..b7d9c69ef7 100644
--- a/util/newconfig/config.g
+++ b/util/newconfig/config.g
@@ -2034,7 +2034,7 @@ def writeimagesettings(image):
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 @@ def writemakefile(path):
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")