From d40f7db2d92c9f5421fbd80b8a479524284e781e Mon Sep 17 00:00:00 2001 From: Stefan Reinauer Date: Wed, 8 Apr 2009 06:41:06 +0000 Subject: Only build romfs on those target that have CONFIG_ROMFS enabled. Signed-off-by: Stefan Reinauer Acked-by: Stefan Reinauer git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4083 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- util/newconfig/config.g | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'util') 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") -- cgit v1.2.3