Update Buildroot 2019.02.8
This commit is contained in:
@@ -33,6 +33,7 @@ def parse_args():
|
||||
default="http://nightly.buildroot.org/",
|
||||
help="default: %(default)s")
|
||||
parser.add_argument("--verbose", "-v", action="count", default=0)
|
||||
parser.add_argument("--quiet", "-q", action="count", default=0)
|
||||
|
||||
# Now the debug options in the order they are processed.
|
||||
parser.add_argument("--include-only", dest="include_list", action="append",
|
||||
@@ -177,8 +178,10 @@ def __main__():
|
||||
# (e.g. counted by 'wc'), so for stats use stderr. Wait all warnings are
|
||||
# printed, for the case there are many of them, before printing stats.
|
||||
sys.stdout.flush()
|
||||
print("{} lines processed".format(total_lines), file=sys.stderr)
|
||||
print("{} warnings generated".format(total_warnings), file=sys.stderr)
|
||||
|
||||
if not flags.quiet:
|
||||
print("{} lines processed".format(total_lines), file=sys.stderr)
|
||||
print("{} warnings generated".format(total_warnings), file=sys.stderr)
|
||||
|
||||
if total_warnings > 0:
|
||||
sys.exit(1)
|
||||
|
||||
@@ -39,14 +39,6 @@ def urlopen_closing(uri):
|
||||
return contextlib.closing(_urllib.urlopen(uri))
|
||||
|
||||
|
||||
if sys.hexversion >= 0x3000000:
|
||||
def decode_byte_list(bl):
|
||||
return [b.decode() for b in bl]
|
||||
else:
|
||||
def decode_byte_list(e):
|
||||
return e
|
||||
|
||||
|
||||
class SystemInfo:
|
||||
DEFAULT_NEEDED_PROGS = ["make", "git", "gcc", "timeout"]
|
||||
DEFAULT_OPTIONAL_PROGS = ["bzr", "java", "javac", "jar"]
|
||||
@@ -128,7 +120,7 @@ def get_toolchain_configs(toolchains_csv, buildrootdir):
|
||||
with open(toolchains_csv) as r:
|
||||
# filter empty lines and comments
|
||||
lines = [t for t in r.readlines() if len(t.strip()) > 0 and t[0] != '#']
|
||||
toolchains = decode_byte_list(lines)
|
||||
toolchains = lines
|
||||
configs = []
|
||||
|
||||
(_, _, _, _, hostarch) = os.uname()
|
||||
|
||||
@@ -12,18 +12,19 @@ do_clean() {
|
||||
|
||||
main() {
|
||||
local o O opts
|
||||
local cfg dir pkg random toolchains_dir toolchain all number mode
|
||||
local ret nb nb_skip nb_fail nb_legal nb_tc build_dir
|
||||
local cfg dir pkg random toolchains_csv toolchain all number mode
|
||||
local ret nb nb_skip nb_fail nb_legal nb_tc build_dir keep
|
||||
local -a toolchains
|
||||
local pkg_br_name
|
||||
|
||||
o='hac:d:n:p:r:t:'
|
||||
O='help,config-snippet:build-dir:package:,random:,toolchains-dir:'
|
||||
o='hakc:d:n:p:r:t:'
|
||||
O='help,all,keep,config-snippet:,build-dir:,number:,package:,random:,toolchains-csv:'
|
||||
opts="$(getopt -n "${my_name}" -o "${o}" -l "${O}" -- "${@}")"
|
||||
eval set -- "${opts}"
|
||||
|
||||
random=0
|
||||
all=0
|
||||
keep=0
|
||||
number=0
|
||||
mode=0
|
||||
toolchains_csv="${TOOLCHAINS_CSV}"
|
||||
@@ -35,6 +36,9 @@ main() {
|
||||
(-a|--all)
|
||||
all=1; shift 1
|
||||
;;
|
||||
(-k|--keep)
|
||||
keep=1; shift 1
|
||||
;;
|
||||
(-c|--config-snippet)
|
||||
cfg="${2}"; shift 2
|
||||
;;
|
||||
@@ -134,6 +138,8 @@ main() {
|
||||
|
||||
printf "%d builds, %d skipped, %d build failed, %d legal-info failed\n" \
|
||||
${nb} ${nb_skip} ${nb_fail} ${nb_legal}
|
||||
|
||||
return $((nb_fail + nb_legal))
|
||||
}
|
||||
|
||||
build_one() {
|
||||
@@ -176,6 +182,12 @@ build_one() {
|
||||
if ! make O="${dir}" legal-info >> "${dir}/logfile" 2>&1; then
|
||||
return 3
|
||||
fi
|
||||
|
||||
# If we get here, the build was successful. Clean up the build/host
|
||||
# directories to save disk space, unless 'keep' was set.
|
||||
if [ ${keep} -ne 1 ]; then
|
||||
make O="${dir}" clean >> "${dir}/logfile" 2>&1
|
||||
fi
|
||||
}
|
||||
|
||||
help() {
|
||||
@@ -236,6 +248,11 @@ Options:
|
||||
try. If not specified, the toolchains in ${TOOLCHAINS_CSV} will be
|
||||
used.
|
||||
|
||||
-k, --keep
|
||||
Keep the build directories even if the build succeeds.
|
||||
Note: the logfile and configuration is always retained, even without
|
||||
this option.
|
||||
|
||||
Example:
|
||||
|
||||
Testing libcec would require a config snippet that contains:
|
||||
|
||||
Reference in New Issue
Block a user