mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 02:05:57 +01:00
have fun
This commit is contained in:
11
common.py
11
common.py
@@ -28,6 +28,7 @@ import urllib
|
||||
import urllib.request
|
||||
|
||||
from shell_helpers import LF
|
||||
import china_dictatorship
|
||||
import cli_function
|
||||
import path_properties
|
||||
import shell_helpers
|
||||
@@ -227,6 +228,13 @@ Valid archs: {}
|
||||
default=True,
|
||||
help='''\
|
||||
Enable or disable ccache: https://cirosantilli.com/linux-kernel-module-cheat#ccache
|
||||
'''
|
||||
)
|
||||
self.add_argument(
|
||||
'--china',
|
||||
default=False,
|
||||
help='''\
|
||||
To have some fun when the kernel starts to beat you.
|
||||
'''
|
||||
)
|
||||
self.add_argument(
|
||||
@@ -1349,6 +1357,9 @@ lunch aosp_{}-eng
|
||||
return that. Otherwise, return 0.
|
||||
'''
|
||||
env = kwargs.copy()
|
||||
if env['china']:
|
||||
print(china_dictatorship.get_data())
|
||||
sys.exit(0)
|
||||
self.input_args = env.copy()
|
||||
env.update(consts)
|
||||
real_all_archs = env['all_archs']
|
||||
|
||||
Reference in New Issue
Block a user