diff options
author | Li-Ta Lo <ollie@lanl.gov> | 2004-04-13 21:06:45 +0000 |
---|---|---|
committer | Li-Ta Lo <ollie@lanl.gov> | 2004-04-13 21:06:45 +0000 |
commit | fd8f02f762f50de5df348c24dbff978c34e74f2c (patch) | |
tree | 75c862aa558b43017e2dc729df29eb6a0f2fffd4 /util/newconfig | |
parent | 3f5b4660b6c50af57a8599d54b5d84026e0de5cd (diff) | |
download | coreboot-fd8f02f762f50de5df348c24dbff978c34e74f2c.tar.xz |
porting getpir to freebios2
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1500 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'util/newconfig')
-rw-r--r-- | util/newconfig/config.g | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/util/newconfig/config.g b/util/newconfig/config.g index aa48ead780..4e98e02ed3 100644 --- a/util/newconfig/config.g +++ b/util/newconfig/config.g @@ -1941,6 +1941,42 @@ def writeldoptions(image): file.write("%s = %s;\n" % (o.name, getformated(o.name, image))) file.close() +# Write doxygen file. +def writedoxygenfile(image): + doxyscriptbase = os.path.join(treetop, "src/config/doxyscript.base") + doxyfilepath = os.path.join(image.gettargetdir(), "LinuxBIOSDoc.config") + print "Creating", doxyfilepath + file = safe_open(doxyfilepath, 'w+') + +# FIXME. Should be computing .c once. Fix this in objectrules.append + file.write("INPUT= \\\n") + for irule, init in image.getinitobjectrules().items(): + source = init[1] + if (source[-2:] != '.c'): # no suffix. Build name. + base = init[0][:-2] + source = os.path.join(source, base) + ".c" + file.write("%s \\\n" % source) + for objrule, obj in image.getobjectrules().items(): + source = obj[1] + if (source[-2:] != '.c'): # no suffix. Build name. + base = obj[0][:-2] + source = os.path.join(source, base) + ".c" + file.write("%s \\\n" % source) + for driverrule, driver in image.getdriverrules().items(): + source = driver[1] + if (source[-2:] != '.c'): # no suffix. Build name. + base = driver[0][:-2] + source = os.path.join(source, base) + ".c" + file.write("%s \\\n" % source) + + fp = safe_open(doxyscriptbase, 'r') + doxylines = fp.readlines() + if (debug): + print "DOXYLINES ",doxylines + for line in doxylines: + file.write(line) + file.close(); + def dumptree(part, lvl): debug.info(debug.dumptree, "DUMPTREE ME is") part.dumpme(lvl) @@ -2056,6 +2092,7 @@ if __name__=='__main__': writeinitincludes(image) writeimagemakefile(image) writeldoptions(image) + writedoxygenfile(image) writemakefilesettings(target_dir) writemakefile(target_dir) |