projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tee: change return code for REE FS supplicant cmd
[oweals/u-boot.git]
/
tools
/
genboardscfg.py
diff --git
a/tools/genboardscfg.py
b/tools/genboardscfg.py
index 654100bf07ed692fe5cbd7f1cee5461a95c8414c..e9bbd15e15a937686d19f4ba6eb385e37fb5369b 100755
(executable)
--- a/
tools/genboardscfg.py
+++ b/
tools/genboardscfg.py
@@
-1,9
+1,8
@@
#!/usr/bin/env python2
#!/usr/bin/env python2
+# SPDX-License-Identifier: GPL-2.0+
#
# Author: Masahiro Yamada <yamada.m@jp.panasonic.com>
#
#
# Author: Masahiro Yamada <yamada.m@jp.panasonic.com>
#
-# SPDX-License-Identifier: GPL-2.0+
-#
"""
Converter from Kconfig and MAINTAINERS to a board database.
"""
Converter from Kconfig and MAINTAINERS to a board database.
@@
-21,12
+20,11
@@
import glob
import multiprocessing
import optparse
import os
import multiprocessing
import optparse
import os
-import subprocess
import sys
import tempfile
import time
import sys
import tempfile
import time
-sys.path.
append(
os.path.join(os.path.dirname(__file__), 'buildman'))
+sys.path.
insert(1,
os.path.join(os.path.dirname(__file__), 'buildman'))
import kconfiglib
### constant variables ###
import kconfiglib
### constant variables ###
@@
-125,7
+123,7
@@
class KconfigScanner:
os.environ['srctree'] = os.getcwd()
os.environ['UBOOTVERSION'] = 'dummy'
os.environ['KCONFIG_OBJDIR'] = ''
os.environ['srctree'] = os.getcwd()
os.environ['UBOOTVERSION'] = 'dummy'
os.environ['KCONFIG_OBJDIR'] = ''
- self._conf = kconfiglib.Config()
+ self._conf = kconfiglib.Config(
print_warnings=False
)
def __del__(self):
"""Delete a leftover temporary file before exit.
def __del__(self):
"""Delete a leftover temporary file before exit.
@@
-167,7
+165,10
@@
class KconfigScanner:
else:
f.write(line[colon + 1:])
else:
f.write(line[colon + 1:])
- self._conf.load_config(self._tmpfile)
+ warnings = self._conf.load_config(self._tmpfile)
+ if warnings:
+ for warning in warnings:
+ print '%s: %s' % (defconfig, warning)
try_remove(self._tmpfile)
self._tmpfile = None
try_remove(self._tmpfile)
self._tmpfile = None
@@
-295,6
+296,8
@@
class MaintainersDatabase:
tmp = self.database[target][0]
if tmp.startswith('Maintained'):
return 'Active'
tmp = self.database[target][0]
if tmp.startswith('Maintained'):
return 'Active'
+ elif tmp.startswith('Supported'):
+ return 'Active'
elif tmp.startswith('Orphan'):
return 'Orphan'
else:
elif tmp.startswith('Orphan'):
return 'Orphan'
else:
@@
-328,6
+331,9
@@
class MaintainersDatabase:
maintainers = []
status = '-'
for line in open(file):
maintainers = []
status = '-'
for line in open(file):
+ # Check also commented maintainers
+ if line[:3] == '#M:':
+ line = line[1:]
tag, rest = line[:2], line[2:].strip()
if tag == 'M:':
maintainers.append(rest)
tag, rest = line[:2], line[2:].strip()
if tag == 'M:':
maintainers.append(rest)