• Home
  • Raw
  • Download

Lines Matching +full:stdout +full:- +full:path

2 # -*- coding: utf-8 -*-
5 SPDX-License-Identifier: GPL-2.0
25 …rmat '%d' expects argument of type 'int', but argument 9 has type 'long unsigned int' [-Wformat=]",
30 … "mm/vmscan.c: warning: suggest parentheses around assignment used as truth value [-Wparentheses]",
32 … "drivers/mmc/host/sdhci-esdhc-imx.c: warning: 'sdhci_esdhc_imx_probe_nondt' defined but not used",
37 def __init__(self, arch, path): argument
39 self.path = path
45 return os.path.normpath(filename)
59 if not os.path.exists(os.path.join(self.path, filename)):
129 ('[-Wunused-but-set-variable]', 'warning: .* set but not used'),
130 ('[-Wunused-but-set-parameter]', 'warning: .* set but not used'),
131 ('[-Wunused-const-variable=]', 'warning: .* defined but not used'),
132 ('[-Wold-style-definition]', 'warning: .* definition'),
133 ('[-Wold-style-declaration]', 'warning: .* declaration'),
134 ('[-Wmaybe-uninitialized]', 'warning: .* uninitialized'),
135 ('[-Wtype-limits]', 'warning: .* always (false|true)'),
136 ('[-Wunused-function]', 'warning: .* defined but not used'),
137 ('[-Wsequence-point]', 'warning: .* may be undefined'),
138 ('[-Wformat=]', 'warning: format.*'),
139 ('[-Wunused-variable]', 'warning: [^\[]*'),
140 ('[-Wframe-larger-than=]', 'warning: the frame size [^\[]*'),
141 ('[-Wshift-count-overflow]', 'warning: left shift count >= width of type'),
146 ('[-Wparentheses]', 'suggest parentheses around assignment used as truth value'),
173 stdout=subprocess.PIPE,
182 poller.register(proc.stdout, select.EPOLLIN)
188 if fd == proc.stdout.fileno():
189 line = proc.stdout.readline()
191 print(">> [stdout] %s", line.strip('\n'))
199 for line in proc.stdout.readlines():
201 print(">> [stdout] %s", line.strip('\n'))
209 print(f"Returned {ret} in {int(time.time() - start)} seconds")
218 print(f'"{make}" errors --> \n {errmsg}')
219 return ret, f'"{make}" errors --> \n {errmsg}'
228 print(f'"{make}" errors --> \n {errmsg}')
229 return ret, f'"{make}" errors --> \n {errmsg}'
235 make = f'make -j{os.cpu_count()} ARCH={arch} CROSS_COMPILE={cross_compile}'
238 print(f'"{make}" errors --> \n {errmsg}')
239 return ret, f'"{make}" errors --> \n {errmsg}'
241 print(f'"{make}" warnings --> \n {errmsg}')
261 return 2, f'"{make}" warning --> \n {new_issue}'
263 return ret, f'"{make}" warnings in ignores --> \n {known_issue}'
269 if os.path.exists(config_path.format(arch, config)):
270 …cp = f'cp ' + config_path.format(arch, config) + ' ' + os.path.join(knl_path, 'arch', arch, 'confi…
273 print(f'"{cp}" errors --> \n {errmsg}')
274 return ret, f'"{cp}" errors --> \n {errmsg}'
284 log_date_format = '%Y-%m-%d %H:%M:%S'
341 sed = f'sed -i s/^.*CONFIG_FRAME_WARN.*$/CONFIG_FRAME_WARN=2048/ .config'
358 config_path = './kernel/linux/config/linux-5.10/arch/{0}/configs/{1}'
359 knl_path = './kernel/linux/linux-5.10'
362 log_file = os.path.join(log_path, 'kernel_build_test.log')
367 …oss_compile = '../../../prebuilts/gcc/linux-x86/arm/gcc-linaro-7.5.0-arm-linux-gnueabi/bin/arm-lin…
372 …le = '../../../prebuilts/gcc/linux-x86/aarch64/gcc-linaro-7.5.0-2019.12-x86_64_aarch64-linux-gnu/b…