diff options
author | Tom Rini <trini@konsulko.com> | 2016-01-14 21:51:32 -0500 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2016-01-14 21:51:32 -0500 |
commit | 4edde96111aefac63d6aaca6ba87a90d149e973e (patch) | |
tree | 83996996fc15554644c114e4f4d534d78cef15fd /tools | |
parent | a737028e80603f49a4757adec10b5842d0689dbb (diff) | |
parent | 5c2ed61ce235fd835a3f594bc983dfc20959568c (diff) | |
download | u-boot-imx-4edde96111aefac63d6aaca6ba87a90d149e973e.zip u-boot-imx-4edde96111aefac63d6aaca6ba87a90d149e973e.tar.gz u-boot-imx-4edde96111aefac63d6aaca6ba87a90d149e973e.tar.bz2 |
Merge branch 'master' of git://git.denx.de/u-boot-x86
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/microcode-tool.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tools/microcode-tool.py b/tools/microcode-tool.py index 71c2e91..790c27e 100755 --- a/tools/microcode-tool.py +++ b/tools/microcode-tool.py @@ -95,9 +95,23 @@ def ParseHeaderFiles(fname_list): name = os.path.splitext(name)[0] data = [] with open(fname) as fd: + license_start = False + license_end = False for line in fd: line = line.rstrip() + if len(line) >= 2: + if line[0] == '/' and line[1] == '*': + license_start = True + continue + if line[0] == '*' and line[1] == '/': + license_end = True + continue + if license_start and not license_end: + # Ignore blank line + if len(line) > 0: + license_text.append(line) + continue # Omit anything after the last comma words = line.split(',')[:-1] data += [word + ',' for word in words] |