summaryrefslogtreecommitdiffstats
path: root/scripts/lib/recipetool/create_kmod.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/lib/recipetool/create_kmod.py')
-rw-r--r--scripts/lib/recipetool/create_kmod.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/lib/recipetool/create_kmod.py b/scripts/lib/recipetool/create_kmod.py
index fe39edb288..7cf188db21 100644
--- a/scripts/lib/recipetool/create_kmod.py
+++ b/scripts/lib/recipetool/create_kmod.py
@@ -53,7 +53,7 @@ class KernelModuleRecipeHandler(RecipeHandler):
53 break 53 break
54 else: 54 else:
55 continue 55 continue
56 with open(cfile, 'r') as f: 56 with open(cfile, 'r', errors='surrogateescape') as f:
57 for line in f: 57 for line in f:
58 if module_inc_re.match(line.strip()): 58 if module_inc_re.match(line.strip()):
59 is_module = True 59 is_module = True
@@ -73,7 +73,7 @@ class KernelModuleRecipeHandler(RecipeHandler):
73 in_install = False 73 in_install = False
74 in_compile = False 74 in_compile = False
75 install_target = None 75 install_target = None
76 with open(makefile, 'r') as f: 76 with open(makefile, 'r', errors='surrogateescape') as f:
77 for line in f: 77 for line in f:
78 if line.startswith('install:'): 78 if line.startswith('install:'):
79 if not install_lines: 79 if not install_lines: