File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 39
39
# Fixed parameters that don't depend on CLI arguments.
40
40
consts = {}
41
41
consts ['repo_short_id' ] = 'lkmc'
42
- consts ['linux_kernel_version' ] = '5.9.2'
42
+ consts ['linux_kernel_version' ] = '.' . join ( map ( lambda i : str ( i ), path_properties . linux_kernel_version_tuple ))
43
43
# https://stackoverflow.com/questions/20010199/how-to-determine-if-a-process-runs-inside-lxc-docker
44
44
consts ['in_docker' ] = os .path .exists ('/.dockerenv' )
45
45
consts ['root_dir' ] = os .path .dirname (os .path .abspath (__file__ ))
Original file line number Diff line number Diff line change 5
5
6
6
from shell_helpers import LF
7
7
8
+ linux_kernel_version_tuple = (5 ,9 ,2 )
9
+
8
10
class PathProperties :
9
11
default_c_std = 'c11'
10
12
default_cxx_std = 'c++17'
@@ -59,6 +61,7 @@ class PathProperties:
59
61
'qemu_x86_64_int_syscall' : False ,
60
62
'interactive' : False ,
61
63
'minimum_gcc_version' : (0 , 0 , 0 ),
64
+ 'minimum_linux_version' : (0 , 0 , 0 ),
62
65
# The script takes a perceptible amount of time to run. Possibly an infinite loop.
63
66
'more_than_1s' : False ,
64
67
# The path should not be built. E.g.:
@@ -238,6 +241,8 @@ def should_be_built(
238
241
)
239
242
) and not (
240
243
self ['minimum_gcc_version' ] > self .current_gcc_version
244
+ ) and not (
245
+ self ['minimum_linux_version' ] > linux_kernel_version_tuple
241
246
)
242
247
)
243
248
You can’t perform that action at this time.
0 commit comments