@@ -215,7 +215,7 @@ def patch_strict_prototypes(self) -> None:
215215 }
216216
217217 # the following files are not present in 4.14
218- if self ._lkv_src != "4.14" :
218+ if self .lkv_src != "4.14" :
219219 extra_non_414 = {
220220 self .rmanager .paths [self .codename ] / \
221221 "drivers" / \
@@ -446,9 +446,9 @@ def patch_ksu(self) -> None:
446446 )
447447
448448 # either patch kernel or KernelSU sources, depending on Linux kernel version
449- target_d = dcfg .root / "KernelSU" if self ._lkv_src == "4.14" else self .rmanager .paths [self .codename ]
449+ target_d = dcfg .root / "KernelSU" if self .lkv_src == "4.14" else self .rmanager .paths [self .codename ]
450450 fo .ucopy (
451- dcfg .root / "builder" / "modifications" / self ._ucodename / self ._lkv_src / patch_name ,
451+ dcfg .root / "builder" / "modifications" / self ._ucodename / self .lkv_src / patch_name ,
452452 target_d
453453 )
454454 os .chdir (target_d )
@@ -461,7 +461,7 @@ def patch_qcacld(self) -> None:
461461 goback = Path .cwd ()
462462
463463 fo .ucopy (
464- dcfg .root / "builder" / "modifications" / self ._ucodename / self ._lkv_src / patch_name ,
464+ dcfg .root / "builder" / "modifications" / self ._ucodename / self .lkv_src / patch_name ,
465465 self .rmanager .paths [self .codename ]
466466 )
467467 os .chdir (self .rmanager .paths [self .codename ])
@@ -494,7 +494,7 @@ def patch_kernel(self) -> None:
494494
495495 # apply .patch files
496496 fo .ucopy (
497- dcfg .root / "builder" / "modifications" / self ._ucodename / self ._lkv_src ,
497+ dcfg .root / "builder" / "modifications" / self ._ucodename / self .lkv_src ,
498498 self .rmanager .paths [self .codename ],
499499 ("kernelsu-compat.patch" , "qcacld_pa.patch" )
500500 )
@@ -521,7 +521,7 @@ def patch_kernel(self) -> None:
521521
522522 # some patches only for ParanoidAndroid
523523 if self .base == "pa" :
524- if self ._lkv_src == "4.4" :
524+ if self .lkv_src == "4.4" :
525525 self .patch_qcacld ()
526526 self .patch_ioctl ()
527527
@@ -580,7 +580,7 @@ def build(self) -> None:
580580 .format (punits )
581581
582582 # for PA's 4.14, extend the "make" command with additional variables
583- if (self .base , self ._lkv_src ) == ("pa" , "4.14" ):
583+ if (self .base , self .lkv_src ) == ("pa" , "4.14" ):
584584 cmd2 = f"{ cmd2 } LEX=flex YACC=bison"
585585
586586 # launch and time the build process
@@ -600,7 +600,7 @@ def build(self) -> None:
600600 log .info ("Done! Time spent for the build: %02d:%02d:%02d" % (hours , mins , secs ))
601601
602602 @property
603- def _lkv_src (self ) -> str :
603+ def lkv_src (self ) -> str :
604604 """Linux kernel version in kernel source.
605605
606606 :return: Linux kernel version found in sources.
@@ -640,7 +640,7 @@ def create_zip(self) -> None:
640640 )
641641
642642 # define kernel versions: Linux and internal
643- verbase = self ._lkv_src
643+ verbase = self .lkv_src
644644 ver_int = os .getenv ("KVERSION" )
645645
646646 # create the final ZIP file
@@ -677,7 +677,7 @@ def run(self) -> None:
677677 self .write_localversion ()
678678 log .info ("Done! Tools are configured!" )
679679
680- if self .lkv != self ._lkv_src :
680+ if self .lkv != self .lkv_src :
681681 log .error ("Linux kernel version in sources is different what was specified in arguments" )
682682 sys .exit (1 )
683683
0 commit comments