- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter10/kernel/kernel-config.py
r7cce808 re08ba0a 24 24 if_stack = [] 25 25 26 expand_var_mp = { 'SRCARCH': ' x86' }26 expand_var_mp = { 'SRCARCH': 'arm64' } 27 27 main_dep = {} 28 28 … … 186 186 elif line.startswith('endif'): 187 187 if_stack = if_stack[:-1] 188 189 if config_buf:190 r += [parse_config(config_buf)]191 192 188 return r 193 189 … … 252 248 for i0, val, i1, title, arrow, key, menu, comment in r: 253 249 rem = max_line 254 is_choice = (val == '(X)')255 250 256 251 if val: … … 265 260 title = title[:rem - 3] + '...' 266 261 267 b = title 268 if not is_choice: 269 b = b.lstrip('YyMmNnHh.' + "".join(map(str, range(10)))) 262 b = title.lstrip('YyMmNnHh') 270 263 a = title[:len(title) - len(b)] 271 264 b0 = "<emphasis role='blue'>" + escape(b[0]) + "</emphasis>"
Note:
See TracChangeset
for help on using the changeset viewer.