debian/lib/python/debian_linux/abi.py: Support new format of symbol files.
svn path=/dists/trunk/linux-2.6/; revision=7273
This commit is contained in:
parent
f02effb1b5
commit
803fd7203d
|
@ -37,21 +37,21 @@ class symbols(object):
|
||||||
self.symbols = {}
|
self.symbols = {}
|
||||||
|
|
||||||
for line in file.readlines():
|
for line in file.readlines():
|
||||||
version, symbol, module = line.strip().split()
|
version, symbol, module, export = line.strip().split()
|
||||||
|
|
||||||
symbols = self.modules.get(module, {})
|
symbols = self.modules.get(module, {})
|
||||||
symbols[symbol] = version
|
symbols[symbol] = version
|
||||||
self.modules[module] = symbols
|
self.modules[module] = symbols
|
||||||
if self.symbols.has_key(symbol):
|
if self.symbols.has_key(symbol):
|
||||||
pass
|
pass
|
||||||
self.symbols[symbol] = module, version
|
self.symbols[symbol] = module, version, export
|
||||||
|
|
||||||
def write(self, file):
|
def write(self, file):
|
||||||
symbols = self.symbols.items()
|
symbols = self.symbols.items()
|
||||||
symbols.sort()
|
symbols.sort()
|
||||||
for symbol, i in symbols:
|
for symbol, i in symbols:
|
||||||
module, version = i
|
module, version, export = i
|
||||||
file.write("%s %s %s\n" % (version, symbol, module))
|
file.write("%s %s %s %s\n" % (version, symbol, module, export))
|
||||||
|
|
||||||
def write_human(self, file):
|
def write_human(self, file):
|
||||||
modules = self.modules.keys()
|
modules = self.modules.keys()
|
||||||
|
@ -61,13 +61,13 @@ class symbols(object):
|
||||||
file.write("Symbols in vmlinux\n\n")
|
file.write("Symbols in vmlinux\n\n")
|
||||||
symbols = self.modules['vmlinux'].items()
|
symbols = self.modules['vmlinux'].items()
|
||||||
symbols.sort()
|
symbols.sort()
|
||||||
for symbol, version in symbols:
|
for symbol, version, export in symbols:
|
||||||
file.write("%-48s %s\n" % (symbol, version))
|
file.write("%-48s %s %s\n" % (symbol, version, export))
|
||||||
|
|
||||||
for module in modules:
|
for module in modules:
|
||||||
file.write("\n\nSymbols in module %s\n\n" % module)
|
file.write("\n\nSymbols in module %s\n\n" % module)
|
||||||
symbols = self.modules[module].items()
|
symbols = self.modules[module].items()
|
||||||
symbols.sort()
|
symbols.sort()
|
||||||
for symbol, version in symbols:
|
for symbol, version, export in symbols:
|
||||||
file.write("%-48s %s\n" % (symbol, version))
|
file.write("%-48s %s %s\n" % (symbol, version, export))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue