diff options
Diffstat (limited to 'scripts/lib/bsp')
182 files changed, 0 insertions, 8244 deletions
diff --git a/scripts/lib/bsp/__init__.py b/scripts/lib/bsp/__init__.py deleted file mode 100644 index 8bbb6e1530..0000000000 --- a/scripts/lib/bsp/__init__.py +++ /dev/null | |||
@@ -1,22 +0,0 @@ | |||
1 | # | ||
2 | # Yocto BSP tools library | ||
3 | # | ||
4 | # Copyright (c) 2012, Intel Corporation. | ||
5 | # All rights reserved. | ||
6 | # | ||
7 | # This program is free software; you can redistribute it and/or modify | ||
8 | # it under the terms of the GNU General Public License version 2 as | ||
9 | # published by the Free Software Foundation. | ||
10 | # | ||
11 | # This program is distributed in the hope that it will be useful, | ||
12 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
13 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
14 | # GNU General Public License for more details. | ||
15 | # | ||
16 | # You should have received a copy of the GNU General Public License along | ||
17 | # with this program; if not, write to the Free Software Foundation, Inc., | ||
18 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. | ||
19 | # | ||
20 | # AUTHORS | ||
21 | # Tom Zanussi <tom.zanussi (at] intel.com> | ||
22 | # | ||
diff --git a/scripts/lib/bsp/engine.py b/scripts/lib/bsp/engine.py deleted file mode 100644 index 07a15bb90c..0000000000 --- a/scripts/lib/bsp/engine.py +++ /dev/null | |||
@@ -1,1931 +0,0 @@ | |||
1 | # ex:ts=4:sw=4:sts=4:et | ||
2 | # -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- | ||
3 | # | ||
4 | # Copyright (c) 2012, Intel Corporation. | ||
5 | # All rights reserved. | ||
6 | # | ||
7 | # This program is free software; you can redistribute it and/or modify | ||
8 | # it under the terms of the GNU General Public License version 2 as | ||
9 | # published by the Free Software Foundation. | ||
10 | # | ||
11 | # This program is distributed in the hope that it will be useful, | ||
12 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
13 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
14 | # GNU General Public License for more details. | ||
15 | # | ||
16 | # You should have received a copy of the GNU General Public License along | ||
17 | # with this program; if not, write to the Free Software Foundation, Inc., | ||
18 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. | ||
19 | # | ||
20 | # DESCRIPTION | ||
21 | # This module implements the templating engine used by 'yocto-bsp' to | ||
22 | # create BSPs. The BSP templates are simply the set of files expected | ||
23 | # to appear in a generated BSP, marked up with a small set of tags | ||
24 | # used to customize the output. The engine parses through the | ||
25 | # templates and generates a Python program containing all the logic | ||
26 | # and input elements needed to display and retrieve BSP-specific | ||
27 | # information from the user. The resulting program uses those results | ||
28 | # to generate the final BSP files. | ||
29 | # | ||
30 | # AUTHORS | ||
31 | # Tom Zanussi <tom.zanussi (at] intel.com> | ||
32 | # | ||
33 | |||
34 | import os | ||
35 | import sys | ||
36 | from abc import ABCMeta, abstractmethod | ||
37 | from .tags import * | ||
38 | import shlex | ||
39 | import json | ||
40 | import subprocess | ||
41 | import shutil | ||
42 | |||
43 | class Line(metaclass=ABCMeta): | ||
44 | """ | ||
45 | Generic (abstract) container representing a line that will appear | ||
46 | in the BSP-generating program. | ||
47 | """ | ||
48 | |||
49 | def __init__(self, line): | ||
50 | self.line = line | ||
51 | self.generated_line = "" | ||
52 | self.prio = sys.maxsize | ||
53 | self.discard = False | ||
54 | |||
55 | @abstractmethod | ||
56 | def gen(self, context = None): | ||
57 | """ | ||
58 | Generate the final executable line that will appear in the | ||
59 | BSP-generation program. | ||
60 | """ | ||
61 | pass | ||
62 | |||
63 | def escape(self, line): | ||
64 | """ | ||
65 | Escape single and double quotes and backslashes until I find | ||
66 | something better (re.escape() escapes way too much). | ||
67 | """ | ||
68 | return line.replace("\\", "\\\\").replace("\"", "\\\"").replace("'", "\\'") | ||
69 | |||
70 | def parse_error(self, msg, lineno, line): | ||
71 | raise SyntaxError("%s: %s" % (msg, line)) | ||
72 | |||
73 | |||
74 | class NormalLine(Line): | ||
75 | """ | ||
76 | Container for normal (non-tag) lines. | ||
77 | """ | ||
78 | def __init__(self, line): | ||
79 | Line.__init__(self, line) | ||
80 | self.is_filename = False | ||
81 | self.is_dirname = False | ||
82 | self.out_filebase = None | ||
83 | |||
84 | def gen(self, context = None): | ||
85 | if self.is_filename: | ||
86 | line = "current_file = \"" + os.path.join(self.out_filebase, self.escape(self.line)) + "\"; of = open(current_file, \"w\")" | ||
87 | elif self.is_dirname: | ||
88 | dirname = os.path.join(self.out_filebase, self.escape(self.line)) | ||
89 | line = "if not os.path.exists(\"" + dirname + "\"): os.mkdir(\"" + dirname + "\")" | ||
90 | else: | ||
91 | line = "of.write(\"" + self.escape(self.line) + "\\n\")" | ||
92 | return line | ||
93 | |||
94 | |||
95 | class CodeLine(Line): | ||
96 | """ | ||
97 | Container for Python code tag lines. | ||
98 | """ | ||
99 | def __init__(self, line): | ||
100 | Line.__init__(self, line) | ||
101 | |||
102 | def gen(self, context = None): | ||
103 | return self.line | ||
104 | |||
105 | |||
106 | class Assignment: | ||
107 | """ | ||
108 | Representation of everything we know about {{=name }} tags. | ||
109 | Instances of these are used by Assignment lines. | ||
110 | """ | ||
111 | def __init__(self, start, end, name): | ||
112 | self.start = start | ||
113 | self.end = end | ||
114 | self.name = name | ||
115 | |||
116 | |||
117 | class AssignmentLine(NormalLine): | ||
118 | """ | ||
119 | Container for normal lines containing assignment tags. Assignment | ||
120 | tags must be in ascending order of 'start' value. | ||
121 | """ | ||
122 | def __init__(self, line): | ||
123 | NormalLine.__init__(self, line) | ||
124 | self.assignments = [] | ||
125 | |||
126 | def add_assignment(self, start, end, name): | ||
127 | self.assignments.append(Assignment(start, end, name)) | ||
128 | |||
129 | def gen(self, context = None): | ||
130 | line = self.escape(self.line) | ||
131 | |||
132 | for assignment in self.assignments: | ||
133 | replacement = "\" + " + assignment.name + " + \"" | ||
134 | idx = line.find(ASSIGN_TAG) | ||
135 | line = line[:idx] + replacement + line[idx + assignment.end - assignment.start:] | ||
136 | if self.is_filename: | ||
137 | return "current_file = \"" + os.path.join(self.out_filebase, line) + "\"; of = open(current_file, \"w\")" | ||
138 | elif self.is_dirname: | ||
139 | dirname = os.path.join(self.out_filebase, line) | ||
140 | return "if not os.path.exists(\"" + dirname + "\"): os.mkdir(\"" + dirname + "\")" | ||
141 | else: | ||
142 | return "of.write(\"" + line + "\\n\")" | ||
143 | |||
144 | |||
145 | class InputLine(Line): | ||
146 | """ | ||
147 | Base class for Input lines. | ||
148 | """ | ||
149 | def __init__(self, props, tag, lineno): | ||
150 | Line.__init__(self, tag) | ||
151 | self.props = props | ||
152 | self.lineno = lineno | ||
153 | |||
154 | try: | ||
155 | self.prio = int(props["prio"]) | ||
156 | except KeyError: | ||
157 | self.prio = sys.maxsize | ||
158 | |||
159 | def gen(self, context = None): | ||
160 | try: | ||
161 | depends_on = self.props["depends-on"] | ||
162 | try: | ||
163 | depends_on_val = self.props["depends-on-val"] | ||
164 | except KeyError: | ||
165 | self.parse_error("No 'depends-on-val' for 'depends-on' property", | ||
166 | self.lineno, self.line) | ||
167 | except KeyError: | ||
168 | pass | ||
169 | |||
170 | |||
171 | class EditBoxInputLine(InputLine): | ||
172 | """ | ||
173 | Base class for 'editbox' Input lines. | ||
174 | |||
175 | props: | ||
176 | name: example - "Load address" | ||
177 | msg: example - "Please enter the load address" | ||
178 | result: | ||
179 | Sets the value of the variable specified by 'name' to | ||
180 | whatever the user typed. | ||
181 | """ | ||
182 | def __init__(self, props, tag, lineno): | ||
183 | InputLine.__init__(self, props, tag, lineno) | ||
184 | |||
185 | def gen(self, context = None): | ||
186 | InputLine.gen(self, context) | ||
187 | name = self.props["name"] | ||
188 | if not name: | ||
189 | self.parse_error("No input 'name' property found", | ||
190 | self.lineno, self.line) | ||
191 | msg = self.props["msg"] | ||
192 | if not msg: | ||
193 | self.parse_error("No input 'msg' property found", | ||
194 | self.lineno, self.line) | ||
195 | |||
196 | try: | ||
197 | default_choice = self.props["default"] | ||
198 | except KeyError: | ||
199 | default_choice = "" | ||
200 | |||
201 | msg += " [default: " + default_choice + "]" | ||
202 | |||
203 | line = name + " = default(input(\"" + msg + " \"), " + name + ")" | ||
204 | |||
205 | return line | ||
206 | |||
207 | |||
208 | class GitRepoEditBoxInputLine(EditBoxInputLine): | ||
209 | """ | ||
210 | Base class for 'editbox' Input lines for user input of remote git | ||
211 | repos. This class verifies the existence and connectivity of the | ||
212 | specified git repo. | ||
213 | |||
214 | props: | ||
215 | name: example - "Load address" | ||
216 | msg: example - "Please enter the load address" | ||
217 | result: | ||
218 | Sets the value of the variable specified by 'name' to | ||
219 | whatever the user typed. | ||
220 | """ | ||
221 | def __init__(self, props, tag, lineno): | ||
222 | EditBoxInputLine.__init__(self, props, tag, lineno) | ||
223 | |||
224 | def gen(self, context = None): | ||
225 | EditBoxInputLine.gen(self, context) | ||
226 | name = self.props["name"] | ||
227 | if not name: | ||
228 | self.parse_error("No input 'name' property found", | ||
229 | self.lineno, self.line) | ||
230 | msg = self.props["msg"] | ||
231 | if not msg: | ||
232 | self.parse_error("No input 'msg' property found", | ||
233 | self.lineno, self.line) | ||
234 | |||
235 | try: | ||
236 | default_choice = self.props["default"] | ||
237 | except KeyError: | ||
238 | default_choice = "" | ||
239 | |||
240 | msg += " [default: " + default_choice + "]" | ||
241 | |||
242 | line = name + " = get_verified_git_repo(\"" + msg + "\"," + name + ")" | ||
243 | |||
244 | return line | ||
245 | |||
246 | |||
247 | class FileEditBoxInputLine(EditBoxInputLine): | ||
248 | """ | ||
249 | Base class for 'editbox' Input lines for user input of existing | ||
250 | files. This class verifies the existence of the specified file. | ||
251 | |||
252 | props: | ||
253 | name: example - "Load address" | ||
254 | msg: example - "Please enter the load address" | ||
255 | result: | ||
256 | Sets the value of the variable specified by 'name' to | ||
257 | whatever the user typed. | ||
258 | """ | ||
259 | def __init__(self, props, tag, lineno): | ||
260 | EditBoxInputLine.__init__(self, props, tag, lineno) | ||
261 | |||
262 | def gen(self, context = None): | ||
263 | EditBoxInputLine.gen(self, context) | ||
264 | name = self.props["name"] | ||
265 | if not name: | ||
266 | self.parse_error("No input 'name' property found", | ||
267 | self.lineno, self.line) | ||
268 | msg = self.props["msg"] | ||
269 | if not msg: | ||
270 | self.parse_error("No input 'msg' property found", | ||
271 | self.lineno, self.line) | ||
272 | |||
273 | try: | ||
274 | default_choice = self.props["default"] | ||
275 | except KeyError: | ||
276 | default_choice = "" | ||
277 | |||
278 | msg += " [default: " + default_choice + "]" | ||
279 | |||
280 | line = name + " = get_verified_file(\"" + msg + "\"," + name + ", True)" | ||
281 | |||
282 | return line | ||
283 | |||
284 | |||
285 | class BooleanInputLine(InputLine): | ||
286 | """ | ||
287 | Base class for boolean Input lines. | ||
288 | props: | ||
289 | name: example - "keyboard" | ||
290 | msg: example - "Got keyboard?" | ||
291 | result: | ||
292 | Sets the value of the variable specified by 'name' to "yes" or "no" | ||
293 | example - keyboard = "yes" | ||
294 | """ | ||
295 | def __init__(self, props, tag, lineno): | ||
296 | InputLine.__init__(self, props, tag, lineno) | ||
297 | |||
298 | def gen(self, context = None): | ||
299 | InputLine.gen(self, context) | ||
300 | name = self.props["name"] | ||
301 | if not name: | ||
302 | self.parse_error("No input 'name' property found", | ||
303 | self.lineno, self.line) | ||
304 | msg = self.props["msg"] | ||
305 | if not msg: | ||
306 | self.parse_error("No input 'msg' property found", | ||
307 | self.lineno, self.line) | ||
308 | |||
309 | try: | ||
310 | default_choice = self.props["default"] | ||
311 | except KeyError: | ||
312 | default_choice = "" | ||
313 | |||
314 | msg += " [default: " + default_choice + "]" | ||
315 | |||
316 | line = name + " = boolean(input(\"" + msg + " \"), " + name + ")" | ||
317 | |||
318 | return line | ||
319 | |||
320 | |||
321 | class ListInputLine(InputLine, metaclass=ABCMeta): | ||
322 | """ | ||
323 | Base class for List-based Input lines. e.g. Choicelist, Checklist. | ||
324 | """ | ||
325 | |||
326 | def __init__(self, props, tag, lineno): | ||
327 | InputLine.__init__(self, props, tag, lineno) | ||
328 | self.choices = [] | ||
329 | |||
330 | def gen_choicepair_list(self): | ||
331 | """Generate a list of 2-item val:desc lists from self.choices.""" | ||
332 | if not self.choices: | ||
333 | return None | ||
334 | |||
335 | choicepair_list = list() | ||
336 | |||
337 | for choice in self.choices: | ||
338 | choicepair = [] | ||
339 | choicepair.append(choice.val) | ||
340 | choicepair.append(choice.desc) | ||
341 | choicepair_list.append(choicepair) | ||
342 | |||
343 | return choicepair_list | ||
344 | |||
345 | def gen_degenerate_choicepair_list(self, choices): | ||
346 | """Generate a list of 2-item val:desc with val=desc from passed-in choices.""" | ||
347 | choicepair_list = list() | ||
348 | |||
349 | for choice in choices: | ||
350 | choicepair = [] | ||
351 | choicepair.append(choice) | ||
352 | choicepair.append(choice) | ||
353 | choicepair_list.append(choicepair) | ||
354 | |||
355 | return choicepair_list | ||
356 | |||
357 | def exec_listgen_fn(self, context = None): | ||
358 | """ | ||
359 | Execute the list-generating function contained as a string in | ||
360 | the "gen" property. | ||
361 | """ | ||
362 | retval = None | ||
363 | try: | ||
364 | fname = self.props["gen"] | ||
365 | modsplit = fname.split('.') | ||
366 | mod_fn = modsplit.pop() | ||
367 | mod = '.'.join(modsplit) | ||
368 | |||
369 | __import__(mod) | ||
370 | # python 2.7 has a better way to do this using importlib.import_module | ||
371 | m = sys.modules[mod] | ||
372 | |||
373 | fn = getattr(m, mod_fn) | ||
374 | if not fn: | ||
375 | self.parse_error("couldn't load function specified for 'gen' property ", | ||
376 | self.lineno, self.line) | ||
377 | retval = fn(context) | ||
378 | if not retval: | ||
379 | self.parse_error("function specified for 'gen' property returned nothing ", | ||
380 | self.lineno, self.line) | ||
381 | except KeyError: | ||
382 | pass | ||
383 | |||
384 | return retval | ||
385 | |||
386 | def gen_choices_str(self, choicepairs): | ||
387 | """ | ||
388 | Generate a numbered list of choices from a list of choicepairs | ||
389 | for display to the user. | ||
390 | """ | ||
391 | choices_str = "" | ||
392 | |||
393 | for i, choicepair in enumerate(choicepairs): | ||
394 | choices_str += "\t" + str(i + 1) + ") " + choicepair[1] + "\n" | ||
395 | |||
396 | return choices_str | ||
397 | |||
398 | def gen_choices_val_str(self, choicepairs): | ||
399 | """ | ||
400 | Generate an array of choice values corresponding to the | ||
401 | numbered list generated by gen_choices_str(). | ||
402 | """ | ||
403 | choices_val_list = "[" | ||
404 | |||
405 | for i, choicepair in enumerate(choicepairs): | ||
406 | choices_val_list += "\"" + choicepair[0] + "\"," | ||
407 | choices_val_list += "]" | ||
408 | |||
409 | return choices_val_list | ||
410 | |||
411 | def gen_choices_val_list(self, choicepairs): | ||
412 | """ | ||
413 | Generate an array of choice values corresponding to the | ||
414 | numbered list generated by gen_choices_str(). | ||
415 | """ | ||
416 | choices_val_list = [] | ||
417 | |||
418 | for i, choicepair in enumerate(choicepairs): | ||
419 | choices_val_list.append(choicepair[0]) | ||
420 | |||
421 | return choices_val_list | ||
422 | |||
423 | def gen_choices_list(self, context = None, checklist = False): | ||
424 | """ | ||
425 | Generate an array of choice values corresponding to the | ||
426 | numbered list generated by gen_choices_str(). | ||
427 | """ | ||
428 | choices = self.exec_listgen_fn(context) | ||
429 | if choices: | ||
430 | if len(choices) == 0: | ||
431 | self.parse_error("No entries available for input list", | ||
432 | self.lineno, self.line) | ||
433 | choicepairs = self.gen_degenerate_choicepair_list(choices) | ||
434 | else: | ||
435 | if len(self.choices) == 0: | ||
436 | self.parse_error("No entries available for input list", | ||
437 | self.lineno, self.line) | ||
438 | choicepairs = self.gen_choicepair_list() | ||
439 | |||
440 | return choicepairs | ||
441 | |||
442 | def gen_choices(self, context = None, checklist = False): | ||
443 | """ | ||
444 | Generate an array of choice values corresponding to the | ||
445 | numbered list generated by gen_choices_str(), display it to | ||
446 | the user, and process the result. | ||
447 | """ | ||
448 | msg = self.props["msg"] | ||
449 | if not msg: | ||
450 | self.parse_error("No input 'msg' property found", | ||
451 | self.lineno, self.line) | ||
452 | |||
453 | try: | ||
454 | default_choice = self.props["default"] | ||
455 | except KeyError: | ||
456 | default_choice = "" | ||
457 | |||
458 | msg += " [default: " + default_choice + "]" | ||
459 | |||
460 | choicepairs = self.gen_choices_list(context, checklist) | ||
461 | |||
462 | choices_str = self.gen_choices_str(choicepairs) | ||
463 | choices_val_list = self.gen_choices_val_list(choicepairs) | ||
464 | if checklist: | ||
465 | choiceval = default(find_choicevals(input(msg + "\n" + choices_str), choices_val_list), default_choice) | ||
466 | else: | ||
467 | choiceval = default(find_choiceval(input(msg + "\n" + choices_str), choices_val_list), default_choice) | ||
468 | |||
469 | return choiceval | ||
470 | |||
471 | |||
472 | def find_choiceval(choice_str, choice_list): | ||
473 | """ | ||
474 | Take number as string and return val string from choice_list, | ||
475 | empty string if oob. choice_list is a simple python list. | ||
476 | """ | ||
477 | choice_val = "" | ||
478 | |||
479 | try: | ||
480 | choice_idx = int(choice_str) | ||
481 | if choice_idx <= len(choice_list): | ||
482 | choice_idx -= 1 | ||
483 | choice_val = choice_list[choice_idx] | ||
484 | except ValueError: | ||
485 | pass | ||
486 | |||
487 | return choice_val | ||
488 | |||
489 | |||
490 | def find_choicevals(choice_str, choice_list): | ||
491 | """ | ||
492 | Take numbers as space-separated string and return vals list from | ||
493 | choice_list, empty list if oob. choice_list is a simple python | ||
494 | list. | ||
495 | """ | ||
496 | choice_vals = [] | ||
497 | |||
498 | choices = choice_str.split() | ||
499 | for choice in choices: | ||
500 | choice_vals.append(find_choiceval(choice, choice_list)) | ||
501 | |||
502 | return choice_vals | ||
503 | |||
504 | |||
505 | def default(input_str, name): | ||
506 | """ | ||
507 | Return default if no input_str, otherwise stripped input_str. | ||
508 | """ | ||
509 | if not input_str: | ||
510 | return name | ||
511 | |||
512 | return input_str.strip() | ||
513 | |||
514 | |||
515 | def verify_git_repo(giturl): | ||
516 | """ | ||
517 | Verify that the giturl passed in can be connected to. This can be | ||
518 | used as a check for the existence of the given repo and/or basic | ||
519 | git remote connectivity. | ||
520 | |||
521 | Returns True if the connection was successful, fals otherwise | ||
522 | """ | ||
523 | if not giturl: | ||
524 | return False | ||
525 | |||
526 | gitcmd = "git ls-remote %s > /dev/null 2>&1" % (giturl) | ||
527 | rc = subprocess.call(gitcmd, shell=True) | ||
528 | if rc == 0: | ||
529 | return True | ||
530 | |||
531 | return False | ||
532 | |||
533 | |||
534 | def get_verified_git_repo(input_str, name): | ||
535 | """ | ||
536 | Return git repo if verified, otherwise loop forever asking user | ||
537 | for filename. | ||
538 | """ | ||
539 | msg = input_str.strip() + " " | ||
540 | |||
541 | giturl = default(input(msg), name) | ||
542 | |||
543 | while True: | ||
544 | if verify_git_repo(giturl): | ||
545 | return giturl | ||
546 | giturl = default(input(msg), name) | ||
547 | |||
548 | |||
549 | def get_verified_file(input_str, name, filename_can_be_null): | ||
550 | """ | ||
551 | Return filename if the file exists, otherwise loop forever asking | ||
552 | user for filename. | ||
553 | """ | ||
554 | msg = input_str.strip() + " " | ||
555 | |||
556 | filename = default(input(msg), name) | ||
557 | |||
558 | while True: | ||
559 | if not filename and filename_can_be_null: | ||
560 | return filename | ||
561 | if os.path.isfile(filename): | ||
562 | return filename | ||
563 | filename = default(input(msg), name) | ||
564 | |||
565 | |||
566 | def replace_file(replace_this, with_this): | ||
567 | """ | ||
568 | Replace the given file with the contents of filename, retaining | ||
569 | the original filename. | ||
570 | """ | ||
571 | try: | ||
572 | replace_this.close() | ||
573 | shutil.copy(with_this, replace_this.name) | ||
574 | except IOError: | ||
575 | pass | ||
576 | |||
577 | |||
578 | def boolean(input_str, name): | ||
579 | """ | ||
580 | Return lowercase version of first char in string, or value in name. | ||
581 | """ | ||
582 | if not input_str: | ||
583 | return name | ||
584 | |||
585 | str = input_str.lower().strip() | ||
586 | if str and str[0] == "y" or str[0] == "n": | ||
587 | return str[0] | ||
588 | else: | ||
589 | return name | ||
590 | |||
591 | |||
592 | def strip_base(input_str): | ||
593 | """ | ||
594 | strip '/base' off the end of input_str, so we can use 'base' in | ||
595 | the branch names we present to the user. | ||
596 | """ | ||
597 | if input_str and input_str.endswith("/base"): | ||
598 | return input_str[:-len("/base")] | ||
599 | return input_str.strip() | ||
600 | |||
601 | |||
602 | deferred_choices = {} | ||
603 | |||
604 | def gen_choices_defer(input_line, context, checklist = False): | ||
605 | """ | ||
606 | Save the context hashed the name of the input item, which will be | ||
607 | passed to the gen function later. | ||
608 | """ | ||
609 | name = input_line.props["name"] | ||
610 | |||
611 | try: | ||
612 | nameappend = input_line.props["nameappend"] | ||
613 | except KeyError: | ||
614 | nameappend = "" | ||
615 | |||
616 | try: | ||
617 | branches_base = input_line.props["branches_base"] | ||
618 | except KeyError: | ||
619 | branches_base = "" | ||
620 | |||
621 | filename = input_line.props["filename"] | ||
622 | |||
623 | closetag_start = filename.find(CLOSE_TAG) | ||
624 | |||
625 | if closetag_start != -1: | ||
626 | filename = filename[closetag_start + len(CLOSE_TAG):] | ||
627 | |||
628 | filename = filename.strip() | ||
629 | filename = os.path.splitext(filename)[0] | ||
630 | |||
631 | captured_context = capture_context(context) | ||
632 | context["filename"] = filename | ||
633 | captured_context["filename"] = filename | ||
634 | context["nameappend"] = nameappend | ||
635 | captured_context["nameappend"] = nameappend | ||
636 | context["branches_base"] = branches_base | ||
637 | captured_context["branches_base"] = branches_base | ||
638 | |||
639 | deferred_choice = (input_line, captured_context, checklist) | ||
640 | key = name + "_" + filename + "_" + nameappend | ||
641 | deferred_choices[key] = deferred_choice | ||
642 | |||
643 | |||
644 | def invoke_deferred_choices(name): | ||
645 | """ | ||
646 | Invoke the choice generation function using the context hashed by | ||
647 | 'name'. | ||
648 | """ | ||
649 | deferred_choice = deferred_choices[name] | ||
650 | input_line = deferred_choice[0] | ||
651 | context = deferred_choice[1] | ||
652 | checklist = deferred_choice[2] | ||
653 | |||
654 | context["name"] = name | ||
655 | |||
656 | choices = input_line.gen_choices(context, checklist) | ||
657 | |||
658 | return choices | ||
659 | |||
660 | |||
661 | class ChoicelistInputLine(ListInputLine): | ||
662 | """ | ||
663 | Base class for choicelist Input lines. | ||
664 | props: | ||
665 | name: example - "xserver_choice" | ||
666 | msg: example - "Please select an xserver for this machine" | ||
667 | result: | ||
668 | Sets the value of the variable specified by 'name' to whichever Choice was chosen | ||
669 | example - xserver_choice = "xserver_vesa" | ||
670 | """ | ||
671 | def __init__(self, props, tag, lineno): | ||
672 | ListInputLine.__init__(self, props, tag, lineno) | ||
673 | |||
674 | def gen(self, context = None): | ||
675 | InputLine.gen(self, context) | ||
676 | |||
677 | gen_choices_defer(self, context) | ||
678 | name = self.props["name"] | ||
679 | nameappend = context["nameappend"] | ||
680 | filename = context["filename"] | ||
681 | |||
682 | try: | ||
683 | default_choice = self.props["default"] | ||
684 | except KeyError: | ||
685 | default_choice = "" | ||
686 | |||
687 | line = name + " = default(invoke_deferred_choices(\"" + name + "_" + filename + "_" + nameappend + "\"), \"" + default_choice + "\")" | ||
688 | |||
689 | return line | ||
690 | |||
691 | |||
692 | class ListValInputLine(InputLine): | ||
693 | """ | ||
694 | Abstract base class for choice and checkbox Input lines. | ||
695 | """ | ||
696 | def __init__(self, props, tag, lineno): | ||
697 | InputLine.__init__(self, props, tag, lineno) | ||
698 | |||
699 | try: | ||
700 | self.val = self.props["val"] | ||
701 | except KeyError: | ||
702 | self.parse_error("No input 'val' property found", self.lineno, self.line) | ||
703 | |||
704 | try: | ||
705 | self.desc = self.props["msg"] | ||
706 | except KeyError: | ||
707 | self.parse_error("No input 'msg' property found", self.lineno, self.line) | ||
708 | |||
709 | |||
710 | class ChoiceInputLine(ListValInputLine): | ||
711 | """ | ||
712 | Base class for choicelist item Input lines. | ||
713 | """ | ||
714 | def __init__(self, props, tag, lineno): | ||
715 | ListValInputLine.__init__(self, props, tag, lineno) | ||
716 | |||
717 | def gen(self, context = None): | ||
718 | return None | ||
719 | |||
720 | |||
721 | class ChecklistInputLine(ListInputLine): | ||
722 | """ | ||
723 | Base class for checklist Input lines. | ||
724 | """ | ||
725 | def __init__(self, props, tag, lineno): | ||
726 | ListInputLine.__init__(self, props, tag, lineno) | ||
727 | |||
728 | def gen(self, context = None): | ||
729 | InputLine.gen(self, context) | ||
730 | |||
731 | gen_choices_defer(self, context, True) | ||
732 | name = self.props["name"] | ||
733 | nameappend = context["nameappend"] | ||
734 | filename = context["filename"] | ||
735 | |||
736 | try: | ||
737 | default_choice = self.props["default"] | ||
738 | except KeyError: | ||
739 | default_choice = "" | ||
740 | |||
741 | line = name + " = default(invoke_deferred_choices(\"" + name + "_" + filename + "_" + nameappend + "\"), \"" + default_choice + "\")" | ||
742 | |||
743 | return line | ||
744 | |||
745 | |||
746 | class CheckInputLine(ListValInputLine): | ||
747 | """ | ||
748 | Base class for checklist item Input lines. | ||
749 | """ | ||
750 | def __init__(self, props, tag, lineno): | ||
751 | ListValInputLine.__init__(self, props, tag, lineno) | ||
752 | |||
753 | def gen(self, context = None): | ||
754 | return None | ||
755 | |||
756 | |||
757 | dirname_substitutions = {} | ||
758 | |||
759 | class SubstrateBase(object): | ||
760 | """ | ||
761 | Base class for both expanded and unexpanded file and dir container | ||
762 | objects. | ||
763 | """ | ||
764 | def __init__(self, filename, filebase, out_filebase): | ||
765 | self.filename = filename | ||
766 | self.filebase = filebase | ||
767 | self.translated_filename = filename | ||
768 | self.out_filebase = out_filebase | ||
769 | self.raw_lines = [] | ||
770 | self.expanded_lines = [] | ||
771 | self.prev_choicelist = None | ||
772 | |||
773 | def parse_error(self, msg, lineno, line): | ||
774 | raise SyntaxError("%s: [%s: %d]: %s" % (msg, self.filename, lineno, line)) | ||
775 | |||
776 | def expand_input_tag(self, tag, lineno): | ||
777 | """ | ||
778 | Input tags consist of the word 'input' at the beginning, | ||
779 | followed by name:value property pairs which are converted into | ||
780 | a dictionary. | ||
781 | """ | ||
782 | propstr = tag[len(INPUT_TAG):] | ||
783 | |||
784 | props = dict(prop.split(":", 1) for prop in shlex.split(propstr)) | ||
785 | props["filename"] = self.filename | ||
786 | |||
787 | input_type = props[INPUT_TYPE_PROPERTY] | ||
788 | if not props[INPUT_TYPE_PROPERTY]: | ||
789 | self.parse_error("No input 'type' property found", lineno, tag) | ||
790 | |||
791 | if input_type == "boolean": | ||
792 | return BooleanInputLine(props, tag, lineno) | ||
793 | if input_type == "edit": | ||
794 | return EditBoxInputLine(props, tag, lineno) | ||
795 | if input_type == "edit-git-repo": | ||
796 | return GitRepoEditBoxInputLine(props, tag, lineno) | ||
797 | if input_type == "edit-file": | ||
798 | return FileEditBoxInputLine(props, tag, lineno) | ||
799 | elif input_type == "choicelist": | ||
800 | self.prev_choicelist = ChoicelistInputLine(props, tag, lineno) | ||
801 | return self.prev_choicelist | ||
802 | elif input_type == "choice": | ||
803 | if not self.prev_choicelist: | ||
804 | self.parse_error("Found 'choice' input tag but no previous choicelist", | ||
805 | lineno, tag) | ||
806 | choice = ChoiceInputLine(props, tag, lineno) | ||
807 | self.prev_choicelist.choices.append(choice) | ||
808 | return choice | ||
809 | elif input_type == "checklist": | ||
810 | return ChecklistInputLine(props, tag, lineno) | ||
811 | elif input_type == "check": | ||
812 | return CheckInputLine(props, tag, lineno) | ||
813 | |||
814 | def expand_assignment_tag(self, start, line, lineno): | ||
815 | """ | ||
816 | Expand all tags in a line. | ||
817 | """ | ||
818 | expanded_line = AssignmentLine(line.rstrip()) | ||
819 | |||
820 | while start != -1: | ||
821 | end = line.find(CLOSE_TAG, start) | ||
822 | if end == -1: | ||
823 | self.parse_error("No close tag found for assignment tag", lineno, line) | ||
824 | else: | ||
825 | name = line[start + len(ASSIGN_TAG):end].strip() | ||
826 | expanded_line.add_assignment(start, end + len(CLOSE_TAG), name) | ||
827 | start = line.find(ASSIGN_TAG, end) | ||
828 | |||
829 | return expanded_line | ||
830 | |||
831 | def expand_tag(self, line, lineno): | ||
832 | """ | ||
833 | Returns a processed tag line, or None if there was no tag | ||
834 | |||
835 | The rules for tags are very simple: | ||
836 | - No nested tags | ||
837 | - Tags start with {{ and end with }} | ||
838 | - An assign tag, {{=, can appear anywhere and will | ||
839 | be replaced with what the assignment evaluates to | ||
840 | - Any other tag occupies the whole line it is on | ||
841 | - if there's anything else on the tag line, it's an error | ||
842 | - if it starts with 'input', it's an input tag and | ||
843 | will only be used for prompting and setting variables | ||
844 | - anything else is straight Python | ||
845 | - tags are in effect only until the next blank line or tag or 'pass' tag | ||
846 | - we don't have indentation in tags, but we need some way to end a block | ||
847 | forcefully without blank lines or other tags - that's the 'pass' tag | ||
848 | - todo: implement pass tag | ||
849 | - directories and filenames can have tags as well, but only assignment | ||
850 | and 'if' code lines | ||
851 | - directories and filenames are the only case where normal tags can | ||
852 | coexist with normal text on the same 'line' | ||
853 | """ | ||
854 | start = line.find(ASSIGN_TAG) | ||
855 | if start != -1: | ||
856 | return self.expand_assignment_tag(start, line, lineno) | ||
857 | |||
858 | start = line.find(OPEN_TAG) | ||
859 | if start == -1: | ||
860 | return None | ||
861 | |||
862 | end = line.find(CLOSE_TAG, 0) | ||
863 | if end == -1: | ||
864 | self.parse_error("No close tag found for open tag", lineno, line) | ||
865 | |||
866 | tag = line[start + len(OPEN_TAG):end].strip() | ||
867 | |||
868 | if not tag.lstrip().startswith(INPUT_TAG): | ||
869 | return CodeLine(tag) | ||
870 | |||
871 | return self.expand_input_tag(tag, lineno) | ||
872 | |||
873 | def append_translated_filename(self, filename): | ||
874 | """ | ||
875 | Simply append filename to translated_filename | ||
876 | """ | ||
877 | self.translated_filename = os.path.join(self.translated_filename, filename) | ||
878 | |||
879 | def get_substituted_file_or_dir_name(self, first_line, tag): | ||
880 | """ | ||
881 | If file or dir names contain name substitutions, return the name | ||
882 | to substitute. Note that this is just the file or dirname and | ||
883 | doesn't include the path. | ||
884 | """ | ||
885 | filename = first_line.find(tag) | ||
886 | if filename != -1: | ||
887 | filename += len(tag) | ||
888 | substituted_filename = first_line[filename:].strip() | ||
889 | this = substituted_filename.find(" this") | ||
890 | if this != -1: | ||
891 | head, tail = os.path.split(self.filename) | ||
892 | substituted_filename = substituted_filename[:this + 1] + tail | ||
893 | if tag == DIRNAME_TAG: # get rid of .noinstall in dirname | ||
894 | substituted_filename = substituted_filename.split('.')[0] | ||
895 | |||
896 | return substituted_filename | ||
897 | |||
898 | def get_substituted_filename(self, first_line): | ||
899 | """ | ||
900 | If a filename contains a name substitution, return the name to | ||
901 | substitute. Note that this is just the filename and doesn't | ||
902 | include the path. | ||
903 | """ | ||
904 | return self.get_substituted_file_or_dir_name(first_line, FILENAME_TAG) | ||
905 | |||
906 | def get_substituted_dirname(self, first_line): | ||
907 | """ | ||
908 | If a dirname contains a name substitution, return the name to | ||
909 | substitute. Note that this is just the dirname and doesn't | ||
910 | include the path. | ||
911 | """ | ||
912 | return self.get_substituted_file_or_dir_name(first_line, DIRNAME_TAG) | ||
913 | |||
914 | def substitute_filename(self, first_line): | ||
915 | """ | ||
916 | Find the filename in first_line and append it to translated_filename. | ||
917 | """ | ||
918 | substituted_filename = self.get_substituted_filename(first_line) | ||
919 | self.append_translated_filename(substituted_filename); | ||
920 | |||
921 | def substitute_dirname(self, first_line): | ||
922 | """ | ||
923 | Find the dirname in first_line and append it to translated_filename. | ||
924 | """ | ||
925 | substituted_dirname = self.get_substituted_dirname(first_line) | ||
926 | self.append_translated_filename(substituted_dirname); | ||
927 | |||
928 | def is_filename_substitution(self, line): | ||
929 | """ | ||
930 | Do we have a filename subustition? | ||
931 | """ | ||
932 | if line.find(FILENAME_TAG) != -1: | ||
933 | return True | ||
934 | return False | ||
935 | |||
936 | def is_dirname_substitution(self, line): | ||
937 | """ | ||
938 | Do we have a dirname subustition? | ||
939 | """ | ||
940 | if line.find(DIRNAME_TAG) != -1: | ||
941 | return True | ||
942 | return False | ||
943 | |||
944 | def translate_dirname(self, first_line): | ||
945 | """ | ||
946 | Just save the first_line mapped by filename. The later pass | ||
947 | through the directories will look for a dirname.noinstall | ||
948 | match and grab the substitution line. | ||
949 | """ | ||
950 | dirname_substitutions[self.filename] = first_line | ||
951 | |||
952 | def translate_dirnames_in_path(self, path): | ||
953 | """ | ||
954 | Translate dirnames below this file or dir, not including tail. | ||
955 | dirname_substititions is keyed on actual untranslated filenames. | ||
956 | translated_path contains the subsititutions for each element. | ||
957 | """ | ||
958 | remainder = path[len(self.filebase)+1:] | ||
959 | translated_path = untranslated_path = self.filebase | ||
960 | |||
961 | untranslated_dirs = remainder.split(os.sep) | ||
962 | |||
963 | for dir in untranslated_dirs: | ||
964 | key = os.path.join(untranslated_path, dir + '.noinstall') | ||
965 | try: | ||
966 | first_line = dirname_substitutions[key] | ||
967 | except KeyError: | ||
968 | translated_path = os.path.join(translated_path, dir) | ||
969 | untranslated_path = os.path.join(untranslated_path, dir) | ||
970 | continue | ||
971 | substituted_dir = self.get_substituted_dirname(first_line) | ||
972 | translated_path = os.path.join(translated_path, substituted_dir) | ||
973 | untranslated_path = os.path.join(untranslated_path, dir) | ||
974 | |||
975 | return translated_path | ||
976 | |||
977 | def translate_file_or_dir_name(self): | ||
978 | """ | ||
979 | Originally we were allowed to use open/close/assign tags and python | ||
980 | code in the filename, which fit in nicely with the way we | ||
981 | processed the templates and generated code. Now that we can't | ||
982 | do that, we make those tags proper file contents and have this | ||
983 | pass substitute the nice but non-functional names with those | ||
984 | 'strange' ones, and then proceed as usual. | ||
985 | |||
986 | So, if files or matching dir<.noinstall> files contain | ||
987 | filename substitutions, this function translates them into the | ||
988 | corresponding 'strange' names, which future passes will expand | ||
989 | as they always have. The resulting pathname is kept in the | ||
990 | file or directory's translated_filename. Another way to think | ||
991 | about it is that self.filename is the input filename, and | ||
992 | translated_filename is the output filename before expansion. | ||
993 | """ | ||
994 | # remove leaf file or dirname | ||
995 | head, tail = os.path.split(self.filename) | ||
996 | translated_path = self.translate_dirnames_in_path(head) | ||
997 | self.translated_filename = translated_path | ||
998 | |||
999 | # This is a dirname - does it have a matching .noinstall with | ||
1000 | # a substitution? If so, apply the dirname subsititution. | ||
1001 | if not os.path.isfile(self.filename): | ||
1002 | key = self.filename + ".noinstall" | ||
1003 | try: | ||
1004 | first_line = dirname_substitutions[key] | ||
1005 | except KeyError: | ||
1006 | self.append_translated_filename(tail) | ||
1007 | return | ||
1008 | self.substitute_dirname(first_line) | ||
1009 | return | ||
1010 | |||
1011 | f = open(self.filename) | ||
1012 | first_line = f.readline() | ||
1013 | f.close() | ||
1014 | |||
1015 | # This is a normal filename not needing translation, just use | ||
1016 | # it as-is. | ||
1017 | if not first_line or not first_line.startswith("#"): | ||
1018 | self.append_translated_filename(tail) | ||
1019 | return | ||
1020 | |||
1021 | # If we have a filename substitution (first line in the file | ||
1022 | # is a FILENAME_TAG line) do the substitution now. If we have | ||
1023 | # a dirname substitution (DIRNAME_TAG in dirname.noinstall | ||
1024 | # meta-file), hash it so we can apply it when we see the | ||
1025 | # matching dirname later. Otherwise we have a regular | ||
1026 | # filename, just use it as-is. | ||
1027 | if self.is_filename_substitution(first_line): | ||
1028 | self.substitute_filename(first_line) | ||
1029 | elif self.is_dirname_substitution(first_line): | ||
1030 | self.translate_dirname(first_line) | ||
1031 | else: | ||
1032 | self.append_translated_filename(tail) | ||
1033 | |||
1034 | def expand_file_or_dir_name(self): | ||
1035 | """ | ||
1036 | Expand file or dir names into codeline. Dirnames and | ||
1037 | filenames can only have assignments or if statements. First | ||
1038 | translate if statements into CodeLine + (dirname or filename | ||
1039 | creation). | ||
1040 | """ | ||
1041 | lineno = 0 | ||
1042 | |||
1043 | line = self.translated_filename[len(self.filebase):] | ||
1044 | if line.startswith("/"): | ||
1045 | line = line[1:] | ||
1046 | opentag_start = -1 | ||
1047 | |||
1048 | start = line.find(OPEN_TAG) | ||
1049 | while start != -1: | ||
1050 | if not line[start:].startswith(ASSIGN_TAG): | ||
1051 | opentag_start = start | ||
1052 | break | ||
1053 | start += len(ASSIGN_TAG) | ||
1054 | start = line.find(OPEN_TAG, start) | ||
1055 | |||
1056 | if opentag_start != -1: | ||
1057 | end = line.find(CLOSE_TAG, opentag_start) | ||
1058 | if end == -1: | ||
1059 | self.parse_error("No close tag found for open tag", lineno, line) | ||
1060 | # we have a {{ tag i.e. code | ||
1061 | tag = line[opentag_start + len(OPEN_TAG):end].strip() | ||
1062 | if not tag.lstrip().startswith(IF_TAG): | ||
1063 | self.parse_error("Only 'if' tags are allowed in file or directory names", | ||
1064 | lineno, line) | ||
1065 | self.expanded_lines.append(CodeLine(tag)) | ||
1066 | |||
1067 | # everything after }} is the actual filename (possibly with assignments) | ||
1068 | # everything before is the pathname | ||
1069 | line = line[:opentag_start] + line[end + len(CLOSE_TAG):].strip() | ||
1070 | |||
1071 | assign_start = line.find(ASSIGN_TAG) | ||
1072 | if assign_start != -1: | ||
1073 | assignment_tag = self.expand_assignment_tag(assign_start, line, lineno) | ||
1074 | if isinstance(self, SubstrateFile): | ||
1075 | assignment_tag.is_filename = True | ||
1076 | assignment_tag.out_filebase = self.out_filebase | ||
1077 | elif isinstance(self, SubstrateDir): | ||
1078 | assignment_tag.is_dirname = True | ||
1079 | assignment_tag.out_filebase = self.out_filebase | ||
1080 | self.expanded_lines.append(assignment_tag) | ||
1081 | return | ||
1082 | |||
1083 | normal_line = NormalLine(line) | ||
1084 | if isinstance(self, SubstrateFile): | ||
1085 | normal_line.is_filename = True | ||
1086 | normal_line.out_filebase = self.out_filebase | ||
1087 | elif isinstance(self, SubstrateDir): | ||
1088 | normal_line.is_dirname = True | ||
1089 | normal_line.out_filebase = self.out_filebase | ||
1090 | self.expanded_lines.append(normal_line) | ||
1091 | |||
1092 | def expand(self): | ||
1093 | """ | ||
1094 | Expand the file or dir name first, eventually this ends up | ||
1095 | creating the file or dir. | ||
1096 | """ | ||
1097 | self.translate_file_or_dir_name() | ||
1098 | self.expand_file_or_dir_name() | ||
1099 | |||
1100 | |||
1101 | class SubstrateFile(SubstrateBase): | ||
1102 | """ | ||
1103 | Container for both expanded and unexpanded substrate files. | ||
1104 | """ | ||
1105 | def __init__(self, filename, filebase, out_filebase): | ||
1106 | SubstrateBase.__init__(self, filename, filebase, out_filebase) | ||
1107 | |||
1108 | def read(self): | ||
1109 | if self.raw_lines: | ||
1110 | return | ||
1111 | f = open(self.filename) | ||
1112 | self.raw_lines = f.readlines() | ||
1113 | |||
1114 | def expand(self): | ||
1115 | """Expand the contents of all template tags in the file.""" | ||
1116 | SubstrateBase.expand(self) | ||
1117 | self.read() | ||
1118 | |||
1119 | for lineno, line in enumerate(self.raw_lines): | ||
1120 | # only first line can be a filename substitition | ||
1121 | if lineno == 0 and line.startswith("#") and FILENAME_TAG in line: | ||
1122 | continue # skip it - we've already expanded it | ||
1123 | expanded_line = self.expand_tag(line, lineno + 1) # humans not 0-based | ||
1124 | if not expanded_line: | ||
1125 | expanded_line = NormalLine(line.rstrip()) | ||
1126 | self.expanded_lines.append(expanded_line) | ||
1127 | |||
1128 | def gen(self, context = None): | ||
1129 | """Generate the code that generates the BSP.""" | ||
1130 | base_indent = 0 | ||
1131 | |||
1132 | indent = new_indent = base_indent | ||
1133 | |||
1134 | for line in self.expanded_lines: | ||
1135 | genline = line.gen(context) | ||
1136 | if not genline: | ||
1137 | continue | ||
1138 | if isinstance(line, InputLine): | ||
1139 | line.generated_line = genline | ||
1140 | continue | ||
1141 | if genline.startswith(OPEN_START): | ||
1142 | if indent == 1: | ||
1143 | base_indent = 1 | ||
1144 | if indent: | ||
1145 | if genline == BLANKLINE_STR or (not genline.startswith(NORMAL_START) | ||
1146 | and not genline.startswith(OPEN_START)): | ||
1147 | indent = new_indent = base_indent | ||
1148 | if genline.endswith(":"): | ||
1149 | new_indent = base_indent + 1 | ||
1150 | line.generated_line = (indent * INDENT_STR) + genline | ||
1151 | indent = new_indent | ||
1152 | |||
1153 | |||
1154 | class SubstrateDir(SubstrateBase): | ||
1155 | """ | ||
1156 | Container for both expanded and unexpanded substrate dirs. | ||
1157 | """ | ||
1158 | def __init__(self, filename, filebase, out_filebase): | ||
1159 | SubstrateBase.__init__(self, filename, filebase, out_filebase) | ||
1160 | |||
1161 | def expand(self): | ||
1162 | SubstrateBase.expand(self) | ||
1163 | |||
1164 | def gen(self, context = None): | ||
1165 | """Generate the code that generates the BSP.""" | ||
1166 | indent = new_indent = 0 | ||
1167 | for line in self.expanded_lines: | ||
1168 | genline = line.gen(context) | ||
1169 | if not genline: | ||
1170 | continue | ||
1171 | if genline.endswith(":"): | ||
1172 | new_indent = 1 | ||
1173 | else: | ||
1174 | new_indent = 0 | ||
1175 | line.generated_line = (indent * INDENT_STR) + genline | ||
1176 | indent = new_indent | ||
1177 | |||
1178 | |||
1179 | def expand_target(target, all_files, out_filebase): | ||
1180 | """ | ||
1181 | Expand the contents of all template tags in the target. This | ||
1182 | means removing tags and categorizing or creating lines so that | ||
1183 | future passes can process and present input lines and generate the | ||
1184 | corresponding lines of the Python program that will be exec'ed to | ||
1185 | actually produce the final BSP. 'all_files' includes directories. | ||
1186 | """ | ||
1187 | for root, dirs, files in os.walk(target): | ||
1188 | for file in files: | ||
1189 | if file.endswith("~") or file.endswith("#"): | ||
1190 | continue | ||
1191 | f = os.path.join(root, file) | ||
1192 | sfile = SubstrateFile(f, target, out_filebase) | ||
1193 | sfile.expand() | ||
1194 | all_files.append(sfile) | ||
1195 | |||
1196 | for dir in dirs: | ||
1197 | d = os.path.join(root, dir) | ||
1198 | sdir = SubstrateDir(d, target, out_filebase) | ||
1199 | sdir.expand() | ||
1200 | all_files.append(sdir) | ||
1201 | |||
1202 | |||
1203 | def gen_program_machine_lines(machine, program_lines): | ||
1204 | """ | ||
1205 | Use the input values we got from the command line. | ||
1206 | """ | ||
1207 | line = "machine = \"" + machine + "\"" | ||
1208 | program_lines.append(line) | ||
1209 | |||
1210 | line = "layer_name = \"" + machine + "\"" | ||
1211 | program_lines.append(line) | ||
1212 | |||
1213 | |||
1214 | def sort_inputlines(input_lines): | ||
1215 | """Sort input lines according to priority (position).""" | ||
1216 | input_lines.sort(key = lambda l: l.prio) | ||
1217 | |||
1218 | |||
1219 | def find_parent_dependency(lines, depends_on): | ||
1220 | for i, line in lines: | ||
1221 | if isinstance(line, CodeLine): | ||
1222 | continue | ||
1223 | if line.props["name"] == depends_on: | ||
1224 | return i | ||
1225 | |||
1226 | return -1 | ||
1227 | |||
1228 | |||
1229 | def process_inputline_dependencies(input_lines, all_inputlines): | ||
1230 | """If any input lines depend on others, put the others first.""" | ||
1231 | for line in input_lines: | ||
1232 | if isinstance(line, InputLineGroup): | ||
1233 | group_inputlines = [] | ||
1234 | process_inputline_dependencies(line.group, group_inputlines) | ||
1235 | line.group = group_inputlines | ||
1236 | all_inputlines.append(line) | ||
1237 | continue | ||
1238 | |||
1239 | if isinstance(line, CodeLine) or isinstance(line, NormalLine): | ||
1240 | all_inputlines.append(line) | ||
1241 | continue | ||
1242 | |||
1243 | try: | ||
1244 | depends_on = line.props["depends-on"] | ||
1245 | depends_codeline = "if " + line.props["depends-on"] + " == \"" + line.props["depends-on-val"] + "\":" | ||
1246 | all_inputlines.append(CodeLine(depends_codeline)) | ||
1247 | all_inputlines.append(line) | ||
1248 | except KeyError: | ||
1249 | all_inputlines.append(line) | ||
1250 | |||
1251 | |||
1252 | def conditional_filename(filename): | ||
1253 | """ | ||
1254 | Check if the filename itself contains a conditional statement. If | ||
1255 | so, return a codeline for it. | ||
1256 | """ | ||
1257 | opentag_start = filename.find(OPEN_TAG) | ||
1258 | |||
1259 | if opentag_start != -1: | ||
1260 | if filename[opentag_start:].startswith(ASSIGN_TAG): | ||
1261 | return None | ||
1262 | end = filename.find(CLOSE_TAG, opentag_start) | ||
1263 | if end == -1: | ||
1264 | print("No close tag found for open tag in filename %s" % filename) | ||
1265 | sys.exit(1) | ||
1266 | |||
1267 | # we have a {{ tag i.e. code | ||
1268 | tag = filename[opentag_start + len(OPEN_TAG):end].strip() | ||
1269 | if not tag.lstrip().startswith(IF_TAG): | ||
1270 | print("Only 'if' tags are allowed in file or directory names, filename: %s" % filename) | ||
1271 | sys.exit(1) | ||
1272 | |||
1273 | return CodeLine(tag) | ||
1274 | |||
1275 | return None | ||
1276 | |||
1277 | |||
1278 | class InputLineGroup(InputLine): | ||
1279 | """ | ||
1280 | InputLine that does nothing but group other input lines | ||
1281 | corresponding to all the input lines in a SubstrateFile so they | ||
1282 | can be generated as a group. prio is the only property used. | ||
1283 | """ | ||
1284 | def __init__(self, codeline): | ||
1285 | InputLine.__init__(self, {}, "", 0) | ||
1286 | self.group = [] | ||
1287 | self.prio = sys.maxsize | ||
1288 | self.group.append(codeline) | ||
1289 | |||
1290 | def append(self, line): | ||
1291 | self.group.append(line) | ||
1292 | if line.prio < self.prio: | ||
1293 | self.prio = line.prio | ||
1294 | |||
1295 | def len(self): | ||
1296 | return len(self.group) | ||
1297 | |||
1298 | |||
1299 | def gather_inputlines(files): | ||
1300 | """ | ||
1301 | Gather all the InputLines - we want to generate them first. | ||
1302 | """ | ||
1303 | all_inputlines = [] | ||
1304 | input_lines = [] | ||
1305 | |||
1306 | for file in files: | ||
1307 | if isinstance(file, SubstrateFile): | ||
1308 | group = None | ||
1309 | basename = os.path.basename(file.translated_filename) | ||
1310 | |||
1311 | codeline = conditional_filename(basename) | ||
1312 | if codeline: | ||
1313 | group = InputLineGroup(codeline) | ||
1314 | |||
1315 | have_condition = False | ||
1316 | condition_to_write = None | ||
1317 | for line in file.expanded_lines: | ||
1318 | if isinstance(line, CodeLine): | ||
1319 | have_condition = True | ||
1320 | condition_to_write = line | ||
1321 | continue | ||
1322 | if isinstance(line, InputLine): | ||
1323 | if group: | ||
1324 | if condition_to_write: | ||
1325 | condition_to_write.prio = line.prio | ||
1326 | condition_to_write.discard = True | ||
1327 | group.append(condition_to_write) | ||
1328 | condition_to_write = None | ||
1329 | group.append(line) | ||
1330 | else: | ||
1331 | if condition_to_write: | ||
1332 | condition_to_write.prio = line.prio | ||
1333 | condition_to_write.discard = True | ||
1334 | input_lines.append(condition_to_write) | ||
1335 | condition_to_write = None | ||
1336 | input_lines.append(line) | ||
1337 | else: | ||
1338 | if condition_to_write: | ||
1339 | condition_to_write = None | ||
1340 | if have_condition: | ||
1341 | if not line.line.strip(): | ||
1342 | line.discard = True | ||
1343 | input_lines.append(line) | ||
1344 | have_condition = False | ||
1345 | |||
1346 | if group and group.len() > 1: | ||
1347 | input_lines.append(group) | ||
1348 | |||
1349 | sort_inputlines(input_lines) | ||
1350 | process_inputline_dependencies(input_lines, all_inputlines) | ||
1351 | |||
1352 | return all_inputlines | ||
1353 | |||
1354 | |||
1355 | def run_program_lines(linelist, codedump): | ||
1356 | """ | ||
1357 | For a single file, print all the python code into a buf and execute it. | ||
1358 | """ | ||
1359 | buf = "\n".join(linelist) | ||
1360 | |||
1361 | if codedump: | ||
1362 | of = open("bspgen.out", "w") | ||
1363 | of.write(buf) | ||
1364 | of.close() | ||
1365 | exec(buf) | ||
1366 | |||
1367 | |||
1368 | def gen_target(files, context = None): | ||
1369 | """ | ||
1370 | Generate the python code for each file. | ||
1371 | """ | ||
1372 | for file in files: | ||
1373 | file.gen(context) | ||
1374 | |||
1375 | |||
1376 | def gen_program_header_lines(program_lines): | ||
1377 | """ | ||
1378 | Generate any imports we need. | ||
1379 | """ | ||
1380 | program_lines.append("current_file = \"\"") | ||
1381 | |||
1382 | |||
1383 | def gen_supplied_property_vals(properties, program_lines): | ||
1384 | """ | ||
1385 | Generate user-specified entries for input values instead of | ||
1386 | generating input prompts. | ||
1387 | """ | ||
1388 | for name, val in properties.items(): | ||
1389 | program_line = name + " = \"" + val + "\"" | ||
1390 | program_lines.append(program_line) | ||
1391 | |||
1392 | |||
1393 | def gen_initial_property_vals(input_lines, program_lines): | ||
1394 | """ | ||
1395 | Generate null or default entries for input values, so we don't | ||
1396 | have undefined variables. | ||
1397 | """ | ||
1398 | for line in input_lines: | ||
1399 | if isinstance(line, InputLineGroup): | ||
1400 | gen_initial_property_vals(line.group, program_lines) | ||
1401 | continue | ||
1402 | |||
1403 | if isinstance(line, InputLine): | ||
1404 | try: | ||
1405 | name = line.props["name"] | ||
1406 | try: | ||
1407 | default_val = "\"" + line.props["default"] + "\"" | ||
1408 | except: | ||
1409 | default_val = "\"\"" | ||
1410 | program_line = name + " = " + default_val | ||
1411 | program_lines.append(program_line) | ||
1412 | except KeyError: | ||
1413 | pass | ||
1414 | |||
1415 | |||
1416 | def gen_program_input_lines(input_lines, program_lines, context, in_group = False): | ||
1417 | """ | ||
1418 | Generate only the input lines used for prompting the user. For | ||
1419 | that, we only have input lines and CodeLines that affect the next | ||
1420 | input line. | ||
1421 | """ | ||
1422 | indent = new_indent = 0 | ||
1423 | |||
1424 | for line in input_lines: | ||
1425 | if isinstance(line, InputLineGroup): | ||
1426 | gen_program_input_lines(line.group, program_lines, context, True) | ||
1427 | continue | ||
1428 | if not line.line.strip(): | ||
1429 | continue | ||
1430 | |||
1431 | genline = line.gen(context) | ||
1432 | if not genline: | ||
1433 | continue | ||
1434 | if genline.endswith(":"): | ||
1435 | new_indent += 1 | ||
1436 | else: | ||
1437 | if indent > 1 or (not in_group and indent): | ||
1438 | new_indent -= 1 | ||
1439 | |||
1440 | line.generated_line = (indent * INDENT_STR) + genline | ||
1441 | program_lines.append(line.generated_line) | ||
1442 | |||
1443 | indent = new_indent | ||
1444 | |||
1445 | |||
1446 | def gen_program_lines(target_files, program_lines): | ||
1447 | """ | ||
1448 | Generate the program lines that make up the BSP generation | ||
1449 | program. This appends the generated lines of all target_files to | ||
1450 | program_lines, and skips input lines, which are dealt with | ||
1451 | separately, or omitted. | ||
1452 | """ | ||
1453 | for file in target_files: | ||
1454 | if file.filename.endswith("noinstall"): | ||
1455 | continue | ||
1456 | |||
1457 | for line in file.expanded_lines: | ||
1458 | if isinstance(line, InputLine): | ||
1459 | continue | ||
1460 | if line.discard: | ||
1461 | continue | ||
1462 | |||
1463 | program_lines.append(line.generated_line) | ||
1464 | |||
1465 | |||
1466 | def create_context(machine, arch, scripts_path): | ||
1467 | """ | ||
1468 | Create a context object for use in deferred function invocation. | ||
1469 | """ | ||
1470 | context = {} | ||
1471 | |||
1472 | context["machine"] = machine | ||
1473 | context["arch"] = arch | ||
1474 | context["scripts_path"] = scripts_path | ||
1475 | |||
1476 | return context | ||
1477 | |||
1478 | |||
1479 | def capture_context(context): | ||
1480 | """ | ||
1481 | Create a context object for use in deferred function invocation. | ||
1482 | """ | ||
1483 | captured_context = {} | ||
1484 | |||
1485 | captured_context["machine"] = context["machine"] | ||
1486 | captured_context["arch"] = context["arch"] | ||
1487 | captured_context["scripts_path"] = context["scripts_path"] | ||
1488 | |||
1489 | return captured_context | ||
1490 | |||
1491 | |||
1492 | def expand_targets(context, bsp_output_dir, expand_common=True): | ||
1493 | """ | ||
1494 | Expand all the tags in both the common and machine-specific | ||
1495 | 'targets'. | ||
1496 | |||
1497 | If expand_common is False, don't expand the common target (this | ||
1498 | option is used to create special-purpose layers). | ||
1499 | """ | ||
1500 | target_files = [] | ||
1501 | |||
1502 | machine = context["machine"] | ||
1503 | arch = context["arch"] | ||
1504 | scripts_path = context["scripts_path"] | ||
1505 | |||
1506 | lib_path = scripts_path + '/lib' | ||
1507 | bsp_path = lib_path + '/bsp' | ||
1508 | arch_path = bsp_path + '/substrate/target/arch' | ||
1509 | |||
1510 | if expand_common: | ||
1511 | common = os.path.join(arch_path, "common") | ||
1512 | expand_target(common, target_files, bsp_output_dir) | ||
1513 | |||
1514 | arches = os.listdir(arch_path) | ||
1515 | if arch not in arches or arch == "common": | ||
1516 | print("Invalid karch, exiting\n") | ||
1517 | sys.exit(1) | ||
1518 | |||
1519 | target = os.path.join(arch_path, arch) | ||
1520 | expand_target(target, target_files, bsp_output_dir) | ||
1521 | |||
1522 | gen_target(target_files, context) | ||
1523 | |||
1524 | return target_files | ||
1525 | |||
1526 | |||
1527 | def yocto_common_create(machine, target, scripts_path, layer_output_dir, codedump, properties_file, properties_str="", expand_common=True): | ||
1528 | """ | ||
1529 | Common layer-creation code | ||
1530 | |||
1531 | machine - user-defined machine name (if needed, will generate 'machine' var) | ||
1532 | target - the 'target' the layer will be based on, must be one in | ||
1533 | scripts/lib/bsp/substrate/target/arch | ||
1534 | scripts_path - absolute path to yocto /scripts dir | ||
1535 | layer_output_dir - dirname to create for layer | ||
1536 | codedump - dump generated code to bspgen.out | ||
1537 | properties_file - use values from this file if nonempty i.e no prompting | ||
1538 | properties_str - use values from this string if nonempty i.e no prompting | ||
1539 | expand_common - boolean, use the contents of (for bsp layers) arch/common | ||
1540 | """ | ||
1541 | if os.path.exists(layer_output_dir): | ||
1542 | print("\nlayer output dir already exists, exiting. (%s)" % layer_output_dir) | ||
1543 | sys.exit(1) | ||
1544 | |||
1545 | properties = None | ||
1546 | |||
1547 | if properties_file: | ||
1548 | try: | ||
1549 | infile = open(properties_file, "r") | ||
1550 | properties = json.load(infile) | ||
1551 | except IOError: | ||
1552 | print("Couldn't open properties file %s for reading, exiting" % properties_file) | ||
1553 | sys.exit(1) | ||
1554 | except ValueError: | ||
1555 | print("Wrong format on properties file %s, exiting" % properties_file) | ||
1556 | sys.exit(1) | ||
1557 | |||
1558 | if properties_str and not properties: | ||
1559 | properties = json.loads(properties_str) | ||
1560 | |||
1561 | os.mkdir(layer_output_dir) | ||
1562 | |||
1563 | context = create_context(machine, target, scripts_path) | ||
1564 | target_files = expand_targets(context, layer_output_dir, expand_common) | ||
1565 | |||
1566 | input_lines = gather_inputlines(target_files) | ||
1567 | |||
1568 | program_lines = [] | ||
1569 | |||
1570 | gen_program_header_lines(program_lines) | ||
1571 | |||
1572 | gen_initial_property_vals(input_lines, program_lines) | ||
1573 | |||
1574 | if properties: | ||
1575 | gen_supplied_property_vals(properties, program_lines) | ||
1576 | |||
1577 | gen_program_machine_lines(machine, program_lines) | ||
1578 | |||
1579 | if not properties: | ||
1580 | gen_program_input_lines(input_lines, program_lines, context) | ||
1581 | |||
1582 | gen_program_lines(target_files, program_lines) | ||
1583 | |||
1584 | run_program_lines(program_lines, codedump) | ||
1585 | |||
1586 | |||
1587 | def yocto_layer_create(layer_name, scripts_path, layer_output_dir, codedump, properties_file, properties=""): | ||
1588 | """ | ||
1589 | Create yocto layer | ||
1590 | |||
1591 | layer_name - user-defined layer name | ||
1592 | scripts_path - absolute path to yocto /scripts dir | ||
1593 | layer_output_dir - dirname to create for layer | ||
1594 | codedump - dump generated code to bspgen.out | ||
1595 | properties_file - use values from this file if nonempty i.e no prompting | ||
1596 | properties - use values from this string if nonempty i.e no prompting | ||
1597 | """ | ||
1598 | yocto_common_create(layer_name, "layer", scripts_path, layer_output_dir, codedump, properties_file, properties, False) | ||
1599 | |||
1600 | print("\nNew layer created in %s.\n" % layer_output_dir) | ||
1601 | print("Don't forget to add it to your BBLAYERS (for details see %s/README)." % layer_output_dir) | ||
1602 | |||
1603 | |||
1604 | def yocto_bsp_create(machine, arch, scripts_path, bsp_output_dir, codedump, properties_file, properties=None): | ||
1605 | """ | ||
1606 | Create bsp | ||
1607 | |||
1608 | machine - user-defined machine name | ||
1609 | arch - the arch the bsp will be based on, must be one in | ||
1610 | scripts/lib/bsp/substrate/target/arch | ||
1611 | scripts_path - absolute path to yocto /scripts dir | ||
1612 | bsp_output_dir - dirname to create for BSP | ||
1613 | codedump - dump generated code to bspgen.out | ||
1614 | properties_file - use values from this file if nonempty i.e no prompting | ||
1615 | properties - use values from this string if nonempty i.e no prompting | ||
1616 | """ | ||
1617 | yocto_common_create(machine, arch, scripts_path, bsp_output_dir, codedump, properties_file, properties) | ||
1618 | |||
1619 | print("\nNew %s BSP created in %s" % (arch, bsp_output_dir)) | ||
1620 | |||
1621 | |||
1622 | def print_dict(items, indent = 0): | ||
1623 | """ | ||
1624 | Print the values in a possibly nested dictionary. | ||
1625 | """ | ||
1626 | for key, val in items.items(): | ||
1627 | print(" "*indent + "\"%s\" :" % key) | ||
1628 | if type(val) == dict: | ||
1629 | print("{") | ||
1630 | print_dict(val, indent + 1) | ||
1631 | print(" "*indent + "}") | ||
1632 | else: | ||
1633 | print("%s" % val) | ||
1634 | |||
1635 | |||
1636 | def get_properties(input_lines): | ||
1637 | """ | ||
1638 | Get the complete set of properties for all the input items in the | ||
1639 | BSP, as a possibly nested dictionary. | ||
1640 | """ | ||
1641 | properties = {} | ||
1642 | |||
1643 | for line in input_lines: | ||
1644 | if isinstance(line, InputLineGroup): | ||
1645 | statement = line.group[0].line | ||
1646 | group_properties = get_properties(line.group) | ||
1647 | properties[statement] = group_properties | ||
1648 | continue | ||
1649 | |||
1650 | if not isinstance(line, InputLine): | ||
1651 | continue | ||
1652 | |||
1653 | if isinstance(line, ChoiceInputLine): | ||
1654 | continue | ||
1655 | |||
1656 | props = line.props | ||
1657 | item = {} | ||
1658 | name = props["name"] | ||
1659 | for key, val in props.items(): | ||
1660 | if not key == "name": | ||
1661 | item[key] = val | ||
1662 | properties[name] = item | ||
1663 | |||
1664 | return properties | ||
1665 | |||
1666 | |||
1667 | def yocto_layer_list_properties(arch, scripts_path, properties_file, expand_common=True): | ||
1668 | """ | ||
1669 | List the complete set of properties for all the input items in the | ||
1670 | layer. If properties_file is non-null, write the complete set of | ||
1671 | properties as a nested JSON object corresponding to a possibly | ||
1672 | nested dictionary. | ||
1673 | """ | ||
1674 | context = create_context("unused", arch, scripts_path) | ||
1675 | target_files = expand_targets(context, "unused", expand_common) | ||
1676 | |||
1677 | input_lines = gather_inputlines(target_files) | ||
1678 | |||
1679 | properties = get_properties(input_lines) | ||
1680 | if properties_file: | ||
1681 | try: | ||
1682 | of = open(properties_file, "w") | ||
1683 | except IOError: | ||
1684 | print("Couldn't open properties file %s for writing, exiting" % properties_file) | ||
1685 | sys.exit(1) | ||
1686 | |||
1687 | json.dump(properties, of, indent=1) | ||
1688 | else: | ||
1689 | print_dict(properties) | ||
1690 | |||
1691 | |||
1692 | def split_nested_property(property): | ||
1693 | """ | ||
1694 | A property name of the form x.y describes a nested property | ||
1695 | i.e. the property y is contained within x and can be addressed | ||
1696 | using standard JSON syntax for nested properties. Note that if a | ||
1697 | property name itself contains '.', it should be contained in | ||
1698 | double quotes. | ||
1699 | """ | ||
1700 | splittable_property = "" | ||
1701 | in_quotes = False | ||
1702 | for c in property: | ||
1703 | if c == '.' and not in_quotes: | ||
1704 | splittable_property += '\n' | ||
1705 | continue | ||
1706 | if c == '"': | ||
1707 | in_quotes = not in_quotes | ||
1708 | splittable_property += c | ||
1709 | |||
1710 | split_properties = splittable_property.split('\n') | ||
1711 | |||
1712 | if len(split_properties) > 1: | ||
1713 | return split_properties | ||
1714 | |||
1715 | return None | ||
1716 | |||
1717 | |||
1718 | def find_input_line_group(substring, input_lines): | ||
1719 | """ | ||
1720 | Find and return the InputLineGroup containing the specified substring. | ||
1721 | """ | ||
1722 | for line in input_lines: | ||
1723 | if isinstance(line, InputLineGroup): | ||
1724 | if substring in line.group[0].line: | ||
1725 | return line | ||
1726 | |||
1727 | return None | ||
1728 | |||
1729 | |||
1730 | def find_input_line(name, input_lines): | ||
1731 | """ | ||
1732 | Find the input line with the specified name. | ||
1733 | """ | ||
1734 | for line in input_lines: | ||
1735 | if isinstance(line, InputLineGroup): | ||
1736 | l = find_input_line(name, line.group) | ||
1737 | if l: | ||
1738 | return l | ||
1739 | |||
1740 | if isinstance(line, InputLine): | ||
1741 | try: | ||
1742 | if line.props["name"] == name: | ||
1743 | return line | ||
1744 | if line.props["name"] + "_" + line.props["nameappend"] == name: | ||
1745 | return line | ||
1746 | except KeyError: | ||
1747 | pass | ||
1748 | |||
1749 | return None | ||
1750 | |||
1751 | |||
1752 | def print_values(type, values_list): | ||
1753 | """ | ||
1754 | Print the values in the given list of values. | ||
1755 | """ | ||
1756 | if type == "choicelist": | ||
1757 | for value in values_list: | ||
1758 | print("[\"%s\", \"%s\"]" % (value[0], value[1])) | ||
1759 | elif type == "boolean": | ||
1760 | for value in values_list: | ||
1761 | print("[\"%s\", \"%s\"]" % (value[0], value[1])) | ||
1762 | |||
1763 | |||
1764 | def yocto_layer_list_property_values(arch, property, scripts_path, properties_file, expand_common=True): | ||
1765 | """ | ||
1766 | List the possible values for a given input property. If | ||
1767 | properties_file is non-null, write the complete set of properties | ||
1768 | as a JSON object corresponding to an array of possible values. | ||
1769 | """ | ||
1770 | context = create_context("unused", arch, scripts_path) | ||
1771 | context["name"] = property | ||
1772 | |||
1773 | target_files = expand_targets(context, "unused", expand_common) | ||
1774 | |||
1775 | input_lines = gather_inputlines(target_files) | ||
1776 | |||
1777 | properties = get_properties(input_lines) | ||
1778 | |||
1779 | nested_properties = split_nested_property(property) | ||
1780 | if nested_properties: | ||
1781 | # currently the outer property of a nested property always | ||
1782 | # corresponds to an input line group | ||
1783 | input_line_group = find_input_line_group(nested_properties[0], input_lines) | ||
1784 | if input_line_group: | ||
1785 | input_lines[:] = input_line_group.group[1:] | ||
1786 | # The inner property of a nested property name is the | ||
1787 | # actual property name we want, so reset to that | ||
1788 | property = nested_properties[1] | ||
1789 | |||
1790 | input_line = find_input_line(property, input_lines) | ||
1791 | if not input_line: | ||
1792 | print("Couldn't find values for property %s" % property) | ||
1793 | return | ||
1794 | |||
1795 | values_list = [] | ||
1796 | |||
1797 | type = input_line.props["type"] | ||
1798 | if type == "boolean": | ||
1799 | values_list.append(["y", "n"]) | ||
1800 | elif type == "choicelist" or type == "checklist": | ||
1801 | try: | ||
1802 | gen_fn = input_line.props["gen"] | ||
1803 | if nested_properties: | ||
1804 | context["filename"] = nested_properties[0] | ||
1805 | try: | ||
1806 | context["branches_base"] = input_line.props["branches_base"] | ||
1807 | except KeyError: | ||
1808 | context["branches_base"] = None | ||
1809 | values_list = input_line.gen_choices_list(context, False) | ||
1810 | except KeyError: | ||
1811 | for choice in input_line.choices: | ||
1812 | choicepair = [] | ||
1813 | choicepair.append(choice.val) | ||
1814 | choicepair.append(choice.desc) | ||
1815 | values_list.append(choicepair) | ||
1816 | |||
1817 | if properties_file: | ||
1818 | try: | ||
1819 | of = open(properties_file, "w") | ||
1820 | except IOError: | ||
1821 | print("Couldn't open properties file %s for writing, exiting" % properties_file) | ||
1822 | sys.exit(1) | ||
1823 | |||
1824 | json.dump(values_list, of) | ||
1825 | |||
1826 | print_values(type, values_list) | ||
1827 | |||
1828 | |||
1829 | def yocto_bsp_list(args, scripts_path): | ||
1830 | """ | ||
1831 | Print available architectures, or the complete list of properties | ||
1832 | defined by the BSP, or the possible values for a particular BSP | ||
1833 | property. | ||
1834 | """ | ||
1835 | if args.karch == "karch": | ||
1836 | lib_path = scripts_path + '/lib' | ||
1837 | bsp_path = lib_path + '/bsp' | ||
1838 | arch_path = bsp_path + '/substrate/target/arch' | ||
1839 | print("Architectures available:") | ||
1840 | for arch in os.listdir(arch_path): | ||
1841 | if arch == "common" or arch == "layer": | ||
1842 | continue | ||
1843 | print(" %s" % arch) | ||
1844 | return | ||
1845 | |||
1846 | if args.properties: | ||
1847 | yocto_layer_list_properties(args.karch, scripts_path, args.properties_file) | ||
1848 | elif args.property: | ||
1849 | yocto_layer_list_property_values(args.karch, args.property, scripts_path, args.properties_file) | ||
1850 | |||
1851 | |||
1852 | |||
1853 | def yocto_layer_list(args, scripts_path, properties_file): | ||
1854 | """ | ||
1855 | Print the complete list of input properties defined by the layer, | ||
1856 | or the possible values for a particular layer property. | ||
1857 | """ | ||
1858 | if len(args) < 1: | ||
1859 | return False | ||
1860 | |||
1861 | if len(args) < 1 or len(args) > 2: | ||
1862 | return False | ||
1863 | |||
1864 | if len(args) == 1: | ||
1865 | if args[0] == "properties": | ||
1866 | yocto_layer_list_properties("layer", scripts_path, properties_file, False) | ||
1867 | else: | ||
1868 | return False | ||
1869 | |||
1870 | if len(args) == 2: | ||
1871 | if args[0] == "property": | ||
1872 | yocto_layer_list_property_values("layer", args[1], scripts_path, properties_file, False) | ||
1873 | else: | ||
1874 | return False | ||
1875 | |||
1876 | return True | ||
1877 | |||
1878 | |||
1879 | def map_standard_kbranch(need_new_kbranch, new_kbranch, existing_kbranch): | ||
1880 | """ | ||
1881 | Return the linux-yocto bsp branch to use with the specified | ||
1882 | kbranch. This handles the -standard variants for 3.4 and 3.8; the | ||
1883 | other variants don't need mappings. | ||
1884 | """ | ||
1885 | if need_new_kbranch == "y": | ||
1886 | kbranch = new_kbranch | ||
1887 | else: | ||
1888 | kbranch = existing_kbranch | ||
1889 | |||
1890 | if kbranch.startswith("standard/common-pc-64"): | ||
1891 | return "bsp/common-pc-64/common-pc-64-standard.scc" | ||
1892 | if kbranch.startswith("standard/common-pc"): | ||
1893 | return "bsp/common-pc/common-pc-standard.scc" | ||
1894 | else: | ||
1895 | return "ktypes/standard/standard.scc" | ||
1896 | |||
1897 | |||
1898 | def map_preempt_rt_kbranch(need_new_kbranch, new_kbranch, existing_kbranch): | ||
1899 | """ | ||
1900 | Return the linux-yocto bsp branch to use with the specified | ||
1901 | kbranch. This handles the -preempt-rt variants for 3.4 and 3.8; | ||
1902 | the other variants don't need mappings. | ||
1903 | """ | ||
1904 | if need_new_kbranch == "y": | ||
1905 | kbranch = new_kbranch | ||
1906 | else: | ||
1907 | kbranch = existing_kbranch | ||
1908 | |||
1909 | if kbranch.startswith("standard/preempt-rt/common-pc-64"): | ||
1910 | return "bsp/common-pc-64/common-pc-64-preempt-rt.scc" | ||
1911 | if kbranch.startswith("standard/preempt-rt/common-pc"): | ||
1912 | return "bsp/common-pc/common-pc-preempt-rt.scc" | ||
1913 | else: | ||
1914 | return "ktypes/preempt-rt/preempt-rt.scc" | ||
1915 | |||
1916 | |||
1917 | def map_tiny_kbranch(need_new_kbranch, new_kbranch, existing_kbranch): | ||
1918 | """ | ||
1919 | Return the linux-yocto bsp branch to use with the specified | ||
1920 | kbranch. This handles the -tiny variants for 3.4 and 3.8; the | ||
1921 | other variants don't need mappings. | ||
1922 | """ | ||
1923 | if need_new_kbranch == "y": | ||
1924 | kbranch = new_kbranch | ||
1925 | else: | ||
1926 | kbranch = existing_kbranch | ||
1927 | |||
1928 | if kbranch.startswith("standard/tiny/common-pc"): | ||
1929 | return "bsp/common-pc/common-pc-tiny.scc" | ||
1930 | else: | ||
1931 | return "ktypes/tiny/tiny.scc" | ||
diff --git a/scripts/lib/bsp/help.py b/scripts/lib/bsp/help.py deleted file mode 100644 index 85d446b860..0000000000 --- a/scripts/lib/bsp/help.py +++ /dev/null | |||
@@ -1,1054 +0,0 @@ | |||
1 | # ex:ts=4:sw=4:sts=4:et | ||
2 | # -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- | ||
3 | # | ||
4 | # Copyright (c) 2012, Intel Corporation. | ||
5 | # All rights reserved. | ||
6 | # | ||
7 | # This program is free software; you can redistribute it and/or modify | ||
8 | # it under the terms of the GNU General Public License version 2 as | ||
9 | # published by the Free Software Foundation. | ||
10 | # | ||
11 | # This program is distributed in the hope that it will be useful, | ||
12 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
13 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
14 | # GNU General Public License for more details. | ||
15 | # | ||
16 | # You should have received a copy of the GNU General Public License along | ||
17 | # with this program; if not, write to the Free Software Foundation, Inc., | ||
18 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. | ||
19 | # | ||
20 | # DESCRIPTION | ||
21 | # This module implements some basic help invocation functions along | ||
22 | # with the bulk of the help topic text for the Yocto BSP Tools. | ||
23 | # | ||
24 | # AUTHORS | ||
25 | # Tom Zanussi <tom.zanussi (at] intel.com> | ||
26 | # | ||
27 | |||
28 | import subprocess | ||
29 | import logging | ||
30 | |||
31 | |||
32 | def subcommand_error(args): | ||
33 | logging.info("invalid subcommand %s" % args[0]) | ||
34 | |||
35 | |||
36 | def display_help(subcommand, subcommands): | ||
37 | """ | ||
38 | Display help for subcommand. | ||
39 | """ | ||
40 | if subcommand not in subcommands: | ||
41 | return False | ||
42 | |||
43 | help = subcommands.get(subcommand, subcommand_error)[2] | ||
44 | pager = subprocess.Popen('less', stdin=subprocess.PIPE) | ||
45 | pager.communicate(bytes(help, 'UTF-8')) | ||
46 | |||
47 | return True | ||
48 | |||
49 | |||
50 | def yocto_help(args, usage_str, subcommands): | ||
51 | """ | ||
52 | Subcommand help dispatcher. | ||
53 | """ | ||
54 | if len(args) == 1 or not display_help(args[1], subcommands): | ||
55 | print(usage_str) | ||
56 | |||
57 | |||
58 | def invoke_subcommand(args, parser, main_command_usage, subcommands): | ||
59 | """ | ||
60 | Dispatch to subcommand handler borrowed from combo-layer. | ||
61 | Should use argparse, but has to work in 2.6. | ||
62 | """ | ||
63 | if not args: | ||
64 | logging.error("No subcommand specified, exiting") | ||
65 | parser.print_help() | ||
66 | elif args[0] == "help": | ||
67 | yocto_help(args, main_command_usage, subcommands) | ||
68 | elif args[0] not in subcommands: | ||
69 | logging.error("Unsupported subcommand %s, exiting\n" % (args[0])) | ||
70 | parser.print_help() | ||
71 | else: | ||
72 | usage = subcommands.get(args[0], subcommand_error)[1] | ||
73 | subcommands.get(args[0], subcommand_error)[0](args[1:], usage) | ||
74 | |||
75 | |||
76 | ## | ||
77 | # yocto-bsp help and usage strings | ||
78 | ## | ||
79 | |||
80 | yocto_bsp_usage = """ | ||
81 | |||
82 | Create a customized Yocto BSP layer. | ||
83 | |||
84 | usage: yocto-bsp [--version] [--help] COMMAND [ARGS] | ||
85 | |||
86 | Current 'yocto-bsp' commands are: | ||
87 | create Create a new Yocto BSP | ||
88 | list List available values for options and BSP properties | ||
89 | |||
90 | See 'yocto-bsp help COMMAND' for more information on a specific command. | ||
91 | """ | ||
92 | |||
93 | yocto_bsp_help_usage = """ | ||
94 | |||
95 | usage: yocto-bsp help <subcommand> | ||
96 | |||
97 | This command displays detailed help for the specified subcommand. | ||
98 | """ | ||
99 | |||
100 | yocto_bsp_create_usage = """ | ||
101 | |||
102 | Create a new Yocto BSP | ||
103 | |||
104 | usage: yocto-bsp create <bsp-name> <karch> [-o <DIRNAME> | --outdir <DIRNAME>] | ||
105 | [-i <JSON PROPERTY FILE> | --infile <JSON PROPERTY_FILE>] | ||
106 | [-c | --codedump] [-s | --skip-git-check] | ||
107 | |||
108 | This command creates a Yocto BSP based on the specified parameters. | ||
109 | The new BSP will be a new Yocto BSP layer contained by default within | ||
110 | the top-level directory specified as 'meta-bsp-name'. The -o option | ||
111 | can be used to place the BSP layer in a directory with a different | ||
112 | name and location. | ||
113 | |||
114 | The value of the 'karch' parameter determines the set of files that | ||
115 | will be generated for the BSP, along with the specific set of | ||
116 | 'properties' that will be used to fill out the BSP-specific portions | ||
117 | of the BSP. The possible values for the 'karch' parameter can be | ||
118 | listed via 'yocto-bsp list karch'. | ||
119 | |||
120 | NOTE: Once created, you should add your new layer to your | ||
121 | bblayers.conf file in order for it to be subsequently seen and | ||
122 | modified by the yocto-kernel tool. | ||
123 | |||
124 | See 'yocto bsp help create' for more detailed instructions. | ||
125 | """ | ||
126 | |||
127 | yocto_bsp_create_help = """ | ||
128 | |||
129 | NAME | ||
130 | yocto-bsp create - Create a new Yocto BSP | ||
131 | |||
132 | SYNOPSIS | ||
133 | yocto-bsp create <bsp-name> <karch> [-o <DIRNAME> | --outdir <DIRNAME>] | ||
134 | [-i <JSON PROPERTY FILE> | --infile <JSON PROPERTY_FILE>] | ||
135 | [-c | --codedump] [-s | --skip-git-check] | ||
136 | |||
137 | DESCRIPTION | ||
138 | This command creates a Yocto BSP based on the specified | ||
139 | parameters. The new BSP will be a new Yocto BSP layer contained | ||
140 | by default within the top-level directory specified as | ||
141 | 'meta-bsp-name'. The -o option can be used to place the BSP layer | ||
142 | in a directory with a different name and location. | ||
143 | |||
144 | The value of the 'karch' parameter determines the set of files | ||
145 | that will be generated for the BSP, along with the specific set of | ||
146 | 'properties' that will be used to fill out the BSP-specific | ||
147 | portions of the BSP. The possible values for the 'karch' parameter | ||
148 | can be listed via 'yocto-bsp list karch'. | ||
149 | |||
150 | The BSP-specific properties that define the values that will be | ||
151 | used to generate a particular BSP can be specified on the | ||
152 | command-line using the -i option and supplying a JSON object | ||
153 | consisting of the set of name:value pairs needed by the BSP. | ||
154 | |||
155 | If the -i option is not used, the user will be interactively | ||
156 | prompted for each of the required property values, which will then | ||
157 | be used as values for BSP generation. | ||
158 | |||
159 | The set of properties available for a given architecture can be | ||
160 | listed using the 'yocto-bsp list' command. | ||
161 | |||
162 | Specifying -c causes the Python code generated and executed to | ||
163 | create the BSP to be dumped to the 'bspgen.out' file in the | ||
164 | current directory, and is useful for debugging. | ||
165 | |||
166 | NOTE: Once created, you should add your new layer to your | ||
167 | bblayers.conf file in order for it to be subsequently seen and | ||
168 | modified by the yocto-kernel tool. | ||
169 | |||
170 | For example, assuming your poky repo is at /path/to/poky, your new | ||
171 | BSP layer is at /path/to/poky/meta-mybsp, and your build directory | ||
172 | is /path/to/build: | ||
173 | |||
174 | $ gedit /path/to/build/conf/bblayers.conf | ||
175 | |||
176 | BBLAYERS ?= " \\ | ||
177 | /path/to/poky/meta \\ | ||
178 | /path/to/poky/meta-poky \\ | ||
179 | /path/to/poky/meta-mybsp \\ | ||
180 | " | ||
181 | """ | ||
182 | |||
183 | yocto_bsp_list_usage = """ | ||
184 | |||
185 | usage: yocto-bsp list karch | ||
186 | yocto-bsp list <karch> --properties | ||
187 | [-o <JSON PROPERTY FILE> | --outfile <JSON PROPERTY_FILE>] | ||
188 | yocto-bsp list <karch> --property <xxx> | ||
189 | [-o <JSON PROPERTY FILE> | --outfile <JSON PROPERTY_FILE>] | ||
190 | |||
191 | This command enumerates the complete set of possible values for a | ||
192 | specified option or property needed by the BSP creation process. | ||
193 | |||
194 | The first form enumerates all the possible values that exist and can | ||
195 | be specified for the 'karch' parameter to the 'yocto bsp create' | ||
196 | command. | ||
197 | |||
198 | The second form enumerates all the possible properties that exist and | ||
199 | must have values specified for them in the 'yocto bsp create' command | ||
200 | for the given 'karch'. | ||
201 | |||
202 | The third form enumerates all the possible values that exist and can | ||
203 | be specified for any of the enumerable properties of the given | ||
204 | 'karch' in the 'yocto bsp create' command. | ||
205 | |||
206 | See 'yocto-bsp help list' for more details. | ||
207 | """ | ||
208 | |||
209 | yocto_bsp_list_help = """ | ||
210 | |||
211 | NAME | ||
212 | yocto-bsp list - List available values for options and BSP properties | ||
213 | |||
214 | SYNOPSIS | ||
215 | yocto-bsp list karch | ||
216 | yocto-bsp list <karch> --properties | ||
217 | [--o <JSON PROPERTY FILE> | -outfile <JSON PROPERTY_FILE>] | ||
218 | yocto-bsp list <karch> --property <xxx> | ||
219 | [--o <JSON PROPERTY FILE> | -outfile <JSON PROPERTY_FILE>] | ||
220 | |||
221 | DESCRIPTION | ||
222 | This command enumerates the complete set of possible values for a | ||
223 | specified option or property needed by the BSP creation process. | ||
224 | |||
225 | The first form enumerates all the possible values that exist and | ||
226 | can be specified for the 'karch' parameter to the 'yocto bsp | ||
227 | create' command. Example output for the 'list karch' command: | ||
228 | |||
229 | $ yocto-bsp list karch | ||
230 | Architectures available: | ||
231 | arm | ||
232 | powerpc | ||
233 | i386 | ||
234 | mips | ||
235 | mips64 | ||
236 | x86_64 | ||
237 | qemu | ||
238 | |||
239 | The second form enumerates all the possible properties that exist | ||
240 | and must have values specified for them in the 'yocto bsp create' | ||
241 | command for the given 'karch'. This command is mainly meant to | ||
242 | allow the development user interface alternatives to the default | ||
243 | text-based prompting interface. If the -o option is specified, | ||
244 | the list of properties, in addition to being displayed, will be | ||
245 | written to the specified file as a JSON object. In this case, the | ||
246 | object will consist of the set of name:value pairs corresponding | ||
247 | to the (possibly nested) dictionary of properties defined by the | ||
248 | input statements used by the BSP. Some example output for the | ||
249 | 'list --properties' command: | ||
250 | |||
251 | $ yocto-bsp list arm --properties | ||
252 | "touchscreen" : { | ||
253 | "msg" : Does your BSP have a touchscreen? (y/N) | ||
254 | "default" : n | ||
255 | "type" : boolean | ||
256 | } | ||
257 | "uboot_loadaddress" : { | ||
258 | "msg" : Please specify a value for UBOOT_LOADADDRESS. | ||
259 | "default" : 0x80008000 | ||
260 | "type" : edit | ||
261 | "prio" : 40 | ||
262 | } | ||
263 | "kernel_choice" : { | ||
264 | "prio" : 10 | ||
265 | "default" : linux-yocto_3.2 | ||
266 | "depends-on" : use_default_kernel | ||
267 | "depends-on-val" : n | ||
268 | "msg" : Please choose the kernel to use in this BSP => | ||
269 | "type" : choicelist | ||
270 | "gen" : bsp.kernel.kernels | ||
271 | } | ||
272 | "if kernel_choice == "linux-yocto_3.0":" : { | ||
273 | "base_kbranch_linux_yocto_3_0" : { | ||
274 | "prio" : 20 | ||
275 | "default" : yocto/standard | ||
276 | "depends-on" : new_kbranch_linux_yocto_3_0 | ||
277 | "depends-on-val" : y | ||
278 | "msg" : Please choose a machine branch to base this BSP on => | ||
279 | "type" : choicelist | ||
280 | "gen" : bsp.kernel.all_branches | ||
281 | } | ||
282 | . | ||
283 | . | ||
284 | . | ||
285 | |||
286 | Each entry in the output consists of the name of the input element | ||
287 | e.g. "touchscreen", followed by the properties defined for that | ||
288 | element enclosed in braces. This information should provide | ||
289 | sufficient information to create a complete user interface with. | ||
290 | Two features of the scheme provide for conditional input. First, | ||
291 | if a Python "if" statement appears in place of an input element | ||
292 | name, the set of enclosed input elements apply and should be | ||
293 | presented to the user only if the 'if' statement evaluates to | ||
294 | true. The test in the if statement will always reference another | ||
295 | input element in the list, which means that the element being | ||
296 | tested should be presented to the user before the elements | ||
297 | enclosed by the if block. Secondly, in a similar way, some | ||
298 | elements contain "depends-on" and depends-on-val" tags, which mean | ||
299 | that the affected input element should only be presented to the | ||
300 | user if the element it depends on has already been presented to | ||
301 | the user and the user has selected the specified value for that | ||
302 | element. | ||
303 | |||
304 | The third form enumerates all the possible values that exist and | ||
305 | can be specified for any of the enumerable properties of the given | ||
306 | 'karch' in the 'yocto bsp create' command. If the -o option is | ||
307 | specified, the list of values for the given property, in addition | ||
308 | to being displayed, will be written to the specified file as a | ||
309 | JSON object. In this case, the object will consist of the set of | ||
310 | name:value pairs corresponding to the array of property values | ||
311 | associated with the property. | ||
312 | |||
313 | $ yocto-bsp list i386 --property xserver_choice | ||
314 | ["xserver_vesa", "VESA xserver support"] | ||
315 | ["xserver_i915", "i915 xserver support"] | ||
316 | |||
317 | $ yocto-bsp list arm --property base_kbranch_linux_yocto_3_0 | ||
318 | Getting branches from remote repo git://git.yoctoproject.org/linux-yocto-3.0... | ||
319 | ["yocto/base", "yocto/base"] | ||
320 | ["yocto/eg20t", "yocto/eg20t"] | ||
321 | ["yocto/gma500", "yocto/gma500"] | ||
322 | ["yocto/pvr", "yocto/pvr"] | ||
323 | ["yocto/standard/arm-versatile-926ejs", "yocto/standard/arm-versatile-926ejs"] | ||
324 | ["yocto/standard/base", "yocto/standard/base"] | ||
325 | ["yocto/standard/cedartrail", "yocto/standard/cedartrail"] | ||
326 | . | ||
327 | . | ||
328 | . | ||
329 | ["yocto/standard/qemu-ppc32", "yocto/standard/qemu-ppc32"] | ||
330 | ["yocto/standard/routerstationpro", "yocto/standard/routerstationpro"] | ||
331 | |||
332 | The third form as well is meant mainly for developers of | ||
333 | alternative interfaces - it allows the developer to fetch the | ||
334 | possible values for a given input element on-demand. This | ||
335 | on-demand capability is especially valuable for elements that | ||
336 | require relatively expensive remote operations to fulfill, such as | ||
337 | the example that returns the set of branches available in a remote | ||
338 | git tree above. | ||
339 | |||
340 | """ | ||
341 | |||
342 | ## | ||
343 | # yocto-kernel help and usage strings | ||
344 | ## | ||
345 | |||
346 | yocto_kernel_usage = """ | ||
347 | |||
348 | Modify and list Yocto BSP kernel config items and patches. | ||
349 | |||
350 | usage: yocto-kernel [--version] [--help] COMMAND [ARGS] | ||
351 | |||
352 | Current 'yocto-kernel' commands are: | ||
353 | config list List the modifiable set of bare kernel config options for a BSP | ||
354 | config add Add or modify bare kernel config options for a BSP | ||
355 | config rm Remove bare kernel config options from a BSP | ||
356 | patch list List the patches associated with a BSP | ||
357 | patch add Patch the Yocto kernel for a BSP | ||
358 | patch rm Remove patches from a BSP | ||
359 | feature list List the features used by a BSP | ||
360 | feature add Have a BSP use a feature | ||
361 | feature rm Have a BSP stop using a feature | ||
362 | features list List the features available to BSPs | ||
363 | feature describe Describe a particular feature | ||
364 | feature create Create a new BSP-local feature | ||
365 | feature destroy Remove a BSP-local feature | ||
366 | |||
367 | See 'yocto-kernel help COMMAND' for more information on a specific command. | ||
368 | |||
369 | """ | ||
370 | |||
371 | |||
372 | yocto_kernel_help_usage = """ | ||
373 | |||
374 | usage: yocto-kernel help <subcommand> | ||
375 | |||
376 | This command displays detailed help for the specified subcommand. | ||
377 | """ | ||
378 | |||
379 | yocto_kernel_config_list_usage = """ | ||
380 | |||
381 | List the modifiable set of bare kernel config options for a BSP | ||
382 | |||
383 | usage: yocto-kernel config list <bsp-name> | ||
384 | |||
385 | This command lists the 'modifiable' config items for a BSP i.e. the | ||
386 | items which are eligible for modification or removal by other | ||
387 | yocto-kernel commands. | ||
388 | |||
389 | 'modifiable' config items are the config items contained a BSP's | ||
390 | user-config.cfg base config. | ||
391 | """ | ||
392 | |||
393 | |||
394 | yocto_kernel_config_list_help = """ | ||
395 | |||
396 | NAME | ||
397 | yocto-kernel config list - List the modifiable set of bare kernel | ||
398 | config options for a BSP | ||
399 | |||
400 | SYNOPSIS | ||
401 | yocto-kernel config list <bsp-name> | ||
402 | |||
403 | DESCRIPTION | ||
404 | This command lists the 'modifiable' config items for a BSP | ||
405 | i.e. the items which are eligible for modification or removal by | ||
406 | other yocto-kernel commands. | ||
407 | """ | ||
408 | |||
409 | |||
410 | yocto_kernel_config_add_usage = """ | ||
411 | |||
412 | Add or modify bare kernel config options for a BSP | ||
413 | |||
414 | usage: yocto-kernel config add <bsp-name> [<CONFIG_XXX=x> ...] | ||
415 | |||
416 | This command adds one or more CONFIG_XXX=x items to a BSP's user-config.cfg | ||
417 | base config. | ||
418 | """ | ||
419 | |||
420 | |||
421 | yocto_kernel_config_add_help = """ | ||
422 | |||
423 | NAME | ||
424 | yocto-kernel config add - Add or modify bare kernel config options | ||
425 | for a BSP | ||
426 | |||
427 | SYNOPSIS | ||
428 | yocto-kernel config add <bsp-name> [<CONFIG_XXX=x> ...] | ||
429 | |||
430 | DESCRIPTION | ||
431 | This command adds one or more CONFIG_XXX=x items to a BSP's | ||
432 | foo.cfg base config. | ||
433 | |||
434 | NOTE: It's up to the user to determine whether or not the config | ||
435 | options being added make sense or not - this command does no | ||
436 | sanity checking or verification of any kind to ensure that a | ||
437 | config option really makes sense and will actually be set in in | ||
438 | the final config. For example, if a config option depends on | ||
439 | other config options, it will be turned off by kconfig if the | ||
440 | other options aren't set correctly. | ||
441 | """ | ||
442 | |||
443 | |||
444 | yocto_kernel_config_rm_usage = """ | ||
445 | |||
446 | Remove bare kernel config options from a BSP | ||
447 | |||
448 | usage: yocto-kernel config rm <bsp-name> | ||
449 | |||
450 | This command removes (turns off) one or more CONFIG_XXX items from a | ||
451 | BSP's user-config.cfg base config. | ||
452 | |||
453 | The set of config items available to be removed by this command for a | ||
454 | BSP is listed and the user prompted for the specific items to remove. | ||
455 | """ | ||
456 | |||
457 | |||
458 | yocto_kernel_config_rm_help = """ | ||
459 | |||
460 | NAME | ||
461 | yocto-kernel config rm - Remove bare kernel config options from a | ||
462 | BSP | ||
463 | |||
464 | SYNOPSIS | ||
465 | yocto-kernel config rm <bsp-name> | ||
466 | |||
467 | DESCRIPTION | ||
468 | This command removes (turns off) one or more CONFIG_XXX items from a | ||
469 | BSP's user-config.cfg base config. | ||
470 | |||
471 | The set of config items available to be removed by this command | ||
472 | for a BSP is listed and the user prompted for the specific items | ||
473 | to remove. | ||
474 | """ | ||
475 | |||
476 | |||
477 | yocto_kernel_patch_list_usage = """ | ||
478 | |||
479 | List the patches associated with the kernel for a BSP | ||
480 | |||
481 | usage: yocto-kernel patch list <bsp-name> | ||
482 | |||
483 | This command lists the patches associated with a BSP. | ||
484 | |||
485 | NOTE: this only applies to patches listed in the kernel recipe's | ||
486 | user-patches.scc file (and currently repeated in its SRC_URI). | ||
487 | """ | ||
488 | |||
489 | |||
490 | yocto_kernel_patch_list_help = """ | ||
491 | |||
492 | NAME | ||
493 | yocto-kernel patch list - List the patches associated with the kernel | ||
494 | for a BSP | ||
495 | |||
496 | SYNOPSIS | ||
497 | yocto-kernel patch list <bsp-name> | ||
498 | |||
499 | DESCRIPTION | ||
500 | This command lists the patches associated with a BSP. | ||
501 | |||
502 | NOTE: this only applies to patches listed in the kernel recipe's | ||
503 | user-patches.scc file (and currently repeated in its SRC_URI). | ||
504 | """ | ||
505 | |||
506 | |||
507 | yocto_kernel_patch_add_usage = """ | ||
508 | |||
509 | Patch the Yocto kernel for a specific BSP | ||
510 | |||
511 | usage: yocto-kernel patch add <bsp-name> [<PATCH> ...] | ||
512 | |||
513 | This command adds one or more patches to a BSP's machine branch. The | ||
514 | patch will be added to the BSP's linux-yocto kernel user-patches.scc | ||
515 | file (and currently repeated in its SRC_URI) and will be guaranteed | ||
516 | to be applied in the order specified. | ||
517 | """ | ||
518 | |||
519 | |||
520 | yocto_kernel_patch_add_help = """ | ||
521 | |||
522 | NAME | ||
523 | yocto-kernel patch add - Patch the Yocto kernel for a specific BSP | ||
524 | |||
525 | SYNOPSIS | ||
526 | yocto-kernel patch add <bsp-name> [<PATCH> ...] | ||
527 | |||
528 | DESCRIPTION | ||
529 | This command adds one or more patches to a BSP's machine branch. | ||
530 | The patch will be added to the BSP's linux-yocto kernel | ||
531 | user-patches.scc file (and currently repeated in its SRC_URI) and | ||
532 | will be guaranteed to be applied in the order specified. | ||
533 | |||
534 | NOTE: It's up to the user to determine whether or not the patches | ||
535 | being added makes sense or not - this command does no sanity | ||
536 | checking or verification of any kind to ensure that a patch can | ||
537 | actually be applied to the BSP's kernel branch; it's assumed that | ||
538 | the user has already done that. | ||
539 | """ | ||
540 | |||
541 | |||
542 | yocto_kernel_patch_rm_usage = """ | ||
543 | |||
544 | Remove a patch from the Yocto kernel for a specific BSP | ||
545 | |||
546 | usage: yocto-kernel patch rm <bsp-name> | ||
547 | |||
548 | This command removes one or more patches from a BSP's machine branch. | ||
549 | The patch will be removed from the BSP's linux-yocto kernel | ||
550 | user-patches.scc file (and currently repeated in its SRC_URI) and | ||
551 | kernel SRC_URI dir. | ||
552 | |||
553 | The set of patches available to be removed by this command for a BSP | ||
554 | is listed and the user prompted for the specific patches to remove. | ||
555 | """ | ||
556 | |||
557 | |||
558 | yocto_kernel_patch_rm_help = """ | ||
559 | |||
560 | NAME | ||
561 | yocto-kernel patch rm - Remove a patch from the Yocto kernel for a specific BSP | ||
562 | |||
563 | SYNOPSIS | ||
564 | yocto-kernel patch rm <bsp-name> | ||
565 | |||
566 | DESCRIPTION | ||
567 | This command removes one or more patches from a BSP's machine | ||
568 | branch. The patch will be removed from the BSP's linux-yocto | ||
569 | kernel user-patches.scc file (and currently repeated in its | ||
570 | SRC_URI). | ||
571 | |||
572 | The set of patches available to be removed by this command for a | ||
573 | BSP is listed and the user prompted for the specific patches to | ||
574 | remove. | ||
575 | """ | ||
576 | |||
577 | yocto_kernel_feature_list_usage = """ | ||
578 | |||
579 | List the BSP features that are being used by a BSP | ||
580 | |||
581 | usage: yocto-kernel feature list <bsp-name> | ||
582 | |||
583 | This command lists the features being used by a BSP i.e. the features | ||
584 | which are eligible for modification or removal by other yocto-kernel | ||
585 | commands. | ||
586 | |||
587 | 'modifiable' features are the features listed in a BSP's | ||
588 | user-features.scc file. | ||
589 | """ | ||
590 | |||
591 | |||
592 | yocto_kernel_feature_list_help = """ | ||
593 | |||
594 | NAME | ||
595 | yocto-kernel feature list - List the modifiable set of features | ||
596 | being used by a BSP | ||
597 | |||
598 | SYNOPSIS | ||
599 | yocto-kernel feature list <bsp-name> | ||
600 | |||
601 | DESCRIPTION | ||
602 | This command lists the 'modifiable' features being used by a BSP | ||
603 | i.e. the features which are eligible for modification or removal | ||
604 | by other yocto-kernel commands. | ||
605 | """ | ||
606 | |||
607 | |||
608 | yocto_kernel_feature_add_usage = """ | ||
609 | |||
610 | Add to or modify the list of features being used for a BSP | ||
611 | |||
612 | usage: yocto-kernel feature add <bsp-name> [/xxxx/yyyy/feature.scc ...] | ||
613 | |||
614 | This command adds one or more feature items to a BSP's kernel | ||
615 | user-features.scc file, which is the file used to manage features in | ||
616 | a yocto-bsp-generated BSP. Features to be added must be specified as | ||
617 | fully-qualified feature names. | ||
618 | """ | ||
619 | |||
620 | |||
621 | yocto_kernel_feature_add_help = """ | ||
622 | |||
623 | NAME | ||
624 | yocto-kernel feature add - Add to or modify the list of features | ||
625 | being used for a BSP | ||
626 | |||
627 | SYNOPSIS | ||
628 | yocto-kernel feature add <bsp-name> [/xxxx/yyyy/feature.scc ...] | ||
629 | |||
630 | DESCRIPTION | ||
631 | This command adds one or more feature items to a BSP's | ||
632 | user-features.scc file, which is the file used to manage features | ||
633 | in a yocto-bsp-generated BSP. Features to be added must be | ||
634 | specified as fully-qualified feature names. | ||
635 | """ | ||
636 | |||
637 | |||
638 | yocto_kernel_feature_rm_usage = """ | ||
639 | |||
640 | Remove a feature from the list of features being used for a BSP | ||
641 | |||
642 | usage: yocto-kernel feature rm <bsp-name> | ||
643 | |||
644 | This command removes (turns off) one or more features from a BSP's | ||
645 | user-features.scc file, which is the file used to manage features in | ||
646 | a yocto-bsp-generated BSP. | ||
647 | |||
648 | The set of features available to be removed by this command for a BSP | ||
649 | is listed and the user prompted for the specific items to remove. | ||
650 | """ | ||
651 | |||
652 | |||
653 | yocto_kernel_feature_rm_help = """ | ||
654 | |||
655 | NAME | ||
656 | yocto-kernel feature rm - Remove a feature from the list of | ||
657 | features being used for a BSP | ||
658 | |||
659 | SYNOPSIS | ||
660 | yocto-kernel feature rm <bsp-name> | ||
661 | |||
662 | DESCRIPTION | ||
663 | This command removes (turns off) one or more features from a BSP's | ||
664 | user-features.scc file, which is the file used to manage features | ||
665 | in a yocto-bsp-generated BSP. | ||
666 | |||
667 | The set of features available to be removed by this command for a | ||
668 | BSP is listed and the user prompted for the specific items to | ||
669 | remove. | ||
670 | """ | ||
671 | |||
672 | |||
673 | yocto_kernel_available_features_list_usage = """ | ||
674 | |||
675 | List the set of kernel features available to a BSP | ||
676 | |||
677 | usage: yocto-kernel features list <bsp-name> | ||
678 | |||
679 | This command lists the complete set of kernel features available to a | ||
680 | BSP. This includes the features contained in linux-yocto meta | ||
681 | branches as well as recipe-space features defined locally to the BSP. | ||
682 | """ | ||
683 | |||
684 | |||
685 | yocto_kernel_available_features_list_help = """ | ||
686 | |||
687 | NAME | ||
688 | yocto-kernel features list - List the set of kernel features | ||
689 | available to a BSP | ||
690 | |||
691 | SYNOPSIS | ||
692 | yocto-kernel features list <bsp-name> | ||
693 | |||
694 | DESCRIPTION | ||
695 | This command lists the complete set of kernel features available | ||
696 | to a BSP. This includes the features contained in linux-yocto | ||
697 | meta branches as well as recipe-space features defined locally to | ||
698 | the BSP. | ||
699 | """ | ||
700 | |||
701 | |||
702 | yocto_kernel_feature_describe_usage = """ | ||
703 | |||
704 | Print the description and compatibility information for a given kernel feature | ||
705 | |||
706 | usage: yocto-kernel feature describe <bsp-name> [/xxxx/yyyy/feature.scc ...] | ||
707 | |||
708 | This command prints the description and compatibility of a specific | ||
709 | feature in the format 'description [compatibility]. | ||
710 | """ | ||
711 | |||
712 | |||
713 | yocto_kernel_feature_describe_help = """ | ||
714 | |||
715 | NAME | ||
716 | yocto-kernel feature describe - print the description and | ||
717 | compatibility information for a given kernel feature | ||
718 | |||
719 | SYNOPSIS | ||
720 | yocto-kernel feature describe <bsp-name> [/xxxx/yyyy/feature.scc ...] | ||
721 | |||
722 | DESCRIPTION | ||
723 | This command prints the description and compatibility of a | ||
724 | specific feature in the format 'description [compatibility]. If | ||
725 | the feature doesn't define a description or compatibility, a | ||
726 | string with generic unknown values will be printed. | ||
727 | """ | ||
728 | |||
729 | |||
730 | yocto_kernel_feature_create_usage = """ | ||
731 | |||
732 | Create a recipe-space kernel feature in a BSP | ||
733 | |||
734 | usage: yocto-kernel feature create <bsp-name> newfeature.scc \ | ||
735 | "Feature Description" capabilities [<CONFIG_XXX=x> ...] [<PATCH> ...] | ||
736 | |||
737 | This command creates a new kernel feature from the bare config | ||
738 | options and patches specified on the command-line. | ||
739 | """ | ||
740 | |||
741 | |||
742 | yocto_kernel_feature_create_help = """ | ||
743 | |||
744 | NAME | ||
745 | yocto-kernel feature create - create a recipe-space kernel feature | ||
746 | in a BSP | ||
747 | |||
748 | SYNOPSIS | ||
749 | yocto-kernel feature create <bsp-name> newfeature.scc \ | ||
750 | "Feature Description" capabilities [<CONFIG_XXX=x> ...] [<PATCH> ...] | ||
751 | |||
752 | DESCRIPTION | ||
753 | This command creates a new kernel feature from the bare config | ||
754 | options and patches specified on the command-line. The new | ||
755 | feature will be created in recipe-space, specifically in either | ||
756 | the kernel .bbappend's /files/cfg or /files/features subdirectory, | ||
757 | depending on whether or not the feature contains config items only | ||
758 | or config items along with patches. The named feature must end | ||
759 | with .scc and must not contain a feature directory to contain the | ||
760 | feature (this will be determined automatically), and a feature | ||
761 | description in double-quotes along with a capabilities string | ||
762 | (which for the time being can be one of: 'all' or 'board'). | ||
763 | """ | ||
764 | |||
765 | |||
766 | yocto_kernel_feature_destroy_usage = """ | ||
767 | |||
768 | Destroy a recipe-space kernel feature in a BSP | ||
769 | |||
770 | usage: yocto-kernel feature destroy <bsp-name> feature.scc | ||
771 | |||
772 | This command destroys a kernel feature defined in the specified BSP's | ||
773 | recipe-space kernel definition. | ||
774 | """ | ||
775 | |||
776 | |||
777 | yocto_kernel_feature_destroy_help = """ | ||
778 | |||
779 | NAME | ||
780 | yocto-kernel feature destroy <bsp-name> feature.scc - destroy a | ||
781 | recipe-space kernel feature in a BSP | ||
782 | |||
783 | SYNOPSIS | ||
784 | yocto-kernel feature destroy <bsp-name> feature.scc | ||
785 | |||
786 | DESCRIPTION | ||
787 | This command destroys a kernel feature defined in the specified | ||
788 | BSP's recipe-space kernel definition. The named feature must end | ||
789 | with .scc and must not contain a feature directory to contain the | ||
790 | feature (this will be determined automatically). If the kernel | ||
791 | feature is in use by a BSP, it can't be removed until the BSP | ||
792 | stops using it (see yocto-kernel feature rm to stop using it). | ||
793 | """ | ||
794 | |||
795 | ## | ||
796 | # yocto-layer help and usage strings | ||
797 | ## | ||
798 | |||
799 | yocto_layer_usage = """ | ||
800 | |||
801 | Create a generic Yocto layer. | ||
802 | |||
803 | usage: yocto-layer [--version] [--help] COMMAND [ARGS] | ||
804 | |||
805 | Current 'yocto-layer' commands are: | ||
806 | create Create a new generic Yocto layer | ||
807 | list List available values for input options and properties | ||
808 | |||
809 | See 'yocto-layer help COMMAND' for more information on a specific command. | ||
810 | """ | ||
811 | |||
812 | yocto_layer_help_usage = """ | ||
813 | |||
814 | usage: yocto-layer help <subcommand> | ||
815 | |||
816 | This command displays detailed help for the specified subcommand. | ||
817 | """ | ||
818 | |||
819 | yocto_layer_create_usage = """ | ||
820 | |||
821 | WARNING: this plugin will be removed starting 2.5 development in favour | ||
822 | of using 'bitbake-layers create-layer' script/plugin, offering a single | ||
823 | script to manage layers. | ||
824 | |||
825 | Create a new generic Yocto layer | ||
826 | |||
827 | usage: yocto-layer create <layer-name> [layer_priority] | ||
828 | [-o <DIRNAME> | --outdir <DIRNAME>] | ||
829 | [-i <JSON PROPERTY FILE> | --infile <JSON PROPERTY_FILE>] | ||
830 | |||
831 | This command creates a generic Yocto layer based on the specified | ||
832 | parameters. The new layer will be a new Yocto layer contained by | ||
833 | default within the top-level directory specified as | ||
834 | 'meta-layer-name'. The -o option can be used to place the layer in a | ||
835 | directory with a different name and location. | ||
836 | |||
837 | If layer_priority is specified, a simple layer will be created using | ||
838 | the given layer priority, and the user will not be prompted for | ||
839 | further input. | ||
840 | |||
841 | NOTE: Once created, you should add your new layer to your | ||
842 | bblayers.conf file in order for it to be subsequently seen and | ||
843 | modified by the yocto-kernel tool. Instructions for doing this can | ||
844 | be found in the README file generated in the layer's top-level | ||
845 | directory. | ||
846 | |||
847 | See 'yocto layer help create' for more detailed instructions. | ||
848 | """ | ||
849 | |||
850 | yocto_layer_create_help = """ | ||
851 | |||
852 | WARNING: this plugin will be removed starting 2.5 development in favour | ||
853 | of using 'bitbake-layers create-layer' script/plugin, offering a single | ||
854 | script to manage layers. | ||
855 | |||
856 | NAME | ||
857 | yocto-layer create - Create a new generic Yocto layer | ||
858 | |||
859 | SYNOPSIS | ||
860 | yocto-layer create <layer-name> [layer_priority] | ||
861 | [-o <DIRNAME> | --outdir <DIRNAME>] | ||
862 | [-i <JSON PROPERTY FILE> | --infile <JSON PROPERTY_FILE>] | ||
863 | |||
864 | DESCRIPTION | ||
865 | This command creates a generic Yocto layer based on the specified | ||
866 | parameters. The new layer will be a new Yocto layer contained by | ||
867 | default within the top-level directory specified as | ||
868 | 'meta-layer-name'. The -o option can be used to place the layer | ||
869 | in a directory with a different name and location. | ||
870 | |||
871 | If layer_priority is specified, a simple layer will be created | ||
872 | using the given layer priority, and the user will not be prompted | ||
873 | for further input. | ||
874 | |||
875 | The layer-specific properties that define the values that will be | ||
876 | used to generate the layer can be specified on the command-line | ||
877 | using the -i option and supplying a JSON object consisting of the | ||
878 | set of name:value pairs needed by the layer. | ||
879 | |||
880 | If the -i option is not used, the user will be interactively | ||
881 | prompted for each of the required property values, which will then | ||
882 | be used as values for layer generation. | ||
883 | |||
884 | The set of properties available can be listed using the | ||
885 | 'yocto-layer list' command. | ||
886 | |||
887 | Specifying -c causes the Python code generated and executed to | ||
888 | create the layer to be dumped to the 'bspgen.out' file in the | ||
889 | current directory, and is useful for debugging. | ||
890 | |||
891 | NOTE: Once created, you should add your new layer to your | ||
892 | bblayers.conf file in order for it to be subsequently seen and | ||
893 | modified by the yocto-kernel tool. Instructions for doing this | ||
894 | can be found in the README file generated in the layer's top-level | ||
895 | directory. | ||
896 | |||
897 | For example, assuming your poky repo is at /path/to/poky, your new | ||
898 | layer is at /path/to/poky/meta-mylayer, and your build directory | ||
899 | is /path/to/build: | ||
900 | |||
901 | $ gedit /path/to/build/conf/bblayers.conf | ||
902 | |||
903 | BBLAYERS ?= " \\ | ||
904 | /path/to/poky/meta \\ | ||
905 | /path/to/poky/meta-yocto \\ | ||
906 | /path/to/poky/meta-mylayer \\ | ||
907 | " | ||
908 | """ | ||
909 | |||
910 | yocto_layer_list_usage = """ | ||
911 | |||
912 | usage: yocto-layer list properties | ||
913 | [-o <JSON PROPERTY FILE> | --outfile <JSON PROPERTY_FILE>] | ||
914 | yocto-layer list property <xxx> | ||
915 | [-o <JSON PROPERTY FILE> | --outfile <JSON PROPERTY_FILE>] | ||
916 | |||
917 | This command enumerates the complete set of possible values for a | ||
918 | specified option or property needed by the layer creation process. | ||
919 | |||
920 | The first form enumerates all the possible properties that exist and | ||
921 | must have values specified for them in the 'yocto-layer create' | ||
922 | command. | ||
923 | |||
924 | The second form enumerates all the possible values that exist and can | ||
925 | be specified for any of the enumerable properties in the 'yocto-layer | ||
926 | create' command. | ||
927 | |||
928 | See 'yocto-layer help list' for more details. | ||
929 | """ | ||
930 | |||
931 | yocto_layer_list_help = """ | ||
932 | |||
933 | NAME | ||
934 | yocto-layer list - List available values for layer input options and properties | ||
935 | |||
936 | SYNOPSIS | ||
937 | yocto-layer list properties | ||
938 | [--o <JSON PROPERTY FILE> | -outfile <JSON PROPERTY_FILE>] | ||
939 | yocto-layer list property <xxx> | ||
940 | [--o <JSON PROPERTY FILE> | -outfile <JSON PROPERTY_FILE>] | ||
941 | |||
942 | DESCRIPTION | ||
943 | This command enumerates the complete set of possible values for a | ||
944 | specified option or property needed by the layer creation process. | ||
945 | |||
946 | The first form enumerates all the possible properties that exist | ||
947 | and must have values specified for them in the 'yocto-layer | ||
948 | create' command. This command is mainly meant to aid the | ||
949 | development of user interface alternatives to the default | ||
950 | text-based prompting interface. If the -o option is specified, | ||
951 | the list of properties, in addition to being displayed, will be | ||
952 | written to the specified file as a JSON object. In this case, the | ||
953 | object will consist of the set of name:value pairs corresponding | ||
954 | to the (possibly nested) dictionary of properties defined by the | ||
955 | input statements used by the BSP. Some example output for the | ||
956 | 'list properties' command: | ||
957 | |||
958 | $ yocto-layer list properties | ||
959 | "example_bbappend_name" : { | ||
960 | "default" : example | ||
961 | "msg" : Please enter the name you'd like to use for your bbappend file: | ||
962 | "type" : edit | ||
963 | "prio" : 20 | ||
964 | "filename" : /home/trz/yocto/yocto-layer-dev/scripts/lib/bsp/substrate/target/arch/layer/layer-questions.noinstall | ||
965 | } | ||
966 | "create_example_recipe" : { | ||
967 | "default" : n | ||
968 | "msg" : Would you like to have an example recipe created? (y/n) | ||
969 | "type" : boolean | ||
970 | "prio" : 20 | ||
971 | "filename" : /home/trz/yocto/yocto-layer-dev/scripts/lib/bsp/substrate/target/arch/layer/layer-questions.noinstall | ||
972 | } | ||
973 | "example_recipe_name" : { | ||
974 | "default" : example | ||
975 | "msg" : Please enter the name you'd like to use for your example recipe: | ||
976 | "type" : edit | ||
977 | "prio" : 20 | ||
978 | "filename" : /home/trz/yocto/yocto-layer-dev/scripts/lib/bsp/substrate/target/arch/layer/layer-questions.noinstall | ||
979 | } | ||
980 | "layer_priority" : { | ||
981 | "default" : 6 | ||
982 | "msg" : Please enter the layer priority you'd like to use for the layer: | ||
983 | "type" : edit | ||
984 | "prio" : 20 | ||
985 | "filename" : /home/trz/yocto/yocto-layer-dev/scripts/lib/bsp/substrate/target/arch/layer/layer-questions.noinstall | ||
986 | } | ||
987 | "create_example_bbappend" : { | ||
988 | "default" : n | ||
989 | "msg" : Would you like to have an example bbappend file created? (y/n) | ||
990 | "type" : boolean | ||
991 | "prio" : 20 | ||
992 | "filename" : /home/trz/yocto/yocto-layer-dev/scripts/lib/bsp/substrate/target/arch/layer/layer-questions.noinstall | ||
993 | } | ||
994 | "example_bbappend_version" : { | ||
995 | "default" : 0.1 | ||
996 | "msg" : Please enter the version number you'd like to use for your bbappend file (this should match the recipe you're appending to): | ||
997 | "type" : edit | ||
998 | "prio" : 20 | ||
999 | "filename" : /home/trz/yocto/yocto-layer-dev/scripts/lib/bsp/substrate/target/arch/layer/layer-questions.noinstall | ||
1000 | } | ||
1001 | |||
1002 | Each entry in the output consists of the name of the input element | ||
1003 | e.g. "layer_priority", followed by the properties defined for that | ||
1004 | element enclosed in braces. This information should provide | ||
1005 | sufficient information to create a complete user interface. Two | ||
1006 | features of the scheme provide for conditional input. First, if a | ||
1007 | Python "if" statement appears in place of an input element name, | ||
1008 | the set of enclosed input elements apply and should be presented | ||
1009 | to the user only if the 'if' statement evaluates to true. The | ||
1010 | test in the if statement will always reference another input | ||
1011 | element in the list, which means that the element being tested | ||
1012 | should be presented to the user before the elements enclosed by | ||
1013 | the if block. Secondly, in a similar way, some elements contain | ||
1014 | "depends-on" and depends-on-val" tags, which mean that the | ||
1015 | affected input element should only be presented to the user if the | ||
1016 | element it depends on has already been presented to the user and | ||
1017 | the user has selected the specified value for that element. | ||
1018 | |||
1019 | The second form enumerates all the possible values that exist and | ||
1020 | can be specified for any of the enumerable properties in the | ||
1021 | 'yocto-layer create' command. If the -o option is specified, the | ||
1022 | list of values for the given property, in addition to being | ||
1023 | displayed, will be written to the specified file as a JSON object. | ||
1024 | In this case, the object will consist of the set of name:value | ||
1025 | pairs corresponding to the array of property values associated | ||
1026 | with the property. | ||
1027 | |||
1028 | $ yocto-layer list property layer_priority | ||
1029 | [no output - layer_priority is a text field that has no enumerable values] | ||
1030 | |||
1031 | The second form as well is meant mainly for developers of | ||
1032 | alternative interfaces - it allows the developer to fetch the | ||
1033 | possible values for a given input element on-demand. This | ||
1034 | on-demand capability is especially valuable for elements that | ||
1035 | require relatively expensive remote operations to fulfill, such as | ||
1036 | the example that returns the set of branches available in a remote | ||
1037 | git tree above. | ||
1038 | |||
1039 | """ | ||
1040 | |||
1041 | ## | ||
1042 | # test code | ||
1043 | ## | ||
1044 | |||
1045 | test_bsp_properties = { | ||
1046 | 'smp': 'yes', | ||
1047 | 'touchscreen': 'yes', | ||
1048 | 'keyboard': 'no', | ||
1049 | 'xserver': 'yes', | ||
1050 | 'xserver_choice': 'xserver-i915', | ||
1051 | 'features': ['goodfeature', 'greatfeature'], | ||
1052 | 'tunefile': 'tune-quark', | ||
1053 | } | ||
1054 | |||
diff --git a/scripts/lib/bsp/kernel.py b/scripts/lib/bsp/kernel.py deleted file mode 100644 index a3ee325a8f..0000000000 --- a/scripts/lib/bsp/kernel.py +++ /dev/null | |||
@@ -1,1069 +0,0 @@ | |||
1 | # ex:ts=4:sw=4:sts=4:et | ||
2 | # -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- | ||
3 | # | ||
4 | # Copyright (c) 2012, Intel Corporation. | ||
5 | # All rights reserved. | ||
6 | # | ||
7 | # This program is free software; you can redistribute it and/or modify | ||
8 | # it under the terms of the GNU General Public License version 2 as | ||
9 | # published by the Free Software Foundation. | ||
10 | # | ||
11 | # This program is distributed in the hope that it will be useful, | ||
12 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
13 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
14 | # GNU General Public License for more details. | ||
15 | # | ||
16 | # You should have received a copy of the GNU General Public License along | ||
17 | # with this program; if not, write to the Free Software Foundation, Inc., | ||
18 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. | ||
19 | # | ||
20 | # DESCRIPTION | ||
21 | # This module implements the kernel-related functions used by | ||
22 | # 'yocto-kernel' to manage kernel config items and patches for Yocto | ||
23 | # BSPs. | ||
24 | # | ||
25 | # AUTHORS | ||
26 | # Tom Zanussi <tom.zanussi (at] intel.com> | ||
27 | # | ||
28 | |||
29 | import sys | ||
30 | import os | ||
31 | import shutil | ||
32 | from .tags import * | ||
33 | import glob | ||
34 | import subprocess | ||
35 | from .engine import create_context | ||
36 | |||
37 | def find_bblayers(): | ||
38 | """ | ||
39 | Find and return a sanitized list of the layers found in BBLAYERS. | ||
40 | """ | ||
41 | try: | ||
42 | builddir = os.environ["BUILDDIR"] | ||
43 | except KeyError: | ||
44 | print("BUILDDIR not found, exiting. (Did you forget to source oe-init-build-env?)") | ||
45 | sys.exit(1) | ||
46 | bblayers_conf = os.path.join(builddir, "conf/bblayers.conf") | ||
47 | |||
48 | layers = [] | ||
49 | |||
50 | bitbake_env_cmd = "bitbake -e" | ||
51 | bitbake_env_lines = subprocess.Popen(bitbake_env_cmd, shell=True, | ||
52 | stdout=subprocess.PIPE).stdout.read().decode('utf-8') | ||
53 | |||
54 | if not bitbake_env_lines: | ||
55 | print("Couldn't get '%s' output, exiting." % bitbake_env_cmd) | ||
56 | sys.exit(1) | ||
57 | |||
58 | for line in bitbake_env_lines.split('\n'): | ||
59 | bblayers = get_line_val(line, "BBLAYERS") | ||
60 | if (bblayers): | ||
61 | break | ||
62 | |||
63 | if not bblayers: | ||
64 | print("Couldn't find BBLAYERS in %s output, exiting." % bitbake_env_cmd) | ||
65 | sys.exit(1) | ||
66 | |||
67 | raw_layers = bblayers.split() | ||
68 | |||
69 | for layer in raw_layers: | ||
70 | if layer == 'BBLAYERS' or '=' in layer: | ||
71 | continue | ||
72 | layers.append(layer) | ||
73 | |||
74 | return layers | ||
75 | |||
76 | |||
77 | def get_line_val(line, key): | ||
78 | """ | ||
79 | Extract the value from the VAR="val" string | ||
80 | """ | ||
81 | if line.startswith(key + "="): | ||
82 | stripped_line = line.split('=')[1] | ||
83 | stripped_line = stripped_line.replace('\"', '') | ||
84 | return stripped_line | ||
85 | return None | ||
86 | |||
87 | |||
88 | def find_meta_layer(): | ||
89 | """ | ||
90 | Find and return the meta layer in BBLAYERS. | ||
91 | """ | ||
92 | layers = find_bblayers() | ||
93 | |||
94 | for layer in layers: | ||
95 | if layer.endswith("meta"): | ||
96 | return layer | ||
97 | |||
98 | return None | ||
99 | |||
100 | |||
101 | def find_bsp_layer(machine): | ||
102 | """ | ||
103 | Find and return a machine's BSP layer in BBLAYERS. | ||
104 | """ | ||
105 | layers = find_bblayers() | ||
106 | |||
107 | for layer in layers: | ||
108 | if layer.endswith(machine): | ||
109 | return layer | ||
110 | |||
111 | print("Unable to find the BSP layer for machine %s." % machine) | ||
112 | print("Please make sure it is listed in bblayers.conf") | ||
113 | sys.exit(1) | ||
114 | |||
115 | |||
116 | def gen_choices_str(choices): | ||
117 | """ | ||
118 | Generate a numbered list of choices from a list of choices for | ||
119 | display to the user. | ||
120 | """ | ||
121 | choices_str = "" | ||
122 | |||
123 | for i, choice in enumerate(choices): | ||
124 | choices_str += "\t" + str(i + 1) + ") " + choice + "\n" | ||
125 | |||
126 | return choices_str | ||
127 | |||
128 | |||
129 | def open_user_file(scripts_path, machine, userfile, mode): | ||
130 | """ | ||
131 | Find one of the user files (user-config.cfg, user-patches.scc) | ||
132 | associated with the machine (could be in files/, | ||
133 | linux-yocto-custom/, etc). Returns the open file if found, None | ||
134 | otherwise. | ||
135 | |||
136 | The caller is responsible for closing the file returned. | ||
137 | """ | ||
138 | layer = find_bsp_layer(machine) | ||
139 | linuxdir = os.path.join(layer, "recipes-kernel/linux") | ||
140 | linuxdir_list = os.listdir(linuxdir) | ||
141 | for fileobj in linuxdir_list: | ||
142 | fileobj_path = os.path.join(linuxdir, fileobj) | ||
143 | if os.path.isdir(fileobj_path): | ||
144 | userfile_name = os.path.join(fileobj_path, userfile) | ||
145 | try: | ||
146 | f = open(userfile_name, mode) | ||
147 | return f | ||
148 | except IOError: | ||
149 | continue | ||
150 | return None | ||
151 | |||
152 | |||
153 | def read_config_items(scripts_path, machine): | ||
154 | """ | ||
155 | Find and return a list of config items (CONFIG_XXX) in a machine's | ||
156 | user-defined config fragment [${machine}-user-config.cfg]. | ||
157 | """ | ||
158 | config_items = [] | ||
159 | |||
160 | f = open_user_file(scripts_path, machine, machine+"-user-config.cfg", "r") | ||
161 | lines = f.readlines() | ||
162 | for line in lines: | ||
163 | s = line.strip() | ||
164 | if s and not s.startswith("#"): | ||
165 | config_items.append(s) | ||
166 | f.close() | ||
167 | |||
168 | return config_items | ||
169 | |||
170 | |||
171 | def write_config_items(scripts_path, machine, config_items): | ||
172 | """ | ||
173 | Write (replace) the list of config items (CONFIG_XXX) in a | ||
174 | machine's user-defined config fragment [${machine}=user-config.cfg]. | ||
175 | """ | ||
176 | f = open_user_file(scripts_path, machine, machine+"-user-config.cfg", "w") | ||
177 | for item in config_items: | ||
178 | f.write(item + "\n") | ||
179 | f.close() | ||
180 | |||
181 | kernel_contents_changed(scripts_path, machine) | ||
182 | |||
183 | |||
184 | def yocto_kernel_config_list(scripts_path, machine): | ||
185 | """ | ||
186 | Display the list of config items (CONFIG_XXX) in a machine's | ||
187 | user-defined config fragment [${machine}-user-config.cfg]. | ||
188 | """ | ||
189 | config_items = read_config_items(scripts_path, machine) | ||
190 | |||
191 | print("The current set of machine-specific kernel config items for %s is:" % machine) | ||
192 | print(gen_choices_str(config_items)) | ||
193 | |||
194 | |||
195 | def yocto_kernel_config_rm(scripts_path, machine): | ||
196 | """ | ||
197 | Display the list of config items (CONFIG_XXX) in a machine's | ||
198 | user-defined config fragment [${machine}-user-config.cfg], prompt the user | ||
199 | for one or more to remove, and remove them. | ||
200 | """ | ||
201 | config_items = read_config_items(scripts_path, machine) | ||
202 | |||
203 | print("Specify the kernel config items to remove:") | ||
204 | inp = input(gen_choices_str(config_items)) | ||
205 | rm_choices = inp.split() | ||
206 | rm_choices.sort() | ||
207 | |||
208 | removed = [] | ||
209 | |||
210 | for choice in reversed(rm_choices): | ||
211 | try: | ||
212 | idx = int(choice) - 1 | ||
213 | except ValueError: | ||
214 | print("Invalid choice (%s), exiting" % choice) | ||
215 | sys.exit(1) | ||
216 | if idx < 0 or idx >= len(config_items): | ||
217 | print("Invalid choice (%d), exiting" % (idx + 1)) | ||
218 | sys.exit(1) | ||
219 | removed.append(config_items.pop(idx)) | ||
220 | |||
221 | write_config_items(scripts_path, machine, config_items) | ||
222 | |||
223 | print("Removed items:") | ||
224 | for r in removed: | ||
225 | print("\t%s" % r) | ||
226 | |||
227 | |||
228 | def yocto_kernel_config_add(scripts_path, machine, config_items): | ||
229 | """ | ||
230 | Add one or more config items (CONFIG_XXX) to a machine's | ||
231 | user-defined config fragment [${machine}-user-config.cfg]. | ||
232 | """ | ||
233 | new_items = [] | ||
234 | dup_items = [] | ||
235 | |||
236 | cur_items = read_config_items(scripts_path, machine) | ||
237 | |||
238 | for item in config_items: | ||
239 | if not item.startswith("CONFIG") or (not "=y" in item and not "=m" in item): | ||
240 | print("Invalid config item (%s), exiting" % item) | ||
241 | sys.exit(1) | ||
242 | if item not in cur_items and item not in new_items: | ||
243 | new_items.append(item) | ||
244 | else: | ||
245 | dup_items.append(item) | ||
246 | |||
247 | if len(new_items) > 0: | ||
248 | cur_items.extend(new_items) | ||
249 | write_config_items(scripts_path, machine, cur_items) | ||
250 | print("Added item%s:" % ("" if len(new_items)==1 else "s")) | ||
251 | for n in new_items: | ||
252 | print("\t%s" % n) | ||
253 | |||
254 | if len(dup_items) > 0: | ||
255 | output="The following item%s already exist%s in the current configuration, ignoring %s:" % \ | ||
256 | (("","s", "it") if len(dup_items)==1 else ("s", "", "them" )) | ||
257 | print(output) | ||
258 | for n in dup_items: | ||
259 | print("\t%s" % n) | ||
260 | |||
261 | def find_current_kernel(bsp_layer, machine): | ||
262 | """ | ||
263 | Determine the kernel and version currently being used in the BSP. | ||
264 | """ | ||
265 | machine_conf = os.path.join(bsp_layer, "conf/machine/" + machine + ".conf") | ||
266 | |||
267 | preferred_kernel = preferred_kernel_version = preferred_version_varname = None | ||
268 | |||
269 | f = open(machine_conf, "r") | ||
270 | lines = f.readlines() | ||
271 | for line in lines: | ||
272 | if line.strip().startswith("PREFERRED_PROVIDER_virtual/kernel"): | ||
273 | preferred_kernel = line.split()[-1] | ||
274 | preferred_kernel = preferred_kernel.replace('\"','') | ||
275 | preferred_version_varname = "PREFERRED_VERSION_" + preferred_kernel | ||
276 | if preferred_version_varname and line.strip().startswith(preferred_version_varname): | ||
277 | preferred_kernel_version = line.split()[-1] | ||
278 | preferred_kernel_version = preferred_kernel_version.replace('\"','') | ||
279 | preferred_kernel_version = preferred_kernel_version.replace('%','') | ||
280 | |||
281 | if preferred_kernel and preferred_kernel_version: | ||
282 | return preferred_kernel + "_" + preferred_kernel_version | ||
283 | elif preferred_kernel: | ||
284 | return preferred_kernel | ||
285 | |||
286 | |||
287 | def find_filesdir(scripts_path, machine): | ||
288 | """ | ||
289 | Find the name of the 'files' dir associated with the machine | ||
290 | (could be in files/, linux-yocto-custom/, etc). Returns the name | ||
291 | of the files dir if found, None otherwise. | ||
292 | """ | ||
293 | layer = find_bsp_layer(machine) | ||
294 | filesdir = None | ||
295 | linuxdir = os.path.join(layer, "recipes-kernel/linux") | ||
296 | linuxdir_list = os.listdir(linuxdir) | ||
297 | for fileobj in linuxdir_list: | ||
298 | fileobj_path = os.path.join(linuxdir, fileobj) | ||
299 | if os.path.isdir(fileobj_path): | ||
300 | # this could be files/ or linux-yocto-custom/, we have no way of distinguishing | ||
301 | # so we take the first (and normally only) dir we find as the 'filesdir' | ||
302 | filesdir = fileobj_path | ||
303 | |||
304 | return filesdir | ||
305 | |||
306 | |||
307 | def read_patch_items(scripts_path, machine): | ||
308 | """ | ||
309 | Find and return a list of patch items in a machine's user-defined | ||
310 | patch list [${machine}-user-patches.scc]. | ||
311 | """ | ||
312 | patch_items = [] | ||
313 | |||
314 | f = open_user_file(scripts_path, machine, machine+"-user-patches.scc", "r") | ||
315 | lines = f.readlines() | ||
316 | for line in lines: | ||
317 | s = line.strip() | ||
318 | if s and not s.startswith("#"): | ||
319 | fields = s.split() | ||
320 | if not fields[0] == "patch": | ||
321 | continue | ||
322 | patch_items.append(fields[1]) | ||
323 | f.close() | ||
324 | |||
325 | return patch_items | ||
326 | |||
327 | |||
328 | def write_patch_items(scripts_path, machine, patch_items): | ||
329 | """ | ||
330 | Write (replace) the list of patches in a machine's user-defined | ||
331 | patch list [${machine}-user-patches.scc]. | ||
332 | """ | ||
333 | f = open_user_file(scripts_path, machine, machine+"-user-patches.scc", "w") | ||
334 | for item in patch_items: | ||
335 | f.write("patch " + item + "\n") | ||
336 | f.close() | ||
337 | |||
338 | kernel_contents_changed(scripts_path, machine) | ||
339 | |||
340 | |||
341 | def yocto_kernel_patch_list(scripts_path, machine): | ||
342 | """ | ||
343 | Display the list of patches in a machine's user-defined patch list | ||
344 | [${machine}-user-patches.scc]. | ||
345 | """ | ||
346 | patches = read_patch_items(scripts_path, machine) | ||
347 | |||
348 | print("The current set of machine-specific patches for %s is:" % machine) | ||
349 | print(gen_choices_str(patches)) | ||
350 | |||
351 | |||
352 | def yocto_kernel_patch_rm(scripts_path, machine): | ||
353 | """ | ||
354 | Remove one or more patches from a machine's user-defined patch | ||
355 | list [${machine}-user-patches.scc]. | ||
356 | """ | ||
357 | patches = read_patch_items(scripts_path, machine) | ||
358 | |||
359 | print("Specify the patches to remove:") | ||
360 | inp = input(gen_choices_str(patches)) | ||
361 | rm_choices = inp.split() | ||
362 | rm_choices.sort() | ||
363 | |||
364 | removed = [] | ||
365 | |||
366 | filesdir = find_filesdir(scripts_path, machine) | ||
367 | if not filesdir: | ||
368 | print("Couldn't rm patch(es) since we couldn't find a 'files' dir") | ||
369 | sys.exit(1) | ||
370 | |||
371 | for choice in reversed(rm_choices): | ||
372 | try: | ||
373 | idx = int(choice) - 1 | ||
374 | except ValueError: | ||
375 | print("Invalid choice (%s), exiting" % choice) | ||
376 | sys.exit(1) | ||
377 | if idx < 0 or idx >= len(patches): | ||
378 | print("Invalid choice (%d), exiting" % (idx + 1)) | ||
379 | sys.exit(1) | ||
380 | filesdir_patch = os.path.join(filesdir, patches[idx]) | ||
381 | if os.path.isfile(filesdir_patch): | ||
382 | os.remove(filesdir_patch) | ||
383 | removed.append(patches[idx]) | ||
384 | patches.pop(idx) | ||
385 | |||
386 | write_patch_items(scripts_path, machine, patches) | ||
387 | |||
388 | print("Removed patches:") | ||
389 | for r in removed: | ||
390 | print("\t%s" % r) | ||
391 | |||
392 | |||
393 | def yocto_kernel_patch_add(scripts_path, machine, patches): | ||
394 | """ | ||
395 | Add one or more patches to a machine's user-defined patch list | ||
396 | [${machine}-user-patches.scc]. | ||
397 | """ | ||
398 | existing_patches = read_patch_items(scripts_path, machine) | ||
399 | |||
400 | for patch in patches: | ||
401 | if os.path.basename(patch) in existing_patches: | ||
402 | print("Couldn't add patch (%s) since it's already been added" % os.path.basename(patch)) | ||
403 | sys.exit(1) | ||
404 | |||
405 | filesdir = find_filesdir(scripts_path, machine) | ||
406 | if not filesdir: | ||
407 | print("Couldn't add patch (%s) since we couldn't find a 'files' dir to add it to" % os.path.basename(patch)) | ||
408 | sys.exit(1) | ||
409 | |||
410 | new_patches = [] | ||
411 | |||
412 | for patch in patches: | ||
413 | if not os.path.isfile(patch): | ||
414 | print("Couldn't find patch (%s), exiting" % patch) | ||
415 | sys.exit(1) | ||
416 | basename = os.path.basename(patch) | ||
417 | filesdir_patch = os.path.join(filesdir, basename) | ||
418 | shutil.copyfile(patch, filesdir_patch) | ||
419 | new_patches.append(basename) | ||
420 | |||
421 | cur_items = read_patch_items(scripts_path, machine) | ||
422 | cur_items.extend(new_patches) | ||
423 | write_patch_items(scripts_path, machine, cur_items) | ||
424 | |||
425 | print("Added patches:") | ||
426 | for n in new_patches: | ||
427 | print("\t%s" % n) | ||
428 | |||
429 | |||
430 | def inc_pr(line): | ||
431 | """ | ||
432 | Add 1 to the PR value in the given bbappend PR line. For the PR | ||
433 | lines in kernel .bbappends after modifications. Handles PRs of | ||
434 | the form PR := "${PR}.1" as well as PR = "r0". | ||
435 | """ | ||
436 | idx = line.find("\"") | ||
437 | |||
438 | pr_str = line[idx:] | ||
439 | pr_str = pr_str.replace('\"','') | ||
440 | fields = pr_str.split('.') | ||
441 | if len(fields) > 1: | ||
442 | fields[1] = str(int(fields[1]) + 1) | ||
443 | pr_str = "\"" + '.'.join(fields) + "\"\n" | ||
444 | else: | ||
445 | pr_val = pr_str[1:] | ||
446 | pr_str = "\"" + "r" + str(int(pr_val) + 1) + "\"\n" | ||
447 | idx2 = line.find("\"", idx + 1) | ||
448 | line = line[:idx] + pr_str | ||
449 | |||
450 | return line | ||
451 | |||
452 | |||
453 | def kernel_contents_changed(scripts_path, machine): | ||
454 | """ | ||
455 | Do what we need to do to notify the system that the kernel | ||
456 | recipe's contents have changed. | ||
457 | """ | ||
458 | layer = find_bsp_layer(machine) | ||
459 | |||
460 | kernel = find_current_kernel(layer, machine) | ||
461 | if not kernel: | ||
462 | print("Couldn't determine the kernel for this BSP, exiting.") | ||
463 | sys.exit(1) | ||
464 | |||
465 | kernel_bbfile = os.path.join(layer, "recipes-kernel/linux/" + kernel + ".bbappend") | ||
466 | if not os.path.isfile(kernel_bbfile): | ||
467 | kernel_bbfile = os.path.join(layer, "recipes-kernel/linux/" + kernel + ".bb") | ||
468 | if not os.path.isfile(kernel_bbfile): | ||
469 | return | ||
470 | kernel_bbfile_prev = kernel_bbfile + ".prev" | ||
471 | shutil.copyfile(kernel_bbfile, kernel_bbfile_prev) | ||
472 | |||
473 | ifile = open(kernel_bbfile_prev, "r") | ||
474 | ofile = open(kernel_bbfile, "w") | ||
475 | ifile_lines = ifile.readlines() | ||
476 | for ifile_line in ifile_lines: | ||
477 | if ifile_line.strip().startswith("PR"): | ||
478 | ifile_line = inc_pr(ifile_line) | ||
479 | ofile.write(ifile_line) | ||
480 | ofile.close() | ||
481 | ifile.close() | ||
482 | |||
483 | |||
484 | def kernels(context): | ||
485 | """ | ||
486 | Return the list of available kernels in the BSP i.e. corresponding | ||
487 | to the kernel .bbappends found in the layer. | ||
488 | """ | ||
489 | archdir = os.path.join(context["scripts_path"], "lib/bsp/substrate/target/arch/" + context["arch"]) | ||
490 | kerndir = os.path.join(archdir, "recipes-kernel/linux") | ||
491 | bbglob = os.path.join(kerndir, "*.bbappend") | ||
492 | |||
493 | bbappends = glob.glob(bbglob) | ||
494 | |||
495 | kernels = [] | ||
496 | |||
497 | for kernel in bbappends: | ||
498 | filename = os.path.splitext(os.path.basename(kernel))[0] | ||
499 | idx = filename.find(CLOSE_TAG) | ||
500 | if idx != -1: | ||
501 | filename = filename[idx + len(CLOSE_TAG):].strip() | ||
502 | kernels.append(filename) | ||
503 | |||
504 | kernels.append("custom") | ||
505 | |||
506 | return kernels | ||
507 | |||
508 | |||
509 | def extract_giturl(file): | ||
510 | """ | ||
511 | Extract the git url of the kernel repo from the kernel recipe's | ||
512 | SRC_URI. | ||
513 | """ | ||
514 | url = None | ||
515 | f = open(file, "r") | ||
516 | lines = f.readlines() | ||
517 | for line in lines: | ||
518 | line = line.strip() | ||
519 | if line.startswith("SRC_URI"): | ||
520 | line = line[len("SRC_URI"):].strip() | ||
521 | if line.startswith("="): | ||
522 | line = line[1:].strip() | ||
523 | if line.startswith("\""): | ||
524 | line = line[1:].strip() | ||
525 | prot = "git" | ||
526 | for s in line.split(";"): | ||
527 | if s.startswith("git://"): | ||
528 | url = s | ||
529 | if s.startswith("protocol="): | ||
530 | prot = s.split("=")[1] | ||
531 | if url: | ||
532 | url = prot + url[3:] | ||
533 | return url | ||
534 | |||
535 | |||
536 | def find_giturl(context): | ||
537 | """ | ||
538 | Find the git url of the kernel repo from the kernel recipe's | ||
539 | SRC_URI. | ||
540 | """ | ||
541 | name = context["name"] | ||
542 | filebase = context["filename"] | ||
543 | scripts_path = context["scripts_path"] | ||
544 | |||
545 | meta_layer = find_meta_layer() | ||
546 | |||
547 | kerndir = os.path.join(meta_layer, "recipes-kernel/linux") | ||
548 | bbglob = os.path.join(kerndir, "*.bb") | ||
549 | bbs = glob.glob(bbglob) | ||
550 | for kernel in bbs: | ||
551 | filename = os.path.splitext(os.path.basename(kernel))[0] | ||
552 | if filename in filebase: | ||
553 | giturl = extract_giturl(kernel) | ||
554 | return giturl | ||
555 | |||
556 | return None | ||
557 | |||
558 | |||
559 | def read_features(scripts_path, machine): | ||
560 | """ | ||
561 | Find and return a list of features in a machine's user-defined | ||
562 | features fragment [${machine}-user-features.scc]. | ||
563 | """ | ||
564 | features = [] | ||
565 | |||
566 | f = open_user_file(scripts_path, machine, machine+"-user-features.scc", "r") | ||
567 | lines = f.readlines() | ||
568 | for line in lines: | ||
569 | s = line.strip() | ||
570 | if s and not s.startswith("#"): | ||
571 | feature_include = s.split() | ||
572 | features.append(feature_include[1].strip()) | ||
573 | f.close() | ||
574 | |||
575 | return features | ||
576 | |||
577 | |||
578 | def write_features(scripts_path, machine, features): | ||
579 | """ | ||
580 | Write (replace) the list of feature items in a | ||
581 | machine's user-defined features fragment [${machine}=user-features.cfg]. | ||
582 | """ | ||
583 | f = open_user_file(scripts_path, machine, machine+"-user-features.scc", "w") | ||
584 | for item in features: | ||
585 | f.write("include " + item + "\n") | ||
586 | f.close() | ||
587 | |||
588 | kernel_contents_changed(scripts_path, machine) | ||
589 | |||
590 | |||
591 | def yocto_kernel_feature_list(scripts_path, machine): | ||
592 | """ | ||
593 | Display the list of features used in a machine's user-defined | ||
594 | features fragment [${machine}-user-features.scc]. | ||
595 | """ | ||
596 | features = read_features(scripts_path, machine) | ||
597 | |||
598 | print("The current set of machine-specific features for %s is:" % machine) | ||
599 | print(gen_choices_str(features)) | ||
600 | |||
601 | |||
602 | def yocto_kernel_feature_rm(scripts_path, machine): | ||
603 | """ | ||
604 | Display the list of features used in a machine's user-defined | ||
605 | features fragment [${machine}-user-features.scc], prompt the user | ||
606 | for one or more to remove, and remove them. | ||
607 | """ | ||
608 | features = read_features(scripts_path, machine) | ||
609 | |||
610 | print("Specify the features to remove:") | ||
611 | inp = input(gen_choices_str(features)) | ||
612 | rm_choices = inp.split() | ||
613 | rm_choices.sort() | ||
614 | |||
615 | removed = [] | ||
616 | |||
617 | for choice in reversed(rm_choices): | ||
618 | try: | ||
619 | idx = int(choice) - 1 | ||
620 | except ValueError: | ||
621 | print("Invalid choice (%s), exiting" % choice) | ||
622 | sys.exit(1) | ||
623 | if idx < 0 or idx >= len(features): | ||
624 | print("Invalid choice (%d), exiting" % (idx + 1)) | ||
625 | sys.exit(1) | ||
626 | removed.append(features.pop(idx)) | ||
627 | |||
628 | write_features(scripts_path, machine, features) | ||
629 | |||
630 | print("Removed features:") | ||
631 | for r in removed: | ||
632 | print("\t%s" % r) | ||
633 | |||
634 | |||
635 | def yocto_kernel_feature_add(scripts_path, machine, features): | ||
636 | """ | ||
637 | Add one or more features a machine's user-defined features | ||
638 | fragment [${machine}-user-features.scc]. | ||
639 | """ | ||
640 | new_items = [] | ||
641 | |||
642 | for item in features: | ||
643 | if not item.endswith(".scc"): | ||
644 | print("Invalid feature (%s), exiting" % item) | ||
645 | sys.exit(1) | ||
646 | new_items.append(item) | ||
647 | |||
648 | cur_items = read_features(scripts_path, machine) | ||
649 | cur_items.extend(new_items) | ||
650 | |||
651 | write_features(scripts_path, machine, cur_items) | ||
652 | |||
653 | print("Added features:") | ||
654 | for n in new_items: | ||
655 | print("\t%s" % n) | ||
656 | |||
657 | |||
658 | def find_feature_url(git_url): | ||
659 | """ | ||
660 | Find the url of the kern-features.rc kernel for the kernel repo | ||
661 | specified from the BSP's kernel recipe SRC_URI. | ||
662 | """ | ||
663 | feature_url = "" | ||
664 | if git_url.startswith("git://"): | ||
665 | git_url = git_url[len("git://"):].strip() | ||
666 | s = git_url.split("/") | ||
667 | if s[1].endswith(".git"): | ||
668 | s[1] = s[1][:len(s[1]) - len(".git")] | ||
669 | feature_url = "http://" + s[0] + "/cgit/cgit.cgi/" + s[1] + \ | ||
670 | "/plain/meta/cfg/kern-features.rc?h=meta" | ||
671 | |||
672 | return feature_url | ||
673 | |||
674 | |||
675 | def find_feature_desc(lines): | ||
676 | """ | ||
677 | Find the feature description and compatibility in the passed-in | ||
678 | set of lines. Returns a string string of the form 'desc | ||
679 | [compat]'. | ||
680 | """ | ||
681 | desc = "no description available" | ||
682 | compat = "unknown" | ||
683 | |||
684 | for line in lines: | ||
685 | idx = line.find("KFEATURE_DESCRIPTION") | ||
686 | if idx != -1: | ||
687 | desc = line[idx + len("KFEATURE_DESCRIPTION"):].strip() | ||
688 | if desc.startswith("\""): | ||
689 | desc = desc[1:] | ||
690 | if desc.endswith("\""): | ||
691 | desc = desc[:-1] | ||
692 | else: | ||
693 | idx = line.find("KFEATURE_COMPATIBILITY") | ||
694 | if idx != -1: | ||
695 | compat = line[idx + len("KFEATURE_COMPATIBILITY"):].strip() | ||
696 | |||
697 | return desc + " [" + compat + "]" | ||
698 | |||
699 | |||
700 | def print_feature_descs(layer, feature_dir): | ||
701 | """ | ||
702 | Print the feature descriptions for the features in feature_dir. | ||
703 | """ | ||
704 | kernel_files_features = os.path.join(layer, "recipes-kernel/linux/files/" + | ||
705 | feature_dir) | ||
706 | for root, dirs, files in os.walk(kernel_files_features): | ||
707 | for file in files: | ||
708 | if file.endswith("~") or file.endswith("#"): | ||
709 | continue | ||
710 | if file.endswith(".scc"): | ||
711 | fullpath = os.path.join(layer, "recipes-kernel/linux/files/" + | ||
712 | feature_dir + "/" + file) | ||
713 | f = open(fullpath) | ||
714 | feature_desc = find_feature_desc(f.readlines()) | ||
715 | print(feature_dir + "/" + file + ": " + feature_desc) | ||
716 | |||
717 | |||
718 | def yocto_kernel_available_features_list(scripts_path, machine): | ||
719 | """ | ||
720 | Display the list of all the kernel features available for use in | ||
721 | BSPs, as gathered from the set of feature sources. | ||
722 | """ | ||
723 | layer = find_bsp_layer(machine) | ||
724 | kernel = find_current_kernel(layer, machine) | ||
725 | if not kernel: | ||
726 | print("Couldn't determine the kernel for this BSP, exiting.") | ||
727 | sys.exit(1) | ||
728 | |||
729 | context = create_context(machine, "arch", scripts_path) | ||
730 | context["name"] = "name" | ||
731 | context["filename"] = kernel | ||
732 | giturl = find_giturl(context) | ||
733 | feature_url = find_feature_url(giturl) | ||
734 | |||
735 | feature_cmd = "wget -q -O - " + feature_url | ||
736 | tmp = subprocess.Popen(feature_cmd, shell=True, stdout=subprocess.PIPE).stdout.read().decode('utf-8') | ||
737 | |||
738 | print("The current set of kernel features available to %s is:\n" % machine) | ||
739 | |||
740 | if tmp: | ||
741 | tmpline = tmp.split("\n") | ||
742 | in_kernel_options = False | ||
743 | for line in tmpline: | ||
744 | if not "=" in line: | ||
745 | if in_kernel_options: | ||
746 | break | ||
747 | if "kernel-options" in line: | ||
748 | in_kernel_options = True | ||
749 | continue | ||
750 | if in_kernel_options: | ||
751 | feature_def = line.split("=") | ||
752 | feature_type = feature_def[0].strip() | ||
753 | feature = feature_def[1].strip() | ||
754 | desc = get_feature_desc(giturl, feature) | ||
755 | print("%s: %s" % (feature, desc)) | ||
756 | |||
757 | print("[local]") | ||
758 | |||
759 | print_feature_descs(layer, "cfg") | ||
760 | print_feature_descs(layer, "features") | ||
761 | |||
762 | |||
763 | def find_feature_desc_url(git_url, feature): | ||
764 | """ | ||
765 | Find the url of the kernel feature in the kernel repo specified | ||
766 | from the BSP's kernel recipe SRC_URI. | ||
767 | """ | ||
768 | feature_desc_url = "" | ||
769 | if git_url.startswith("git://"): | ||
770 | git_url = git_url[len("git://"):].strip() | ||
771 | s = git_url.split("/") | ||
772 | if s[1].endswith(".git"): | ||
773 | s[1] = s[1][:len(s[1]) - len(".git")] | ||
774 | feature_desc_url = "http://" + s[0] + "/cgit/cgit.cgi/" + s[1] + \ | ||
775 | "/plain/meta/cfg/kernel-cache/" + feature + "?h=meta" | ||
776 | |||
777 | return feature_desc_url | ||
778 | |||
779 | |||
780 | def get_feature_desc(git_url, feature): | ||
781 | """ | ||
782 | Return a feature description of the form 'description [compatibility] | ||
783 | BSPs, as gathered from the set of feature sources. | ||
784 | """ | ||
785 | feature_desc_url = find_feature_desc_url(git_url, feature) | ||
786 | feature_desc_cmd = "wget -q -O - " + feature_desc_url | ||
787 | tmp = subprocess.Popen(feature_desc_cmd, shell=True, stdout=subprocess.PIPE).stdout.read().decode('utf-8') | ||
788 | |||
789 | return find_feature_desc(tmp.split("\n")) | ||
790 | |||
791 | |||
792 | def yocto_kernel_feature_describe(scripts_path, machine, feature): | ||
793 | """ | ||
794 | Display the description of a specific kernel feature available for | ||
795 | use in a BSP. | ||
796 | """ | ||
797 | layer = find_bsp_layer(machine) | ||
798 | |||
799 | kernel = find_current_kernel(layer, machine) | ||
800 | if not kernel: | ||
801 | print("Couldn't determine the kernel for this BSP, exiting.") | ||
802 | sys.exit(1) | ||
803 | |||
804 | context = create_context(machine, "arch", scripts_path) | ||
805 | context["name"] = "name" | ||
806 | context["filename"] = kernel | ||
807 | giturl = find_giturl(context) | ||
808 | |||
809 | desc = get_feature_desc(giturl, feature) | ||
810 | |||
811 | print(desc) | ||
812 | |||
813 | |||
814 | def check_feature_name(feature_name): | ||
815 | """ | ||
816 | Sanity-check the feature name for create/destroy. Return False if not OK. | ||
817 | """ | ||
818 | if not feature_name.endswith(".scc"): | ||
819 | print("Invalid feature name (must end with .scc) [%s], exiting" % feature_name) | ||
820 | return False | ||
821 | |||
822 | if "/" in feature_name: | ||
823 | print("Invalid feature name (don't specify directory) [%s], exiting" % feature_name) | ||
824 | return False | ||
825 | |||
826 | return True | ||
827 | |||
828 | |||
829 | def check_create_input(feature_items): | ||
830 | """ | ||
831 | Sanity-check the create input. Return False if not OK. | ||
832 | """ | ||
833 | if not check_feature_name(feature_items[0]): | ||
834 | return False | ||
835 | |||
836 | if feature_items[1].endswith(".patch") or feature_items[1].startswith("CONFIG_"): | ||
837 | print("Missing description and/or compatibilty [%s], exiting" % feature_items[1]) | ||
838 | return False | ||
839 | |||
840 | if feature_items[2].endswith(".patch") or feature_items[2].startswith("CONFIG_"): | ||
841 | print("Missing description and/or compatibility [%s], exiting" % feature_items[1]) | ||
842 | return False | ||
843 | |||
844 | return True | ||
845 | |||
846 | |||
847 | def yocto_kernel_feature_create(scripts_path, machine, feature_items): | ||
848 | """ | ||
849 | Create a recipe-space kernel feature in a BSP. | ||
850 | """ | ||
851 | if not check_create_input(feature_items): | ||
852 | sys.exit(1) | ||
853 | |||
854 | feature = feature_items[0] | ||
855 | feature_basename = feature.split(".")[0] | ||
856 | feature_description = feature_items[1] | ||
857 | feature_compat = feature_items[2] | ||
858 | |||
859 | patches = [] | ||
860 | cfg_items = [] | ||
861 | |||
862 | for item in feature_items[3:]: | ||
863 | if item.endswith(".patch"): | ||
864 | patches.append(item) | ||
865 | elif item.startswith("CONFIG"): | ||
866 | if ("=y" in item or "=m" in item): | ||
867 | cfg_items.append(item) | ||
868 | else: | ||
869 | print("Invalid feature item (must be .patch or CONFIG_*) [%s], exiting" % item) | ||
870 | sys.exit(1) | ||
871 | |||
872 | feature_dirname = "cfg" | ||
873 | if patches: | ||
874 | feature_dirname = "features" | ||
875 | |||
876 | filesdir = find_filesdir(scripts_path, machine) | ||
877 | if not filesdir: | ||
878 | print("Couldn't add feature (%s), no 'files' dir found" % feature) | ||
879 | sys.exit(1) | ||
880 | |||
881 | featdir = os.path.join(filesdir, feature_dirname) | ||
882 | if not os.path.exists(featdir): | ||
883 | os.mkdir(featdir) | ||
884 | |||
885 | for patch in patches: | ||
886 | if not os.path.isfile(patch): | ||
887 | print("Couldn't find patch (%s), exiting" % patch) | ||
888 | sys.exit(1) | ||
889 | basename = os.path.basename(patch) | ||
890 | featdir_patch = os.path.join(featdir, basename) | ||
891 | shutil.copyfile(patch, featdir_patch) | ||
892 | |||
893 | new_cfg_filename = os.path.join(featdir, feature_basename + ".cfg") | ||
894 | new_cfg_file = open(new_cfg_filename, "w") | ||
895 | for cfg_item in cfg_items: | ||
896 | new_cfg_file.write(cfg_item + "\n") | ||
897 | new_cfg_file.close() | ||
898 | |||
899 | new_feature_filename = os.path.join(featdir, feature_basename + ".scc") | ||
900 | new_feature_file = open(new_feature_filename, "w") | ||
901 | new_feature_file.write("define KFEATURE_DESCRIPTION \"" + feature_description + "\"\n") | ||
902 | new_feature_file.write("define KFEATURE_COMPATIBILITY " + feature_compat + "\n\n") | ||
903 | |||
904 | for patch in patches: | ||
905 | patch_dir, patch_file = os.path.split(patch) | ||
906 | new_feature_file.write("patch " + patch_file + "\n") | ||
907 | |||
908 | new_feature_file.write("kconf non-hardware " + feature_basename + ".cfg\n") | ||
909 | new_feature_file.close() | ||
910 | |||
911 | print("Added feature:") | ||
912 | print("\t%s" % feature_dirname + "/" + feature) | ||
913 | |||
914 | |||
915 | def feature_in_use(scripts_path, machine, feature): | ||
916 | """ | ||
917 | Determine whether the specified feature is in use by the BSP. | ||
918 | Return True if so, False otherwise. | ||
919 | """ | ||
920 | features = read_features(scripts_path, machine) | ||
921 | for f in features: | ||
922 | if f == feature: | ||
923 | return True | ||
924 | return False | ||
925 | |||
926 | |||
927 | def feature_remove(scripts_path, machine, feature): | ||
928 | """ | ||
929 | Remove the specified feature from the available recipe-space | ||
930 | features defined for the BSP. | ||
931 | """ | ||
932 | features = read_features(scripts_path, machine) | ||
933 | new_features = [] | ||
934 | for f in features: | ||
935 | if f == feature: | ||
936 | continue | ||
937 | new_features.append(f) | ||
938 | write_features(scripts_path, machine, new_features) | ||
939 | |||
940 | |||
941 | def yocto_kernel_feature_destroy(scripts_path, machine, feature): | ||
942 | """ | ||
943 | Remove a recipe-space kernel feature from a BSP. | ||
944 | """ | ||
945 | if not check_feature_name(feature): | ||
946 | sys.exit(1) | ||
947 | |||
948 | if feature_in_use(scripts_path, machine, "features/" + feature) or \ | ||
949 | feature_in_use(scripts_path, machine, "cfg/" + feature): | ||
950 | print("Feature %s is in use (use 'feature rm' to un-use it first), exiting" % feature) | ||
951 | sys.exit(1) | ||
952 | |||
953 | filesdir = find_filesdir(scripts_path, machine) | ||
954 | if not filesdir: | ||
955 | print("Couldn't destroy feature (%s), no 'files' dir found" % feature) | ||
956 | sys.exit(1) | ||
957 | |||
958 | feature_dirname = "features" | ||
959 | featdir = os.path.join(filesdir, feature_dirname) | ||
960 | if not os.path.exists(featdir): | ||
961 | print("Couldn't find feature directory (%s)" % feature_dirname) | ||
962 | sys.exit(1) | ||
963 | |||
964 | feature_fqn = os.path.join(featdir, feature) | ||
965 | if not os.path.exists(feature_fqn): | ||
966 | feature_dirname = "cfg" | ||
967 | featdir = os.path.join(filesdir, feature_dirname) | ||
968 | if not os.path.exists(featdir): | ||
969 | print("Couldn't find feature directory (%s)" % feature_dirname) | ||
970 | sys.exit(1) | ||
971 | feature_fqn = os.path.join(featdir, feature_filename) | ||
972 | if not os.path.exists(feature_fqn): | ||
973 | print("Couldn't find feature (%s)" % feature) | ||
974 | sys.exit(1) | ||
975 | |||
976 | f = open(feature_fqn, "r") | ||
977 | lines = f.readlines() | ||
978 | for line in lines: | ||
979 | s = line.strip() | ||
980 | if s.startswith("patch ") or s.startswith("kconf "): | ||
981 | split_line = s.split() | ||
982 | filename = os.path.join(featdir, split_line[-1]) | ||
983 | if os.path.exists(filename): | ||
984 | os.remove(filename) | ||
985 | f.close() | ||
986 | os.remove(feature_fqn) | ||
987 | |||
988 | feature_remove(scripts_path, machine, feature) | ||
989 | |||
990 | print("Removed feature:") | ||
991 | print("\t%s" % feature_dirname + "/" + feature) | ||
992 | |||
993 | |||
994 | def base_branches(context): | ||
995 | """ | ||
996 | Return a list of the base branches found in the kernel git repo. | ||
997 | """ | ||
998 | giturl = find_giturl(context) | ||
999 | |||
1000 | print("Getting branches from remote repo %s..." % giturl) | ||
1001 | |||
1002 | gitcmd = "git ls-remote %s *heads* 2>&1" % (giturl) | ||
1003 | tmp = subprocess.Popen(gitcmd, shell=True, stdout=subprocess.PIPE).stdout.read().decode('utf-8') | ||
1004 | |||
1005 | branches = [] | ||
1006 | |||
1007 | if tmp: | ||
1008 | tmpline = tmp.split("\n") | ||
1009 | for line in tmpline: | ||
1010 | if len(line)==0: | ||
1011 | break; | ||
1012 | if not line.endswith("base"): | ||
1013 | continue; | ||
1014 | idx = line.find("refs/heads/") | ||
1015 | kbranch = line[idx + len("refs/heads/"):] | ||
1016 | if kbranch.find("/") == -1 and kbranch.find("base") == -1: | ||
1017 | continue | ||
1018 | idx = kbranch.find("base") | ||
1019 | branches.append(kbranch[:idx - 1]) | ||
1020 | |||
1021 | return branches | ||
1022 | |||
1023 | |||
1024 | def all_branches(context): | ||
1025 | """ | ||
1026 | Return a list of all the branches found in the kernel git repo. | ||
1027 | """ | ||
1028 | giturl = find_giturl(context) | ||
1029 | |||
1030 | print("Getting branches from remote repo %s..." % giturl) | ||
1031 | |||
1032 | gitcmd = "git ls-remote %s *heads* 2>&1" % (giturl) | ||
1033 | tmp = subprocess.Popen(gitcmd, shell=True, stdout=subprocess.PIPE).stdout.read().decode('utf-8') | ||
1034 | |||
1035 | branches = [] | ||
1036 | |||
1037 | base_prefixes = None | ||
1038 | |||
1039 | try: | ||
1040 | branches_base = context["branches_base"] | ||
1041 | if branches_base: | ||
1042 | base_prefixes = branches_base.split(":") | ||
1043 | except KeyError: | ||
1044 | pass | ||
1045 | |||
1046 | arch = context["arch"] | ||
1047 | |||
1048 | if tmp: | ||
1049 | tmpline = tmp.split("\n") | ||
1050 | for line in tmpline: | ||
1051 | if len(line)==0: | ||
1052 | break; | ||
1053 | idx = line.find("refs/heads/") | ||
1054 | kbranch = line[idx + len("refs/heads/"):] | ||
1055 | kbranch_prefix = kbranch.rsplit("/", 1)[0] | ||
1056 | |||
1057 | if base_prefixes: | ||
1058 | for base_prefix in base_prefixes: | ||
1059 | if kbranch_prefix == base_prefix: | ||
1060 | branches.append(kbranch) | ||
1061 | continue | ||
1062 | |||
1063 | if (kbranch.find("/") != -1 and | ||
1064 | (kbranch.find("standard") != -1 or kbranch.find("base") != -1) or | ||
1065 | kbranch == "base"): | ||
1066 | branches.append(kbranch) | ||
1067 | continue | ||
1068 | |||
1069 | return branches | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/arm/.gitignore b/scripts/lib/bsp/substrate/target/arch/arm/.gitignore deleted file mode 100644 index e69de29bb2..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/arm/.gitignore +++ /dev/null | |||
diff --git a/scripts/lib/bsp/substrate/target/arch/arm/conf/machine/machine.conf b/scripts/lib/bsp/substrate/target/arch/arm/conf/machine/machine.conf deleted file mode 100644 index 624750c527..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/arm/conf/machine/machine.conf +++ /dev/null | |||
@@ -1,100 +0,0 @@ | |||
1 | # yocto-bsp-filename {{=machine}}.conf | ||
2 | #@TYPE: Machine | ||
3 | #@NAME: {{=machine}} | ||
4 | |||
5 | #@DESCRIPTION: Machine configuration for {{=machine}} systems | ||
6 | |||
7 | {{ input type:"boolean" name:"xserver" prio:"50" msg:"Do you need support for X? (y/n)" default:"y" }} | ||
8 | {{ if xserver == "y": }} | ||
9 | PREFERRED_PROVIDER_virtual/xserver ?= "xserver-xorg" | ||
10 | XSERVER ?= "xserver-xorg \ | ||
11 | xf86-video-fbdev \ | ||
12 | " | ||
13 | |||
14 | MACHINE_EXTRA_RRECOMMENDS = " kernel-modules kernel-devicetree" | ||
15 | |||
16 | EXTRA_IMAGEDEPENDS += "u-boot" | ||
17 | |||
18 | {{ input type:"choicelist" name:"tunefile" prio:"40" msg:"Which machine tuning would you like to use?" default:"tune_cortexa8" }} | ||
19 | {{ input type:"choice" val:"tune_arm1136jf_s" msg:"arm1136jf-s tuning optimizations" }} | ||
20 | {{ input type:"choice" val:"tune_arm920t" msg:"arm920t tuning optimizations" }} | ||
21 | {{ input type:"choice" val:"tune_arm926ejs" msg:"arm926ejs tuning optimizations" }} | ||
22 | {{ input type:"choice" val:"tune_arm9tdmi" msg:"arm9tdmi tuning optimizations" }} | ||
23 | {{ input type:"choice" val:"tune_cortexa5" msg:"cortexa5 tuning optimizations" }} | ||
24 | {{ input type:"choice" val:"tune_cortexa7" msg:"cortexa7 tuning optimizations" }} | ||
25 | {{ input type:"choice" val:"tune_cortexa8" msg:"cortexa8 tuning optimizations" }} | ||
26 | {{ input type:"choice" val:"tune_cortexa9" msg:"cortexa9 tuning optimizations" }} | ||
27 | {{ input type:"choice" val:"tune_cortexa15" msg:"cortexa15 tuning optimizations" }} | ||
28 | {{ input type:"choice" val:"tune_cortexm1" msg:"cortexm1 tuning optimizations" }} | ||
29 | {{ input type:"choice" val:"tune_cortexm3" msg:"cortexm3 tuning optimizations" }} | ||
30 | {{ input type:"choice" val:"tune_cortexr4" msg:"cortexr4 tuning optimizations" }} | ||
31 | {{ input type:"choice" val:"tune_ep9312" msg:"ep9312 tuning optimizations" }} | ||
32 | {{ input type:"choice" val:"tune_iwmmxt" msg:"iwmmxt tuning optimizations" }} | ||
33 | {{ input type:"choice" val:"tune_strongarm1100" msg:"strongarm1100 tuning optimizations" }} | ||
34 | {{ input type:"choice" val:"tune_xscale" msg:"xscale tuning optimizations" }} | ||
35 | {{ if tunefile == "tune_arm1136jf_s": }} | ||
36 | include conf/machine/include/tune-arm1136jf-s.inc | ||
37 | {{ if tunefile == "tune_arm920t": }} | ||
38 | include conf/machine/include/tune-arm920t.inc | ||
39 | {{ if tunefile == "tune_arm926ejs": }} | ||
40 | include conf/machine/include/tune-arm926ejs.inc | ||
41 | {{ if tunefile == "tune_arm9tdmi": }} | ||
42 | include conf/machine/include/tune-arm9tdmi.inc | ||
43 | {{ if tunefile == "tune_cortexa5": }} | ||
44 | include conf/machine/include/tune-cortexa5.inc | ||
45 | {{ if tunefile == "tune_cortexa7": }} | ||
46 | include conf/machine/include/tune-cortexa7.inc | ||
47 | {{ if tunefile == "tune_cortexa8": }} | ||
48 | DEFAULTTUNE ?= "cortexa8hf-neon" | ||
49 | include conf/machine/include/tune-cortexa8.inc | ||
50 | {{ if tunefile == "tune_cortexa9": }} | ||
51 | include conf/machine/include/tune-cortexa9.inc | ||
52 | {{ if tunefile == "tune_cortexa15": }} | ||
53 | include conf/machine/include/tune-cortexa15.inc | ||
54 | {{ if tunefile == "tune_cortexm1": }} | ||
55 | include conf/machine/include/tune-cortexm1.inc | ||
56 | {{ if tunefile == "tune_cortexm3": }} | ||
57 | include conf/machine/include/tune-cortexm3.inc | ||
58 | {{ if tunefile == "tune_cortexr4": }} | ||
59 | include conf/machine/include/tune-cortexr4.inc | ||
60 | {{ if tunefile == "tune_ep9312": }} | ||
61 | include conf/machine/include/tune-ep9312.inc | ||
62 | {{ if tunefile == "tune_iwmmxt": }} | ||
63 | include conf/machine/include/tune-iwmmxt.inc | ||
64 | {{ if tunefile == "tune_strongarm1100": }} | ||
65 | include conf/machine/include/tune-strongarm1100.inc | ||
66 | {{ if tunefile == "tune_xscale": }} | ||
67 | include conf/machine/include/tune-xscale.inc | ||
68 | |||
69 | IMAGE_FSTYPES += "tar.bz2 jffs2" | ||
70 | EXTRA_IMAGECMD_jffs2 = "-lnp " | ||
71 | |||
72 | SERIAL_CONSOLE = "115200 ttyO0" | ||
73 | |||
74 | {{ if kernel_choice == "custom": preferred_kernel = "linux-yocto-custom" }} | ||
75 | {{ if kernel_choice == "linux-yocto-dev": preferred_kernel = "linux-yocto-dev" }} | ||
76 | {{ if kernel_choice == "custom" or kernel_choice == "linux-yocto-dev" : }} | ||
77 | PREFERRED_PROVIDER_virtual/kernel ?= "{{=preferred_kernel}}" | ||
78 | |||
79 | {{ if kernel_choice != "custom" and kernel_choice != "linux-yocto-dev": preferred_kernel = kernel_choice.split('_')[0] }} | ||
80 | {{ if kernel_choice != "custom" and kernel_choice != "linux-yocto-dev": preferred_kernel_version = kernel_choice.split('_')[1] }} | ||
81 | {{ if kernel_choice != "custom" and kernel_choice != "linux-yocto-dev": }} | ||
82 | PREFERRED_PROVIDER_virtual/kernel ?= "{{=preferred_kernel}}" | ||
83 | PREFERRED_VERSION_{{=preferred_kernel}} ?= "{{=preferred_kernel_version}}%" | ||
84 | |||
85 | KERNEL_IMAGETYPE = "uImage" | ||
86 | KERNEL_DEVICETREE = "am335x-bone.dtb am335x-boneblack.dtb" | ||
87 | KERNEL_EXTRA_ARGS += "LOADADDR=${UBOOT_ENTRYPOINT}" | ||
88 | |||
89 | SPL_BINARY = "MLO" | ||
90 | UBOOT_SUFFIX = "img" | ||
91 | {{ input type:"edit" name:"uboot_machine" prio:"40" msg:"Please specify a value for UBOOT_MACHINE:" default:"am335x_evm_config" }} | ||
92 | UBOOT_MACHINE = "{{=uboot_machine}}" | ||
93 | {{ input type:"edit" name:"uboot_entrypoint" prio:"40" msg:"Please specify a value for UBOOT_ENTRYPOINT:" default:"0x80008000" }} | ||
94 | UBOOT_ENTRYPOINT = "{{=uboot_entrypoint}}" | ||
95 | {{ input type:"edit" name:"uboot_loadaddress" prio:"40" msg:"Please specify a value for UBOOT_LOADADDRESS:" default:"0x80008000" }} | ||
96 | UBOOT_LOADADDRESS = "{{=uboot_loadaddress}}" | ||
97 | |||
98 | MACHINE_FEATURES = "usbgadget usbhost vfat alsa" | ||
99 | |||
100 | IMAGE_BOOT_FILES ?= "u-boot.${UBOOT_SUFFIX} MLO" | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/arm/recipes-graphics/xorg-xserver/xserver-xf86-config/machine.noinstall b/scripts/lib/bsp/substrate/target/arch/arm/recipes-graphics/xorg-xserver/xserver-xf86-config/machine.noinstall deleted file mode 100644 index b442d02d57..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/arm/recipes-graphics/xorg-xserver/xserver-xf86-config/machine.noinstall +++ /dev/null | |||
@@ -1 +0,0 @@ | |||
1 | # yocto-bsp-dirname {{=machine}} | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/arm/recipes-graphics/xorg-xserver/xserver-xf86-config/machine/xorg.conf b/scripts/lib/bsp/substrate/target/arch/arm/recipes-graphics/xorg-xserver/xserver-xf86-config/machine/xorg.conf deleted file mode 100644 index bc52893e2a..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/arm/recipes-graphics/xorg-xserver/xserver-xf86-config/machine/xorg.conf +++ /dev/null | |||
@@ -1,34 +0,0 @@ | |||
1 | # yocto-bsp-filename {{ if xserver == "y": }} this | ||
2 | Section "Module" | ||
3 | Load "extmod" | ||
4 | Load "dbe" | ||
5 | Load "glx" | ||
6 | Load "freetype" | ||
7 | Load "type1" | ||
8 | Load "record" | ||
9 | Load "dri" | ||
10 | EndSection | ||
11 | |||
12 | Section "Monitor" | ||
13 | Identifier "Builtin Default Monitor" | ||
14 | EndSection | ||
15 | |||
16 | Section "Device" | ||
17 | Identifier "Builtin Default fbdev Device 0" | ||
18 | Driver "omapfb" | ||
19 | EndSection | ||
20 | |||
21 | Section "Screen" | ||
22 | Identifier "Builtin Default fbdev Screen 0" | ||
23 | Device "Builtin Default fbdev Device 0" | ||
24 | Monitor "Builtin Default Monitor" | ||
25 | EndSection | ||
26 | |||
27 | Section "ServerLayout" | ||
28 | Identifier "Builtin Default Layout" | ||
29 | Screen "Builtin Default fbdev Screen 0" | ||
30 | EndSection | ||
31 | |||
32 | Section "ServerFlags" | ||
33 | Option "DontZap" "0" | ||
34 | EndSection | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/arm/recipes-graphics/xorg-xserver/xserver-xf86-config_0.1.bbappend b/scripts/lib/bsp/substrate/target/arch/arm/recipes-graphics/xorg-xserver/xserver-xf86-config_0.1.bbappend deleted file mode 100644 index 30830031ed..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/arm/recipes-graphics/xorg-xserver/xserver-xf86-config_0.1.bbappend +++ /dev/null | |||
@@ -1,2 +0,0 @@ | |||
1 | # yocto-bsp-filename {{ if xserver == "y": }} this | ||
2 | FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/files.noinstall b/scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/files.noinstall deleted file mode 100644 index 1e0d92c55c..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/files.noinstall +++ /dev/null | |||
@@ -1 +0,0 @@ | |||
1 | # yocto-bsp-dirname {{ if kernel_choice != "custom": }} files | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/files/machine-non_hardware.cfg b/scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/files/machine-non_hardware.cfg deleted file mode 100644 index 9bfc90c6f2..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/files/machine-non_hardware.cfg +++ /dev/null | |||
@@ -1,31 +0,0 @@ | |||
1 | # yocto-bsp-filename {{=machine}}-non_hardware.cfg | ||
2 | # | ||
3 | # Miscellaneous filesystems | ||
4 | # | ||
5 | CONFIG_NFS_DEF_FILE_IO_SIZE=1024 | ||
6 | |||
7 | # | ||
8 | # Multiple Device Support | ||
9 | # | ||
10 | # CONFIG_MD is not set | ||
11 | |||
12 | # Kernel Features | ||
13 | # | ||
14 | CONFIG_NO_HZ=y | ||
15 | |||
16 | # | ||
17 | # CPUIdle | ||
18 | # | ||
19 | CONFIG_CPU_IDLE=y | ||
20 | CONFIG_CPU_IDLE_GOV_LADDER=y | ||
21 | CONFIG_CPU_IDLE_GOV_MENU=y | ||
22 | |||
23 | # | ||
24 | # Kernel hacking | ||
25 | # | ||
26 | CONFIG_DEBUG_FS=y | ||
27 | |||
28 | # | ||
29 | # Power management options | ||
30 | # | ||
31 | CONFIG_PM_DEBUG=y | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/files/machine-preempt-rt.scc b/scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/files/machine-preempt-rt.scc deleted file mode 100644 index ea6966ca4d..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/files/machine-preempt-rt.scc +++ /dev/null | |||
@@ -1,15 +0,0 @@ | |||
1 | # yocto-bsp-filename {{=machine}}-preempt-rt.scc | ||
2 | define KMACHINE {{=machine}} | ||
3 | |||
4 | define KARCH arm | ||
5 | |||
6 | include {{=map_preempt_rt_kbranch(need_new_kbranch, new_kbranch, existing_kbranch)}} | ||
7 | {{ if need_new_kbranch == "y": }} | ||
8 | define KTYPE {{=new_kbranch}} | ||
9 | branch {{=machine}} | ||
10 | |||
11 | include {{=machine}}.scc | ||
12 | |||
13 | # default policy for preempt-rt kernels | ||
14 | include features/latencytop/latencytop.scc | ||
15 | include features/profiling/profiling.scc | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/files/machine-standard.scc b/scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/files/machine-standard.scc deleted file mode 100644 index 8a881574d9..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/files/machine-standard.scc +++ /dev/null | |||
@@ -1,15 +0,0 @@ | |||
1 | # yocto-bsp-filename {{=machine}}-standard.scc | ||
2 | define KMACHINE {{=machine}} | ||
3 | |||
4 | define KARCH arm | ||
5 | |||
6 | include {{=map_standard_kbranch(need_new_kbranch, new_kbranch, existing_kbranch)}} nopatch | ||
7 | {{ if need_new_kbranch == "y": }} | ||
8 | define KTYPE {{=new_kbranch}} | ||
9 | branch {{=machine}} | ||
10 | |||
11 | include {{=machine}}.scc | ||
12 | |||
13 | # default policy for standard kernels | ||
14 | include features/latencytop/latencytop.scc | ||
15 | include features/profiling/profiling.scc | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/files/machine-tiny.scc b/scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/files/machine-tiny.scc deleted file mode 100644 index 921b7e7e92..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/files/machine-tiny.scc +++ /dev/null | |||
@@ -1,11 +0,0 @@ | |||
1 | # yocto-bsp-filename {{=machine}}-tiny.scc | ||
2 | define KMACHINE {{=machine}} | ||
3 | |||
4 | define KARCH arm | ||
5 | |||
6 | include {{=map_tiny_kbranch(need_new_kbranch, new_kbranch, existing_kbranch)}} | ||
7 | {{ if need_new_kbranch == "y": }} | ||
8 | define KTYPE {{=new_kbranch}} | ||
9 | branch {{=machine}} | ||
10 | |||
11 | include {{=machine}}.scc | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/files/machine-user-config.cfg b/scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/files/machine-user-config.cfg deleted file mode 100644 index 47489e44e9..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/files/machine-user-config.cfg +++ /dev/null | |||
@@ -1 +0,0 @@ | |||
1 | # yocto-bsp-filename {{=machine}}-user-config.cfg | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/files/machine-user-features.scc b/scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/files/machine-user-features.scc deleted file mode 100644 index 582759e612..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/files/machine-user-features.scc +++ /dev/null | |||
@@ -1 +0,0 @@ | |||
1 | # yocto-bsp-filename {{=machine}}-user-features.scc | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/files/machine-user-patches.scc b/scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/files/machine-user-patches.scc deleted file mode 100644 index 97f747fa07..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/files/machine-user-patches.scc +++ /dev/null | |||
@@ -1 +0,0 @@ | |||
1 | # yocto-bsp-filename {{=machine}}-user-patches.scc | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/files/machine.cfg b/scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/files/machine.cfg deleted file mode 100644 index a2e1ae0f75..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/files/machine.cfg +++ /dev/null | |||
@@ -1,321 +0,0 @@ | |||
1 | # yocto-bsp-filename {{=machine}}.cfg | ||
2 | # | ||
3 | # System Type | ||
4 | # | ||
5 | CONFIG_ARCH_OMAP=y | ||
6 | |||
7 | # | ||
8 | # TI OMAP Implementations | ||
9 | # | ||
10 | # CONFIG_ARCH_OMAP2 is not set | ||
11 | CONFIG_ARCH_OMAP3=y | ||
12 | |||
13 | # | ||
14 | # TI OMAP Common Features | ||
15 | # | ||
16 | CONFIG_ARCH_OMAP2PLUS=y | ||
17 | |||
18 | # | ||
19 | # OMAP Feature Selections | ||
20 | # | ||
21 | CONFIG_OMAP_32K_TIMER=y | ||
22 | CONFIG_OMAP_32K_TIMER_HZ=128 | ||
23 | CONFIG_OMAP_DM_TIMER=y | ||
24 | CONFIG_OMAP_RESET_CLOCKS=y | ||
25 | CONFIG_OMAP_SMARTREFLEX=y | ||
26 | CONFIG_OMAP_SMARTREFLEX_CLASS3=y | ||
27 | CONFIG_OMAP_MBOX_FWK=m | ||
28 | CONFIG_OMAP_MBOX_KFIFO_SIZE=256 | ||
29 | |||
30 | # | ||
31 | # OMAP Board Type | ||
32 | # | ||
33 | CONFIG_MACH_OMAP3_BEAGLE=y | ||
34 | |||
35 | # | ||
36 | # Processor Features | ||
37 | # | ||
38 | CONFIG_ARM_THUMBEE=y | ||
39 | CONFIG_ARM_ERRATA_430973=y | ||
40 | |||
41 | # | ||
42 | # Kernel Features | ||
43 | # | ||
44 | CONFIG_LEDS=y | ||
45 | |||
46 | |||
47 | # | ||
48 | # Serial drivers | ||
49 | # | ||
50 | CONFIG_SERIAL_OMAP=y | ||
51 | CONFIG_SERIAL_OMAP_CONSOLE=y | ||
52 | |||
53 | # | ||
54 | # At least one emulation must be selected | ||
55 | # | ||
56 | CONFIG_VFP=y | ||
57 | CONFIG_NEON=y | ||
58 | |||
59 | # | ||
60 | # Power management options | ||
61 | # | ||
62 | CONFIG_PM=y | ||
63 | CONFIG_PM_RUNTIME=y | ||
64 | |||
65 | # | ||
66 | # Generic Driver Options | ||
67 | # | ||
68 | CONFIG_MTD=y | ||
69 | CONFIG_MTD_CMDLINE_PARTS=y | ||
70 | # | ||
71 | # User Modules And Translation Layers | ||
72 | # | ||
73 | CONFIG_MTD_BLKDEVS=y | ||
74 | CONFIG_MTD_BLOCK=y | ||
75 | |||
76 | # | ||
77 | # RAM/ROM/Flash chip drivers | ||
78 | # | ||
79 | CONFIG_MTD_CFI=y | ||
80 | CONFIG_MTD_CFI_INTELEXT=y | ||
81 | |||
82 | # | ||
83 | # Disk-On-Chip Device Drivers | ||
84 | # | ||
85 | CONFIG_MTD_NAND=y | ||
86 | |||
87 | CONFIG_MTD_NAND_OMAP2=y | ||
88 | |||
89 | CONFIG_MTD_UBI=y | ||
90 | |||
91 | # | ||
92 | # SCSI device support | ||
93 | # | ||
94 | CONFIG_SCSI=y | ||
95 | |||
96 | # | ||
97 | # SCSI support type (disk, tape, CD-ROM) | ||
98 | # | ||
99 | CONFIG_BLK_DEV_SD=y | ||
100 | |||
101 | # | ||
102 | # Ethernet (10 or 100Mbit) | ||
103 | # | ||
104 | CONFIG_SMSC911X=y | ||
105 | CONFIG_USB_NET_SMSC95XX=y | ||
106 | |||
107 | # | ||
108 | # Userland interfaces | ||
109 | # | ||
110 | CONFIG_INPUT_EVDEV=y | ||
111 | |||
112 | # | ||
113 | # Input Device Drivers | ||
114 | # | ||
115 | CONFIG_KEYBOARD_TWL4030=y | ||
116 | CONFIG_INPUT_TOUCHSCREEN=y | ||
117 | CONFIG_TOUCHSCREEN_ADS7846=y | ||
118 | |||
119 | # | ||
120 | # Miscellaneous I2C Chip support | ||
121 | # | ||
122 | CONFIG_I2C=y | ||
123 | CONFIG_I2C_OMAP=y | ||
124 | CONFIG_SPI=y | ||
125 | CONFIG_SPI_MASTER=y | ||
126 | CONFIG_SPI_OMAP24XX=y | ||
127 | |||
128 | # | ||
129 | # I2C GPIO expanders: | ||
130 | # | ||
131 | CONFIG_GPIO_TWL4030=y | ||
132 | |||
133 | # | ||
134 | # SPI GPIO expanders: | ||
135 | # | ||
136 | CONFIG_OMAP_WATCHDOG=y | ||
137 | CONFIG_WATCHDOG_NOWAYOUT=y | ||
138 | |||
139 | # | ||
140 | # Multifunction device drivers | ||
141 | # | ||
142 | CONFIG_TWL4030_CORE=y | ||
143 | CONFIG_REGULATOR=y | ||
144 | CONFIG_REGULATOR_DUMMY=y | ||
145 | CONFIG_REGULATOR_TWL4030=y | ||
146 | |||
147 | # | ||
148 | # Graphics support | ||
149 | # | ||
150 | CONFIG_FB=y | ||
151 | CONFIG_DRM=m | ||
152 | # CONFIG_VGASTATE is not set | ||
153 | # CONFIG_VIDEO_OUTPUT_CONTROL is not set | ||
154 | # CONFIG_FIRMWARE_EDID is not set | ||
155 | # CONFIG_FB_DDC is not set | ||
156 | # CONFIG_FB_BOOT_VESA_SUPPORT is not set | ||
157 | CONFIG_FB_CFB_FILLRECT=y | ||
158 | CONFIG_FB_CFB_COPYAREA=y | ||
159 | CONFIG_FB_CFB_IMAGEBLIT=y | ||
160 | # CONFIG_FB_CFB_REV_PIXELS_IN_BYTE is not set | ||
161 | # CONFIG_FB_SYS_FILLRECT is not set | ||
162 | # CONFIG_FB_SYS_COPYAREA is not set | ||
163 | # CONFIG_FB_SYS_IMAGEBLIT is not set | ||
164 | # CONFIG_FB_FOREIGN_ENDIAN is not set | ||
165 | # CONFIG_FB_SYS_FOPS is not set | ||
166 | # CONFIG_FB_SVGALIB is not set | ||
167 | # CONFIG_FB_MACMODES is not set | ||
168 | # CONFIG_FB_BACKLIGHT is not set | ||
169 | CONFIG_FB_MODE_HELPERS=y | ||
170 | # CONFIG_FB_TILEBLITTING is not set | ||
171 | |||
172 | # | ||
173 | # Frame buffer hardware drivers | ||
174 | # | ||
175 | # CONFIG_FB_S1D13XXX is not set | ||
176 | # CONFIG_FB_TMIO is not set | ||
177 | # CONFIG_FB_VIRTUAL is not set | ||
178 | # CONFIG_FB_METRONOME is not set | ||
179 | # CONFIG_FB_MB862XX is not set | ||
180 | # CONFIG_FB_BROADSHEET is not set | ||
181 | # CONFIG_FB_OMAP_BOOTLOADER_INIT is not set | ||
182 | CONFIG_OMAP2_VRAM=y | ||
183 | CONFIG_OMAP2_VRFB=y | ||
184 | CONFIG_OMAP2_DSS=y | ||
185 | CONFIG_OMAP2_VRAM_SIZE=14 | ||
186 | CONFIG_OMAP2_DSS_DEBUG_SUPPORT=y | ||
187 | # CONFIG_OMAP2_DSS_COLLECT_IRQ_STATS is not set | ||
188 | CONFIG_OMAP2_DSS_DPI=y | ||
189 | # CONFIG_OMAP2_DSS_RFBI is not set | ||
190 | CONFIG_OMAP2_DSS_VENC=y | ||
191 | # CONFIG_OMAP2_DSS_SDI is not set | ||
192 | CONFIG_OMAP2_DSS_DSI=y | ||
193 | # CONFIG_OMAP2_DSS_FAKE_VSYNC is not set | ||
194 | CONFIG_OMAP2_DSS_MIN_FCK_PER_PCK=0 | ||
195 | CONFIG_FB_OMAP2=y | ||
196 | CONFIG_FB_OMAP2_DEBUG_SUPPORT=y | ||
197 | CONFIG_FB_OMAP2_NUM_FBS=2 | ||
198 | |||
199 | # | ||
200 | # OMAP2/3 Display Device Drivers | ||
201 | # | ||
202 | CONFIG_PANEL_GENERIC_DPI=y | ||
203 | CONFIG_PANEL_DVI=y | ||
204 | CONFIG_PANEL_SHARP_LS037V7DW01=y | ||
205 | # CONFIG_PANEL_LGPHILIPS_LB035Q02 is not set | ||
206 | # CONFIG_PANEL_TAAL is not set | ||
207 | CONFIG_PANEL_TPO_TD043MTEA1=m | ||
208 | # CONFIG_BACKLIGHT_LCD_SUPPORT is not set | ||
209 | CONFIG_BACKLIGHT_CLASS_DEVICE=y | ||
210 | |||
211 | # | ||
212 | # Display device support | ||
213 | # | ||
214 | CONFIG_DISPLAY_SUPPORT=y | ||
215 | CONFIG_DUMMY_CONSOLE=y | ||
216 | # CONFIG_FRAMEBUFFER_CONSOLE_DETECT_PRIMARY is not set | ||
217 | CONFIG_FRAMEBUFFER_CONSOLE_ROTATION=y | ||
218 | # CONFIG_FONTS is not set | ||
219 | CONFIG_FONT_8x8=y | ||
220 | CONFIG_FONT_8x16=y | ||
221 | # CONFIG_LOGO_LINUX_MONO is not set | ||
222 | # CONFIG_LOGO_LINUX_VGA16 is not set | ||
223 | |||
224 | # | ||
225 | # Console display driver support | ||
226 | # | ||
227 | CONFIG_FRAMEBUFFER_CONSOLE=y | ||
228 | CONFIG_LOGO=y | ||
229 | # CONFIG_VGA_CONSOLE is not set | ||
230 | |||
231 | # DMA Devices | ||
232 | CONFIG_DMADEVICES=y | ||
233 | CONFIG_DMA_OMAP=y | ||
234 | CONFIG_DMA_OF=y | ||
235 | |||
236 | CONFIG_SOUND=y | ||
237 | CONFIG_SND=y | ||
238 | CONFIG_SND_SOC=y | ||
239 | CONFIG_SND_OMAP_SOC=y | ||
240 | CONFIG_SND_OMAP_SOC_OMAP_TWL4030=y | ||
241 | |||
242 | # | ||
243 | # USB Input Devices | ||
244 | # | ||
245 | CONFIG_USB=y | ||
246 | CONFIG_USB_SUPPORT=y | ||
247 | |||
248 | # | ||
249 | # Miscellaneous USB options | ||
250 | # | ||
251 | CONFIG_USB_OTG=y | ||
252 | # CONFIG_USB_OTG_WHITELIST is not set | ||
253 | |||
254 | # | ||
255 | # USB Host Controller Drivers | ||
256 | # | ||
257 | CONFIG_USB_EHCI_HCD=y | ||
258 | CONFIG_USB_EHCI_TT_NEWSCHED=y | ||
259 | CONFIG_USB_EHCI_ROOT_HUB_TT=y | ||
260 | CONFIG_USB_MUSB_HDRC=y | ||
261 | CONFIG_USB_MUSB_OMAP2PLUS=y | ||
262 | CONFIG_USB_OMAP=y | ||
263 | |||
264 | # | ||
265 | # OMAP 343x high speed USB support | ||
266 | # | ||
267 | CONFIG_USB_MUSB_OTG=y | ||
268 | CONFIG_USB_GADGET_MUSB_HDRC=y | ||
269 | CONFIG_USB_MUSB_HDRC_HCD=y | ||
270 | CONFIG_USB_INVENTRA_DMA=y | ||
271 | |||
272 | # | ||
273 | # NOTE: USB_STORAGE enables SCSI, and 'SCSI disk support' | ||
274 | # | ||
275 | |||
276 | # | ||
277 | # may also be needed; see USB_STORAGE Help for more information | ||
278 | # | ||
279 | CONFIG_USB_STORAGE=y | ||
280 | |||
281 | # | ||
282 | # USB Miscellaneous drivers | ||
283 | # | ||
284 | CONFIG_USB_GADGET=y | ||
285 | CONFIG_USB_GADGET_DUALSPEED=y | ||
286 | CONFIG_USB_OTG_UTILS=y | ||
287 | CONFIG_TWL4030_USB=y | ||
288 | |||
289 | # USB gadget modules | ||
290 | CONFIG_USB_G_NCM=y | ||
291 | CONFIG_USB_MASS_STORAGE=y | ||
292 | |||
293 | CONFIG_MMC=y | ||
294 | |||
295 | # | ||
296 | # MMC/SD Host Controller Drivers | ||
297 | # | ||
298 | CONFIG_MMC_OMAP_HS=y | ||
299 | |||
300 | # | ||
301 | # Real Time Clock | ||
302 | # | ||
303 | CONFIG_RTC_LIB=y | ||
304 | CONFIG_RTC_CLASS=y | ||
305 | CONFIG_RTC_DRV_TWL4030=y | ||
306 | |||
307 | # | ||
308 | # DOS/FAT/NT Filesystems | ||
309 | # | ||
310 | CONFIG_VFAT_FS=y | ||
311 | |||
312 | # | ||
313 | # Multimedia core support | ||
314 | # | ||
315 | |||
316 | # CONFIG_VIDEO_HELPER_CHIPS_AUTO is not set | ||
317 | |||
318 | # | ||
319 | # Advanced Power Management Emulation support | ||
320 | # | ||
321 | CONFIG_APM_EMULATION=y | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/files/machine.scc b/scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/files/machine.scc deleted file mode 100644 index fb3866f119..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/files/machine.scc +++ /dev/null | |||
@@ -1,6 +0,0 @@ | |||
1 | # yocto-bsp-filename {{=machine}}.scc | ||
2 | kconf hardware {{=machine}}.cfg | ||
3 | kconf non-hardware {{machine}}-non_hardware.cfg | ||
4 | |||
5 | include features/usb-net/usb-net.scc | ||
6 | |||
diff --git a/scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/kernel-list.noinstall b/scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/kernel-list.noinstall deleted file mode 100644 index 917f0e2207..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/kernel-list.noinstall +++ /dev/null | |||
@@ -1,5 +0,0 @@ | |||
1 | {{ if kernel_choice != "custom": }} | ||
2 | {{ input type:"boolean" name:"use_default_kernel" prio:"10" msg:"Would you like to use the default (4.12) kernel? (y/n)" default:"y"}} | ||
3 | |||
4 | {{ if kernel_choice != "custom" and use_default_kernel == "n": }} | ||
5 | {{ input type:"choicelist" name:"kernel_choice" gen:"bsp.kernel.kernels" prio:"10" msg:"Please choose the kernel to use in this BSP:" default:"linux-yocto_4.12"}} | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/linux-yocto-dev.bbappend b/scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/linux-yocto-dev.bbappend deleted file mode 100644 index 22ed273811..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/linux-yocto-dev.bbappend +++ /dev/null | |||
@@ -1,28 +0,0 @@ | |||
1 | # yocto-bsp-filename {{ if kernel_choice == "linux-yocto-dev": }} this | ||
2 | FILESEXTRAPATHS_prepend := "${THISDIR}/files:" | ||
3 | |||
4 | PR := "${PR}.1" | ||
5 | |||
6 | COMPATIBLE_MACHINE_{{=machine}} = "{{=machine}}" | ||
7 | {{ input type:"boolean" name:"need_new_kbranch" prio:"20" msg:"Do you need a new machine branch for this BSP (the alternative is to re-use an existing branch)? [y/n]" default:"y" }} | ||
8 | |||
9 | {{ if need_new_kbranch == "y": }} | ||
10 | {{ input type:"choicelist" name:"new_kbranch" nameappend:"i386" gen:"bsp.kernel.all_branches" branches_base:"standard" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/base" }} | ||
11 | |||
12 | {{ if need_new_kbranch == "n": }} | ||
13 | {{ input type:"choicelist" name:"existing_kbranch" nameappend:"i386" gen:"bsp.kernel.all_branches" branches_base:"standard" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/base" }} | ||
14 | |||
15 | {{ if need_new_kbranch == "n": }} | ||
16 | KBRANCH_{{=machine}} = "{{=existing_kbranch}}" | ||
17 | |||
18 | {{ input type:"boolean" name:"smp" prio:"30" msg:"Would you like SMP support? (y/n)" default:"y"}} | ||
19 | {{ if smp == "y": }} | ||
20 | KERNEL_FEATURES_append_{{=machine}} += " cfg/smp.scc" | ||
21 | |||
22 | SRC_URI += "file://{{=machine}}.scc \ | ||
23 | file://{{=machine}}.cfg \ | ||
24 | file://{{=machine}}-standard.scc \ | ||
25 | file://{{=machine}}-user-config.cfg \ | ||
26 | file://{{=machine}}-user-features.scc \ | ||
27 | file://{{=machine}}-user-patches.scc \ | ||
28 | " | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/linux-yocto-tiny_4.10.bbappend b/scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/linux-yocto-tiny_4.10.bbappend deleted file mode 100644 index bae943ea1e..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/linux-yocto-tiny_4.10.bbappend +++ /dev/null | |||
@@ -1,37 +0,0 @@ | |||
1 | # yocto-bsp-filename {{ if kernel_choice == "linux-yocto-tiny_4.10": }} this | ||
2 | FILESEXTRAPATHS_prepend := "${THISDIR}/files:" | ||
3 | |||
4 | PR := "${PR}.1" | ||
5 | |||
6 | COMPATIBLE_MACHINE_{{=machine}} = "{{=machine}}" | ||
7 | |||
8 | {{ input type:"boolean" name:"need_new_kbranch" prio:"20" msg:"Do you need a new machine branch for this BSP (the alternative is to re-use an existing branch)? [y/n]" default:"y" }} | ||
9 | |||
10 | {{ if need_new_kbranch == "y": }} | ||
11 | {{ input type:"choicelist" name:"new_kbranch" gen:"bsp.kernel.all_branches" branches_base:"standard/tiny" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/tiny/base" }} | ||
12 | |||
13 | {{ if need_new_kbranch == "n": }} | ||
14 | {{ input type:"choicelist" name:"existing_kbranch" gen:"bsp.kernel.all_branches" branches_base:"standard/tiny" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/tiny/base" }} | ||
15 | |||
16 | {{ if need_new_kbranch == "n": }} | ||
17 | KBRANCH_{{=machine}} = "{{=existing_kbranch}}" | ||
18 | |||
19 | {{ input type:"boolean" name:"smp" prio:"30" msg:"Do you need SMP support? (y/n)" default:"y"}} | ||
20 | {{ if smp == "y": }} | ||
21 | KERNEL_FEATURES_append_{{=machine}} += " cfg/smp.scc" | ||
22 | |||
23 | SRC_URI += "file://{{=machine}}.scc \ | ||
24 | file://{{=machine}}.cfg \ | ||
25 | file://{{=machine}}-tiny.scc \ | ||
26 | file://{{=machine}}-user-config.cfg \ | ||
27 | file://{{=machine}}-user-patches.scc \ | ||
28 | file://{{=machine}}-user-features.scc \ | ||
29 | " | ||
30 | |||
31 | # replace these SRCREVs with the real commit ids once you've had | ||
32 | # the appropriate changes committed to the upstream linux-yocto repo | ||
33 | SRCREV_machine_pn-linux-yocto-tiny_{{=machine}} ?= "${AUTOREV}" | ||
34 | SRCREV_meta_pn-linux-yocto-tiny_{{=machine}} ?= "${AUTOREV}" | ||
35 | #LINUX_VERSION = "4.10" | ||
36 | #Remove the following line once AUTOREV is locked to a certain SRCREV | ||
37 | KERNEL_VERSION_SANITY_SKIP = "1" | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/linux-yocto-tiny_4.12.bbappend b/scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/linux-yocto-tiny_4.12.bbappend deleted file mode 100644 index 6f3e104c66..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/linux-yocto-tiny_4.12.bbappend +++ /dev/null | |||
@@ -1,37 +0,0 @@ | |||
1 | # yocto-bsp-filename {{ if kernel_choice == "linux-yocto-tiny_4.12": }} this | ||
2 | FILESEXTRAPATHS_prepend := "${THISDIR}/files:" | ||
3 | |||
4 | PR := "${PR}.1" | ||
5 | |||
6 | COMPATIBLE_MACHINE_{{=machine}} = "{{=machine}}" | ||
7 | |||
8 | {{ input type:"boolean" name:"need_new_kbranch" prio:"20" msg:"Do you need a new machine branch for this BSP (the alternative is to re-use an existing branch)? [y/n]" default:"y" }} | ||
9 | |||
10 | {{ if need_new_kbranch == "y": }} | ||
11 | {{ input type:"choicelist" name:"new_kbranch" gen:"bsp.kernel.all_branches" branches_base:"standard/tiny" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/tiny/base" }} | ||
12 | |||
13 | {{ if need_new_kbranch == "n": }} | ||
14 | {{ input type:"choicelist" name:"existing_kbranch" gen:"bsp.kernel.all_branches" branches_base:"standard/tiny" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/tiny/base" }} | ||
15 | |||
16 | {{ if need_new_kbranch == "n": }} | ||
17 | KBRANCH_{{=machine}} = "{{=existing_kbranch}}" | ||
18 | |||
19 | {{ input type:"boolean" name:"smp" prio:"30" msg:"Do you need SMP support? (y/n)" default:"y"}} | ||
20 | {{ if smp == "y": }} | ||
21 | KERNEL_FEATURES_append_{{=machine}} += " cfg/smp.scc" | ||
22 | |||
23 | SRC_URI += "file://{{=machine}}.scc \ | ||
24 | file://{{=machine}}.cfg \ | ||
25 | file://{{=machine}}-tiny.scc \ | ||
26 | file://{{=machine}}-user-config.cfg \ | ||
27 | file://{{=machine}}-user-patches.scc \ | ||
28 | file://{{=machine}}-user-features.scc \ | ||
29 | " | ||
30 | |||
31 | # replace these SRCREVs with the real commit ids once you've had | ||
32 | # the appropriate changes committed to the upstream linux-yocto repo | ||
33 | SRCREV_machine_pn-linux-yocto-tiny_{{=machine}} ?= "${AUTOREV}" | ||
34 | SRCREV_meta_pn-linux-yocto-tiny_{{=machine}} ?= "${AUTOREV}" | ||
35 | #LINUX_VERSION = "4.10" | ||
36 | #Remove the following line once AUTOREV is locked to a certain SRCREV | ||
37 | KERNEL_VERSION_SANITY_SKIP = "1" | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/linux-yocto-tiny_4.4.bbappend b/scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/linux-yocto-tiny_4.4.bbappend deleted file mode 100644 index 62d1817f22..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/linux-yocto-tiny_4.4.bbappend +++ /dev/null | |||
@@ -1,37 +0,0 @@ | |||
1 | # yocto-bsp-filename {{ if kernel_choice == "linux-yocto-tiny_4.4": }} this | ||
2 | FILESEXTRAPATHS_prepend := "${THISDIR}/files:" | ||
3 | |||
4 | PR := "${PR}.1" | ||
5 | |||
6 | COMPATIBLE_MACHINE_{{=machine}} = "{{=machine}}" | ||
7 | |||
8 | {{ input type:"boolean" name:"need_new_kbranch" prio:"20" msg:"Do you need a new machine branch for this BSP (the alternative is to re-use an existing branch)? [y/n]" default:"y" }} | ||
9 | |||
10 | {{ if need_new_kbranch == "y": }} | ||
11 | {{ input type:"choicelist" name:"new_kbranch" gen:"bsp.kernel.all_branches" branches_base:"standard/tiny" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/tiny/base" }} | ||
12 | |||
13 | {{ if need_new_kbranch == "n": }} | ||
14 | {{ input type:"choicelist" name:"existing_kbranch" gen:"bsp.kernel.all_branches" branches_base:"standard/tiny" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/tiny/base" }} | ||
15 | |||
16 | {{ if need_new_kbranch == "n": }} | ||
17 | KBRANCH_{{=machine}} = "{{=existing_kbranch}}" | ||
18 | |||
19 | {{ input type:"boolean" name:"smp" prio:"30" msg:"Do you need SMP support? (y/n)" default:"y"}} | ||
20 | {{ if smp == "y": }} | ||
21 | KERNEL_FEATURES_append_{{=machine}} += " cfg/smp.scc" | ||
22 | |||
23 | SRC_URI += "file://{{=machine}}.scc \ | ||
24 | file://{{=machine}}.cfg \ | ||
25 | file://{{=machine}}-tiny.scc \ | ||
26 | file://{{=machine}}-user-config.cfg \ | ||
27 | file://{{=machine}}-user-patches.scc \ | ||
28 | file://{{=machine}}-user-features.scc \ | ||
29 | " | ||
30 | |||
31 | # replace these SRCREVs with the real commit ids once you've had | ||
32 | # the appropriate changes committed to the upstream linux-yocto repo | ||
33 | SRCREV_machine_pn-linux-yocto-tiny_{{=machine}} ?= "${AUTOREV}" | ||
34 | SRCREV_meta_pn-linux-yocto-tiny_{{=machine}} ?= "${AUTOREV}" | ||
35 | #LINUX_VERSION = "4.4" | ||
36 | #Remove the following line once AUTOREV is locked to a certain SRCREV | ||
37 | KERNEL_VERSION_SANITY_SKIP = "1" | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/linux-yocto_4.10.bbappend b/scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/linux-yocto_4.10.bbappend deleted file mode 100644 index dfbecb5337..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/linux-yocto_4.10.bbappend +++ /dev/null | |||
@@ -1,37 +0,0 @@ | |||
1 | # yocto-bsp-filename {{ if kernel_choice == "linux-yocto_4.10": }} this | ||
2 | FILESEXTRAPATHS_prepend := "${THISDIR}/files:" | ||
3 | |||
4 | PR := "${PR}.1" | ||
5 | |||
6 | COMPATIBLE_MACHINE_{{=machine}} = "{{=machine}}" | ||
7 | |||
8 | {{ input type:"boolean" name:"need_new_kbranch" prio:"20" msg:"Do you need a new machine branch for this BSP (the alternative is to re-use an existing branch)? [y/n]" default:"y" }} | ||
9 | |||
10 | {{ if need_new_kbranch == "y": }} | ||
11 | {{ input type:"choicelist" name:"new_kbranch" gen:"bsp.kernel.all_branches" branches_base:"standard" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/base" }} | ||
12 | |||
13 | {{ if need_new_kbranch == "n": }} | ||
14 | {{ input type:"choicelist" name:"existing_kbranch" gen:"bsp.kernel.all_branches" branches_base:"standard" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/base" }} | ||
15 | |||
16 | {{ if need_new_kbranch == "n": }} | ||
17 | KBRANCH_{{=machine}} = "{{=existing_kbranch}}" | ||
18 | |||
19 | {{ input type:"boolean" name:"smp" prio:"30" msg:"Do you need SMP support? (y/n)" default:"y"}} | ||
20 | {{ if smp == "y": }} | ||
21 | KERNEL_FEATURES_append_{{=machine}} += " cfg/smp.scc" | ||
22 | |||
23 | SRC_URI += "file://{{=machine}}.scc \ | ||
24 | file://{{=machine}}.cfg \ | ||
25 | file://{{=machine}}-standard.scc \ | ||
26 | file://{{=machine}}-user-config.cfg \ | ||
27 | file://{{=machine}}-user-features.scc \ | ||
28 | file://{{=machine}}-user-patches.scc \ | ||
29 | " | ||
30 | |||
31 | # replace these SRCREVs with the real commit ids once you've had | ||
32 | # the appropriate changes committed to the upstream linux-yocto repo | ||
33 | SRCREV_machine_pn-linux-yocto_{{=machine}} ?= "${AUTOREV}" | ||
34 | SRCREV_meta_pn-linux-yocto_{{=machine}} ?= "${AUTOREV}" | ||
35 | #LINUX_VERSION = "4.10" | ||
36 | #Remove the following line once AUTOREV is locked to a certain SRCREV | ||
37 | KERNEL_VERSION_SANITY_SKIP = "1" | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/linux-yocto_4.12.bbappend b/scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/linux-yocto_4.12.bbappend deleted file mode 100644 index e874c9e45f..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/linux-yocto_4.12.bbappend +++ /dev/null | |||
@@ -1,37 +0,0 @@ | |||
1 | # yocto-bsp-filename {{ if kernel_choice == "linux-yocto_4.12": }} this | ||
2 | FILESEXTRAPATHS_prepend := "${THISDIR}/files:" | ||
3 | |||
4 | PR := "${PR}.1" | ||
5 | |||
6 | COMPATIBLE_MACHINE_{{=machine}} = "{{=machine}}" | ||
7 | |||
8 | {{ input type:"boolean" name:"need_new_kbranch" prio:"20" msg:"Do you need a new machine branch for this BSP (the alternative is to re-use an existing branch)? [y/n]" default:"y" }} | ||
9 | |||
10 | {{ if need_new_kbranch == "y": }} | ||
11 | {{ input type:"choicelist" name:"new_kbranch" gen:"bsp.kernel.all_branches" branches_base:"standard" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/base" }} | ||
12 | |||
13 | {{ if need_new_kbranch == "n": }} | ||
14 | {{ input type:"choicelist" name:"existing_kbranch" gen:"bsp.kernel.all_branches" branches_base:"standard" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/base" }} | ||
15 | |||
16 | {{ if need_new_kbranch == "n": }} | ||
17 | KBRANCH_{{=machine}} = "{{=existing_kbranch}}" | ||
18 | |||
19 | {{ input type:"boolean" name:"smp" prio:"30" msg:"Do you need SMP support? (y/n)" default:"y"}} | ||
20 | {{ if smp == "y": }} | ||
21 | KERNEL_FEATURES_append_{{=machine}} += " cfg/smp.scc" | ||
22 | |||
23 | SRC_URI += "file://{{=machine}}.scc \ | ||
24 | file://{{=machine}}.cfg \ | ||
25 | file://{{=machine}}-standard.scc \ | ||
26 | file://{{=machine}}-user-config.cfg \ | ||
27 | file://{{=machine}}-user-features.scc \ | ||
28 | file://{{=machine}}-user-patches.scc \ | ||
29 | " | ||
30 | |||
31 | # replace these SRCREVs with the real commit ids once you've had | ||
32 | # the appropriate changes committed to the upstream linux-yocto repo | ||
33 | SRCREV_machine_pn-linux-yocto_{{=machine}} ?= "${AUTOREV}" | ||
34 | SRCREV_meta_pn-linux-yocto_{{=machine}} ?= "${AUTOREV}" | ||
35 | #LINUX_VERSION = "4.10" | ||
36 | #Remove the following line once AUTOREV is locked to a certain SRCREV | ||
37 | KERNEL_VERSION_SANITY_SKIP = "1" | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/linux-yocto_4.4.bbappend b/scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/linux-yocto_4.4.bbappend deleted file mode 100644 index a809c7600a..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/linux-yocto_4.4.bbappend +++ /dev/null | |||
@@ -1,37 +0,0 @@ | |||
1 | # yocto-bsp-filename {{ if kernel_choice == "linux-yocto_4.4": }} this | ||
2 | FILESEXTRAPATHS_prepend := "${THISDIR}/files:" | ||
3 | |||
4 | PR := "${PR}.1" | ||
5 | |||
6 | COMPATIBLE_MACHINE_{{=machine}} = "{{=machine}}" | ||
7 | |||
8 | {{ input type:"boolean" name:"need_new_kbranch" prio:"20" msg:"Do you need a new machine branch for this BSP (the alternative is to re-use an existing branch)? [y/n]" default:"y" }} | ||
9 | |||
10 | {{ if need_new_kbranch == "y": }} | ||
11 | {{ input type:"choicelist" name:"new_kbranch" gen:"bsp.kernel.all_branches" branches_base:"standard" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/base" }} | ||
12 | |||
13 | {{ if need_new_kbranch == "n": }} | ||
14 | {{ input type:"choicelist" name:"existing_kbranch" gen:"bsp.kernel.all_branches" branches_base:"standard" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/base" }} | ||
15 | |||
16 | {{ if need_new_kbranch == "n": }} | ||
17 | KBRANCH_{{=machine}} = "{{=existing_kbranch}}" | ||
18 | |||
19 | {{ input type:"boolean" name:"smp" prio:"30" msg:"Do you need SMP support? (y/n)" default:"y"}} | ||
20 | {{ if smp == "y": }} | ||
21 | KERNEL_FEATURES_append_{{=machine}} += " cfg/smp.scc" | ||
22 | |||
23 | SRC_URI += "file://{{=machine}}.scc \ | ||
24 | file://{{=machine}}.cfg \ | ||
25 | file://{{=machine}}-standard.scc \ | ||
26 | file://{{=machine}}-user-config.cfg \ | ||
27 | file://{{=machine}}-user-features.scc \ | ||
28 | file://{{=machine}}-user-patches.scc \ | ||
29 | " | ||
30 | |||
31 | # replace these SRCREVs with the real commit ids once you've had | ||
32 | # the appropriate changes committed to the upstream linux-yocto repo | ||
33 | SRCREV_machine_pn-linux-yocto_{{=machine}} ?= "${AUTOREV}" | ||
34 | SRCREV_meta_pn-linux-yocto_{{=machine}} ?= "${AUTOREV}" | ||
35 | #LINUX_VERSION = "4.4" | ||
36 | #Remove the following line once AUTOREV is locked to a certain SRCREV | ||
37 | KERNEL_VERSION_SANITY_SKIP = "1" | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/common/COPYING.MIT b/scripts/lib/bsp/substrate/target/arch/common/COPYING.MIT deleted file mode 100644 index fb950dc69f..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/common/COPYING.MIT +++ /dev/null | |||
@@ -1,17 +0,0 @@ | |||
1 | Permission is hereby granted, free of charge, to any person obtaining a copy | ||
2 | of this software and associated documentation files (the "Software"), to deal | ||
3 | in the Software without restriction, including without limitation the rights | ||
4 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
5 | copies of the Software, and to permit persons to whom the Software is | ||
6 | furnished to do so, subject to the following conditions: | ||
7 | |||
8 | The above copyright notice and this permission notice shall be included in | ||
9 | all copies or substantial portions of the Software. | ||
10 | |||
11 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
12 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
13 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
14 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
15 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
16 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
17 | THE SOFTWARE. | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/common/README b/scripts/lib/bsp/substrate/target/arch/common/README deleted file mode 100644 index 928659f302..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/common/README +++ /dev/null | |||
@@ -1,118 +0,0 @@ | |||
1 | This README file contains information on building the meta-{{=machine}} | ||
2 | BSP layer, and booting the images contained in the /binary directory. | ||
3 | Please see the corresponding sections below for details. | ||
4 | |||
5 | |||
6 | Dependencies | ||
7 | ============ | ||
8 | |||
9 | This layer depends on: | ||
10 | |||
11 | URI: git://git.openembedded.org/bitbake | ||
12 | branch: master | ||
13 | |||
14 | URI: git://git.openembedded.org/openembedded-core | ||
15 | layers: meta | ||
16 | branch: master | ||
17 | |||
18 | URI: git://git.yoctoproject.org/xxxx | ||
19 | layers: xxxx | ||
20 | branch: master | ||
21 | |||
22 | |||
23 | Patches | ||
24 | ======= | ||
25 | |||
26 | Please submit any patches against this BSP to the Yocto mailing list | ||
27 | (yocto@yoctoproject.org) and cc: the maintainer: | ||
28 | |||
29 | Maintainer: XXX YYYYYY <xxx.yyyyyy@zzzzz.com> | ||
30 | |||
31 | Please see the meta-xxxx/MAINTAINERS file for more details. | ||
32 | |||
33 | |||
34 | Table of Contents | ||
35 | ================= | ||
36 | |||
37 | I. Building the meta-{{=machine}} BSP layer | ||
38 | II. Booting the images in /binary | ||
39 | |||
40 | |||
41 | I. Building the meta-{{=machine}} BSP layer | ||
42 | ======================================== | ||
43 | |||
44 | --- replace with specific instructions for your layer --- | ||
45 | |||
46 | In order to build an image with BSP support for a given release, you | ||
47 | need to download the corresponding BSP tarball from the 'Board Support | ||
48 | Package (BSP) Downloads' page of the Yocto Project website. | ||
49 | |||
50 | Having done that, and assuming you extracted the BSP tarball contents | ||
51 | at the top-level of your yocto build tree, you can build a | ||
52 | {{=machine}} image by adding the location of the meta-{{=machine}} | ||
53 | layer to bblayers.conf, along with any other layers needed (to access | ||
54 | common metadata shared between BSPs) e.g.: | ||
55 | |||
56 | yocto/meta-xxxx \ | ||
57 | yocto/meta-xxxx/meta-{{=machine}} \ | ||
58 | |||
59 | To enable the {{=machine}} layer, add the {{=machine}} MACHINE to local.conf: | ||
60 | |||
61 | MACHINE ?= "{{=machine}}" | ||
62 | |||
63 | You should then be able to build a {{=machine}} image as such: | ||
64 | |||
65 | $ source oe-init-build-env | ||
66 | $ bitbake core-image-sato | ||
67 | |||
68 | At the end of a successful build, you should have a live image that | ||
69 | you can boot from a USB flash drive (see instructions on how to do | ||
70 | that below, in the section 'Booting the images from /binary'). | ||
71 | |||
72 | As an alternative to downloading the BSP tarball, you can also work | ||
73 | directly from the meta-xxxx git repository. For each BSP in the | ||
74 | 'meta-xxxx' repository, there are multiple branches, one corresponding | ||
75 | to each major release starting with 'laverne' (0.90), in addition to | ||
76 | the latest code which tracks the current master (note that not all | ||
77 | BSPs are present in every release). Instead of extracting a BSP | ||
78 | tarball at the top level of your yocto build tree, you can | ||
79 | equivalently check out the appropriate branch from the meta-xxxx | ||
80 | repository at the same location. | ||
81 | |||
82 | |||
83 | II. Booting the images in /binary | ||
84 | ================================= | ||
85 | |||
86 | --- replace with specific instructions for your platform --- | ||
87 | |||
88 | This BSP contains bootable live images, which can be used to directly | ||
89 | boot Yocto off of a USB flash drive. | ||
90 | |||
91 | Under Linux, insert a USB flash drive. Assuming the USB flash drive | ||
92 | takes device /dev/sdf, use dd to copy the live image to it. For | ||
93 | example: | ||
94 | |||
95 | # dd if=core-image-sato-{{=machine}}-20101207053738.hddimg of=/dev/sdf | ||
96 | # sync | ||
97 | # eject /dev/sdf | ||
98 | |||
99 | This should give you a bootable USB flash device. Insert the device | ||
100 | into a bootable USB socket on the target, and power on. This should | ||
101 | result in a system booted to the Sato graphical desktop. | ||
102 | |||
103 | If you want a terminal, use the arrows at the top of the UI to move to | ||
104 | different pages of available applications, one of which is named | ||
105 | 'Terminal'. Clicking that should give you a root terminal. | ||
106 | |||
107 | If you want to ssh into the system, you can use the root terminal to | ||
108 | ifconfig the IP address and use that to ssh in. The root password is | ||
109 | empty, so to log in type 'root' for the user name and hit 'Enter' at | ||
110 | the Password prompt: and you should be in. | ||
111 | |||
112 | ---- | ||
113 | |||
114 | If you find you're getting corrupt images on the USB (it doesn't show | ||
115 | the syslinux boot: prompt, or the boot: prompt contains strange | ||
116 | characters), try doing this first: | ||
117 | |||
118 | # dd if=/dev/zero of=/dev/sdf bs=1M count=512 | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/common/README.sources b/scripts/lib/bsp/substrate/target/arch/common/README.sources deleted file mode 100644 index 3c4cb7b435..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/common/README.sources +++ /dev/null | |||
@@ -1,17 +0,0 @@ | |||
1 | The sources for the packages comprising the images shipped with this | ||
2 | BSP can be found at the following location: | ||
3 | |||
4 | http://downloads.yoctoproject.org/mirror/sources/ | ||
5 | |||
6 | The metadata used to generate the images shipped with this BSP, in | ||
7 | addition to the code contained in this BSP, can be found at the | ||
8 | following location: | ||
9 | |||
10 | http://www.yoctoproject.org/downloads/yocto-1.1/poky-edison-6.0.tar.bz2 | ||
11 | |||
12 | The metadata used to generate the images shipped with this BSP, in | ||
13 | addition to the code contained in this BSP, can also be found at the | ||
14 | following locations: | ||
15 | |||
16 | git://git.yoctoproject.org/poky.git | ||
17 | git://git.yoctoproject.org/meta-xxxx | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/common/binary/.gitignore b/scripts/lib/bsp/substrate/target/arch/common/binary/.gitignore deleted file mode 100644 index e69de29bb2..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/common/binary/.gitignore +++ /dev/null | |||
diff --git a/scripts/lib/bsp/substrate/target/arch/common/conf/layer.conf b/scripts/lib/bsp/substrate/target/arch/common/conf/layer.conf deleted file mode 100644 index 5529f45954..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/common/conf/layer.conf +++ /dev/null | |||
@@ -1,10 +0,0 @@ | |||
1 | # We have a conf and classes directory, add to BBPATH | ||
2 | BBPATH .= ":${LAYERDIR}" | ||
3 | |||
4 | # We have a recipes-* directories, add to BBFILES | ||
5 | BBFILES += "${LAYERDIR}/recipes-*/*/*.bb \ | ||
6 | ${LAYERDIR}/recipes-*/*/*.bbappend" | ||
7 | |||
8 | BBFILE_COLLECTIONS += "{{=machine}}" | ||
9 | BBFILE_PATTERN_{{=machine}} = "^${LAYERDIR}/" | ||
10 | BBFILE_PRIORITY_{{=machine}} = "6" | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/common/recipes-bsp/formfactor/formfactor/machine.noinstall b/scripts/lib/bsp/substrate/target/arch/common/recipes-bsp/formfactor/formfactor/machine.noinstall deleted file mode 100644 index b442d02d57..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/common/recipes-bsp/formfactor/formfactor/machine.noinstall +++ /dev/null | |||
@@ -1 +0,0 @@ | |||
1 | # yocto-bsp-dirname {{=machine}} | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/common/recipes-bsp/formfactor/formfactor/machine/machconfig b/scripts/lib/bsp/substrate/target/arch/common/recipes-bsp/formfactor/formfactor/machine/machconfig deleted file mode 100644 index 3b85d3821f..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/common/recipes-bsp/formfactor/formfactor/machine/machconfig +++ /dev/null | |||
@@ -1,5 +0,0 @@ | |||
1 | # Assume a USB mouse and keyboard are connected | ||
2 | {{ input type:"boolean" name:"touchscreen" msg:"Does your BSP have a touchscreen? (y/n)" default:"n" }} | ||
3 | HAVE_TOUCHSCREEN={{=touchscreen}} | ||
4 | {{ input type:"boolean" name:"keyboard" msg:"Does your BSP have a keyboard? (y/n)" default:"y" }} | ||
5 | HAVE_KEYBOARD={{=keyboard}} | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/common/recipes-bsp/formfactor/formfactor_0.0.bbappend b/scripts/lib/bsp/substrate/target/arch/common/recipes-bsp/formfactor/formfactor_0.0.bbappend deleted file mode 100644 index 6d4804d127..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/common/recipes-bsp/formfactor/formfactor_0.0.bbappend +++ /dev/null | |||
@@ -1,2 +0,0 @@ | |||
1 | FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" | ||
2 | |||
diff --git a/scripts/lib/bsp/substrate/target/arch/common/recipes-kernel/linux/kernel-list.noinstall b/scripts/lib/bsp/substrate/target/arch/common/recipes-kernel/linux/kernel-list.noinstall deleted file mode 100644 index 663dddbb0f..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/common/recipes-kernel/linux/kernel-list.noinstall +++ /dev/null | |||
@@ -1,26 +0,0 @@ | |||
1 | {{ if kernel_choice == "custom": }} | ||
2 | {{ input type:"boolean" name:"custom_kernel_remote" prio:"20" msg:"Is the custom kernel you'd like to use in a remote git repo? (y/n)" default:"y"}} | ||
3 | |||
4 | {{ if kernel_choice == "custom" and custom_kernel_remote == "y": }} | ||
5 | {{ input type:"edit-git-repo" name:"custom_kernel_remote_path" prio:"20" msg:"Please enter the full URI to the remote git repo (the default corresponds to linux-stable v3.16.3)" default:"git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git"}} | ||
6 | |||
7 | {{ if kernel_choice == "custom" and custom_kernel_remote == "n": }} | ||
8 | {{ input type:"edit-git-repo" name:"custom_kernel_local_path" prio:"20" msg:"You've indicated that you're not using a remote git repo. Please enter the full path to the local git repo you want to use (the default assumes a local linux-stable v3.16.3)" default:"/home/trz/yocto/kernels/linux-stable.git"}} | ||
9 | |||
10 | {{ if kernel_choice == "custom": }} | ||
11 | {{ input type:"boolean" name:"custom_kernel_need_kbranch" prio:"20" msg:"Do you need to use a specific (non-master) branch? (y/n)" default:"n"}} | ||
12 | |||
13 | {{ if kernel_choice == "custom" and custom_kernel_need_kbranch == "y": }} | ||
14 | {{ input type:"edit" name:"custom_kernel_kbranch" prio:"20" msg:"Please enter the branch you want to use (the default branch corresponds to the linux-stable 'linux-3.16.y' branch):" default:"linux-3.16.y"}} | ||
15 | |||
16 | {{ if kernel_choice == "custom": }} | ||
17 | {{ input type:"edit" name:"custom_kernel_srcrev" prio:"20" msg:"Please enter the SRCREV (commit id) you'd like to use (use '${AUTOREV}' to track the current HEAD):" default:"${AUTOREV}"}} | ||
18 | |||
19 | {{ if kernel_choice == "custom": }} | ||
20 | {{ input type:"edit" name:"custom_kernel_linux_version" prio:"20" msg:"Please enter the Linux version of the kernel you've specified:" default:"3.16.3"}} | ||
21 | |||
22 | {{ if kernel_choice == "custom": }} | ||
23 | {{ input type:"edit" name:"custom_kernel_linux_version_extension" prio:"20" msg:"Please enter a Linux version extension if you want (it will show up at the end of the kernel name shown by uname):" default:"-custom"}} | ||
24 | |||
25 | {{ if kernel_choice == "custom": }} | ||
26 | {{ input type:"edit-file" name:"custom_kernel_defconfig" prio:"20" msg:"It's recommended (but not required) that custom kernels be built using a defconfig. Please enter the full path to the defconfig for your kernel (NOTE: if you don't specify a defconfig the kernel probably won't build or boot):" default:""}} | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/common/recipes-kernel/linux/linux-yocto-custom.bb b/scripts/lib/bsp/substrate/target/arch/common/recipes-kernel/linux/linux-yocto-custom.bb deleted file mode 100644 index 3ba4226aa9..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/common/recipes-kernel/linux/linux-yocto-custom.bb +++ /dev/null | |||
@@ -1,58 +0,0 @@ | |||
1 | # yocto-bsp-filename {{ if kernel_choice == "custom": }} this | ||
2 | # This file was derived from the linux-yocto-custom.bb recipe in | ||
3 | # oe-core. | ||
4 | # | ||
5 | # linux-yocto-custom.bb: | ||
6 | # | ||
7 | # A yocto-bsp-generated kernel recipe that uses the linux-yocto and | ||
8 | # oe-core kernel classes to apply a subset of yocto kernel | ||
9 | # management to git managed kernel repositories. | ||
10 | # | ||
11 | # Warning: | ||
12 | # | ||
13 | # Building this kernel without providing a defconfig or BSP | ||
14 | # configuration will result in build or boot errors. This is not a | ||
15 | # bug. | ||
16 | # | ||
17 | # Notes: | ||
18 | # | ||
19 | # patches: patches can be merged into to the source git tree itself, | ||
20 | # added via the SRC_URI, or controlled via a BSP | ||
21 | # configuration. | ||
22 | # | ||
23 | # example configuration addition: | ||
24 | # SRC_URI += "file://smp.cfg" | ||
25 | # example patch addition: | ||
26 | # SRC_URI += "file://0001-linux-version-tweak.patch | ||
27 | # example feature addition: | ||
28 | # SRC_URI += "file://feature.scc" | ||
29 | # | ||
30 | |||
31 | inherit kernel | ||
32 | require recipes-kernel/linux/linux-yocto.inc | ||
33 | |||
34 | {{ if kernel_choice == "custom" and custom_kernel_remote == "y": }} | ||
35 | SRC_URI = "{{=custom_kernel_remote_path}};protocol=git;bareclone=1;branch=${KBRANCH}" | ||
36 | {{ if kernel_choice == "custom" and custom_kernel_remote == "n": }} | ||
37 | SRC_URI = "git://{{=custom_kernel_local_path}};protocol=file;bareclone=1;branch=${KBRANCH}" | ||
38 | |||
39 | SRC_URI += "file://defconfig" | ||
40 | |||
41 | SRC_URI += "file://{{=machine}}.scc \ | ||
42 | file://{{=machine}}.cfg \ | ||
43 | file://{{=machine}}-user-config.cfg \ | ||
44 | file://{{=machine}}-user-patches.scc \ | ||
45 | file://{{=machine}}-user-features.scc \ | ||
46 | " | ||
47 | |||
48 | {{ if kernel_choice == "custom" and custom_kernel_need_kbranch == "y" and custom_kernel_kbranch and custom_kernel_kbranch != "master": }} | ||
49 | KBRANCH = "{{=custom_kernel_kbranch}}" | ||
50 | |||
51 | LINUX_VERSION ?= "{{=custom_kernel_linux_version}}" | ||
52 | LINUX_VERSION_EXTENSION ?= "{{=custom_kernel_linux_version_extension}}" | ||
53 | |||
54 | SRCREV="{{=custom_kernel_srcrev}}" | ||
55 | |||
56 | PV = "${LINUX_VERSION}+git${SRCPV}" | ||
57 | |||
58 | COMPATIBLE_MACHINE_{{=machine}} = "{{=machine}}" | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/common/recipes-kernel/linux/linux-yocto-custom.noinstall b/scripts/lib/bsp/substrate/target/arch/common/recipes-kernel/linux/linux-yocto-custom.noinstall deleted file mode 100644 index 017d206c24..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/common/recipes-kernel/linux/linux-yocto-custom.noinstall +++ /dev/null | |||
@@ -1 +0,0 @@ | |||
1 | # yocto-bsp-dirname {{ if kernel_choice == "custom": }} linux-yocto-custom | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/common/recipes-kernel/linux/linux-yocto-custom/defconfig b/scripts/lib/bsp/substrate/target/arch/common/recipes-kernel/linux/linux-yocto-custom/defconfig deleted file mode 100644 index ceb0ffa30c..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/common/recipes-kernel/linux/linux-yocto-custom/defconfig +++ /dev/null | |||
@@ -1,5 +0,0 @@ | |||
1 | # | ||
2 | # Placeholder for custom default kernel configuration. yocto-bsp will | ||
3 | # replace this file with a user-specified defconfig. | ||
4 | # | ||
5 | {{ if custom_kernel_defconfig: replace_file(of, custom_kernel_defconfig) }} | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/common/recipes-kernel/linux/linux-yocto-custom/machine-user-config.cfg b/scripts/lib/bsp/substrate/target/arch/common/recipes-kernel/linux/linux-yocto-custom/machine-user-config.cfg deleted file mode 100644 index 922309d5ab..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/common/recipes-kernel/linux/linux-yocto-custom/machine-user-config.cfg +++ /dev/null | |||
@@ -1,9 +0,0 @@ | |||
1 | # yocto-bsp-filename {{=machine}}-user-config.cfg | ||
2 | # | ||
3 | # Used by yocto-kernel to manage config options. | ||
4 | # | ||
5 | # yocto-kernel may change the contents of this file in any | ||
6 | # way it sees fit, including removing comments like this, | ||
7 | # so don't manually make any modifications you don't want | ||
8 | # to lose. | ||
9 | # | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/common/recipes-kernel/linux/linux-yocto-custom/machine-user-features.scc b/scripts/lib/bsp/substrate/target/arch/common/recipes-kernel/linux/linux-yocto-custom/machine-user-features.scc deleted file mode 100644 index 582759e612..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/common/recipes-kernel/linux/linux-yocto-custom/machine-user-features.scc +++ /dev/null | |||
@@ -1 +0,0 @@ | |||
1 | # yocto-bsp-filename {{=machine}}-user-features.scc | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/common/recipes-kernel/linux/linux-yocto-custom/machine-user-patches.scc b/scripts/lib/bsp/substrate/target/arch/common/recipes-kernel/linux/linux-yocto-custom/machine-user-patches.scc deleted file mode 100644 index 6d1138f42a..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/common/recipes-kernel/linux/linux-yocto-custom/machine-user-patches.scc +++ /dev/null | |||
@@ -1,9 +0,0 @@ | |||
1 | # yocto-bsp-filename {{=machine}}-user-patches.scc | ||
2 | # | ||
3 | # Used by yocto-kernel to manage patches. | ||
4 | # | ||
5 | # yocto-kernel may change the contents of this file in any | ||
6 | # way it sees fit, including removing comments like this, | ||
7 | # so don't manually make any modifications you don't want | ||
8 | # to lose. | ||
9 | # | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/common/recipes-kernel/linux/linux-yocto-custom/machine.cfg b/scripts/lib/bsp/substrate/target/arch/common/recipes-kernel/linux/linux-yocto-custom/machine.cfg deleted file mode 100644 index 1ba8201f16..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/common/recipes-kernel/linux/linux-yocto-custom/machine.cfg +++ /dev/null | |||
@@ -1,4 +0,0 @@ | |||
1 | # yocto-bsp-filename {{=machine}}.cfg | ||
2 | # | ||
3 | # A convenient place to add config options, nothing more. | ||
4 | # | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/common/recipes-kernel/linux/linux-yocto-custom/machine.scc b/scripts/lib/bsp/substrate/target/arch/common/recipes-kernel/linux/linux-yocto-custom/machine.scc deleted file mode 100644 index 64d3ed181b..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/common/recipes-kernel/linux/linux-yocto-custom/machine.scc +++ /dev/null | |||
@@ -1,16 +0,0 @@ | |||
1 | # yocto-bsp-filename {{=machine}}.scc | ||
2 | # | ||
3 | # The top-level 'feature' for the {{=machine}} custom kernel. | ||
4 | # | ||
5 | # Essentially this is a convenient top-level container or starting | ||
6 | # point for adding lower-level config fragements and features. | ||
7 | # | ||
8 | |||
9 | # {{=machine}}.cfg in the linux-yocto-custom subdir is just a | ||
10 | # convenient place for adding random config fragments. | ||
11 | |||
12 | kconf hardware {{=machine}}.cfg | ||
13 | |||
14 | # These are used by yocto-kernel to add config fragments and features. | ||
15 | # Don't remove if you plan on using yocto-kernel with this BSP. | ||
16 | |||
diff --git a/scripts/lib/bsp/substrate/target/arch/i386/conf/machine/machine.conf b/scripts/lib/bsp/substrate/target/arch/i386/conf/machine/machine.conf deleted file mode 100644 index 4745c1cc56..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/i386/conf/machine/machine.conf +++ /dev/null | |||
@@ -1,69 +0,0 @@ | |||
1 | # yocto-bsp-filename {{=machine}}.conf | ||
2 | #@TYPE: Machine | ||
3 | #@NAME: {{=machine}} | ||
4 | |||
5 | #@DESCRIPTION: Machine configuration for {{=machine}} systems | ||
6 | |||
7 | {{ if kernel_choice == "custom": preferred_kernel = "linux-yocto-custom" }} | ||
8 | {{ if kernel_choice == "linux-yocto-dev": preferred_kernel = "linux-yocto-dev" }} | ||
9 | {{ if kernel_choice == "custom" or kernel_choice == "linux-yocto-dev" : }} | ||
10 | PREFERRED_PROVIDER_virtual/kernel ?= "{{=preferred_kernel}}" | ||
11 | |||
12 | {{ if kernel_choice != "custom" and kernel_choice != "linux-yocto-dev": preferred_kernel = kernel_choice.split('_')[0] }} | ||
13 | {{ if kernel_choice != "custom" and kernel_choice != "linux-yocto-dev": preferred_kernel_version = kernel_choice.split('_')[1] }} | ||
14 | {{ if kernel_choice != "custom" and kernel_choice != "linux-yocto-dev": }} | ||
15 | PREFERRED_PROVIDER_virtual/kernel ?= "{{=preferred_kernel}}" | ||
16 | PREFERRED_VERSION_{{=preferred_kernel}} ?= "{{=preferred_kernel_version}}%" | ||
17 | |||
18 | {{ input type:"choicelist" name:"tunefile" prio:"40" msg:"Which machine tuning would you like to use?" default:"tune_core2" }} | ||
19 | {{ input type:"choice" val:"tune_i586" msg:"i586 tuning optimizations" }} | ||
20 | {{ input type:"choice" val:"tune_atom" msg:"Atom tuning optimizations" }} | ||
21 | {{ input type:"choice" val:"tune_core2" msg:"Core2 tuning optimizations" }} | ||
22 | {{ if tunefile == "tune_i586": }} | ||
23 | require conf/machine/include/tune-i586.inc | ||
24 | {{ if tunefile == "tune_atom": }} | ||
25 | require conf/machine/include/tune-atom.inc | ||
26 | {{ if tunefile == "tune_core2": }} | ||
27 | DEFAULTTUNE="core2-32" | ||
28 | require conf/machine/include/tune-core2.inc | ||
29 | |||
30 | require conf/machine/include/x86-base.inc | ||
31 | |||
32 | MACHINE_FEATURES += "wifi efi pcbios" | ||
33 | |||
34 | {{ input type:"boolean" name:"xserver" prio:"50" msg:"Do you need support for X? (y/n)" default:"y" }} | ||
35 | |||
36 | {{ if xserver == "y": }} | ||
37 | {{ input type:"choicelist" name:"xserver_choice" prio:"50" msg:"Please select an xserver for this machine:" default:"xserver_vesa" }} | ||
38 | {{ input type:"choice" val:"xserver_vesa" msg:"VESA xserver support" }} | ||
39 | {{ input type:"choice" val:"xserver_i915" msg:"i915 xserver support" }} | ||
40 | {{ input type:"choice" val:"xserver_i965" msg:"i965 xserver support" }} | ||
41 | {{ input type:"choice" val:"xserver_fbdev" msg:"fbdev xserver support" }} | ||
42 | {{ input type:"choice" val:"xserver_modesetting" msg:"modesetting xserver support" }} | ||
43 | |||
44 | {{ if xserver == "y" and kernel_choice != "linux-yocto_4.8" and kernel_choice != "linux-yocto_4.4" and kernel_choice != "linux-yocto_4.1" and kernel_choice != "custom": xserver_choice = "xserver_i915" }} | ||
45 | |||
46 | {{ if xserver == "y": }} | ||
47 | XSERVER ?= "${XSERVER_X86_BASE} \ | ||
48 | ${XSERVER_X86_EXT} \ | ||
49 | {{ if xserver == "y" and xserver_choice == "xserver_vesa": }} | ||
50 | ${XSERVER_X86_VESA} \ | ||
51 | {{ if xserver == "y" and xserver_choice == "xserver_i915": }} | ||
52 | ${XSERVER_X86_I915} \ | ||
53 | {{ if xserver == "y" and xserver_choice == "xserver_i965": }} | ||
54 | ${XSERVER_X86_I965} \ | ||
55 | {{ if xserver == "y" and xserver_choice == "xserver_fbdev": }} | ||
56 | ${XSERVER_X86_FBDEV} \ | ||
57 | {{ if xserver == "y" and xserver_choice == "xserver_modesetting": }} | ||
58 | ${XSERVER_X86_MODESETTING} \ | ||
59 | {{ if xserver == "y": }} | ||
60 | " | ||
61 | |||
62 | MACHINE_EXTRA_RRECOMMENDS += "linux-firmware v86d eee-acpi-scripts" | ||
63 | |||
64 | EXTRA_OECONF_append_pn-matchbox-panel-2 = " --with-battery=acpi" | ||
65 | |||
66 | GLIBC_ADDONS = "nptl" | ||
67 | |||
68 | {{ if xserver == "y" and xserver_choice == "xserver_vesa": }} | ||
69 | APPEND += "video=vesafb vga=0x318" | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/i386/recipes-graphics/xorg-xserver/xserver-xf86-config/machine.noinstall b/scripts/lib/bsp/substrate/target/arch/i386/recipes-graphics/xorg-xserver/xserver-xf86-config/machine.noinstall deleted file mode 100644 index b442d02d57..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/i386/recipes-graphics/xorg-xserver/xserver-xf86-config/machine.noinstall +++ /dev/null | |||
@@ -1 +0,0 @@ | |||
1 | # yocto-bsp-dirname {{=machine}} | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/i386/recipes-graphics/xorg-xserver/xserver-xf86-config/machine/xorg.conf b/scripts/lib/bsp/substrate/target/arch/i386/recipes-graphics/xorg-xserver/xserver-xf86-config/machine/xorg.conf deleted file mode 100644 index ac9a0f1bb0..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/i386/recipes-graphics/xorg-xserver/xserver-xf86-config/machine/xorg.conf +++ /dev/null | |||
@@ -1 +0,0 @@ | |||
1 | # yocto-bsp-filename {{ if xserver == "y": }} this | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/i386/recipes-graphics/xorg-xserver/xserver-xf86-config_0.1.bbappend b/scripts/lib/bsp/substrate/target/arch/i386/recipes-graphics/xorg-xserver/xserver-xf86-config_0.1.bbappend deleted file mode 100644 index 30830031ed..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/i386/recipes-graphics/xorg-xserver/xserver-xf86-config_0.1.bbappend +++ /dev/null | |||
@@ -1,2 +0,0 @@ | |||
1 | # yocto-bsp-filename {{ if xserver == "y": }} this | ||
2 | FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/i386/recipes-kernel/linux/files.noinstall b/scripts/lib/bsp/substrate/target/arch/i386/recipes-kernel/linux/files.noinstall deleted file mode 100644 index 1e0d92c55c..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/i386/recipes-kernel/linux/files.noinstall +++ /dev/null | |||
@@ -1 +0,0 @@ | |||
1 | # yocto-bsp-dirname {{ if kernel_choice != "custom": }} files | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/i386/recipes-kernel/linux/files/machine-preempt-rt.scc b/scripts/lib/bsp/substrate/target/arch/i386/recipes-kernel/linux/files/machine-preempt-rt.scc deleted file mode 100644 index 7146e235a2..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/i386/recipes-kernel/linux/files/machine-preempt-rt.scc +++ /dev/null | |||
@@ -1,17 +0,0 @@ | |||
1 | # yocto-bsp-filename {{=machine}}-preempt-rt.scc | ||
2 | define KMACHINE {{=machine}} | ||
3 | |||
4 | define KARCH i386 | ||
5 | |||
6 | include {{=map_preempt_rt_kbranch(need_new_kbranch, new_kbranch, existing_kbranch)}} | ||
7 | {{ if need_new_kbranch == "y": }} | ||
8 | define KTYPE {{=new_kbranch}} | ||
9 | branch {{=machine}} | ||
10 | |||
11 | include {{=machine}}.scc | ||
12 | |||
13 | # default policy for preempt-rt kernels | ||
14 | include cfg/usb-mass-storage.scc | ||
15 | include cfg/boot-live.scc | ||
16 | include features/latencytop/latencytop.scc | ||
17 | include features/profiling/profiling.scc | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/i386/recipes-kernel/linux/files/machine-standard.scc b/scripts/lib/bsp/substrate/target/arch/i386/recipes-kernel/linux/files/machine-standard.scc deleted file mode 100644 index 38d1ca558b..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/i386/recipes-kernel/linux/files/machine-standard.scc +++ /dev/null | |||
@@ -1,17 +0,0 @@ | |||
1 | # yocto-bsp-filename {{=machine}}-standard.scc | ||
2 | define KMACHINE {{=machine}} | ||
3 | |||
4 | define KARCH i386 | ||
5 | |||
6 | include {{=map_standard_kbranch(need_new_kbranch, new_kbranch, existing_kbranch)}} nopatch | ||
7 | {{ if need_new_kbranch == "y": }} | ||
8 | define KTYPE {{=new_kbranch}} | ||
9 | branch {{=machine}} | ||
10 | |||
11 | include {{=machine}}.scc | ||
12 | |||
13 | # default policy for standard kernels | ||
14 | include cfg/usb-mass-storage.scc | ||
15 | include cfg/boot-live.scc | ||
16 | include features/latencytop/latencytop.scc | ||
17 | include features/profiling/profiling.scc | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/i386/recipes-kernel/linux/files/machine-tiny.scc b/scripts/lib/bsp/substrate/target/arch/i386/recipes-kernel/linux/files/machine-tiny.scc deleted file mode 100644 index 91373b3a5d..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/i386/recipes-kernel/linux/files/machine-tiny.scc +++ /dev/null | |||
@@ -1,11 +0,0 @@ | |||
1 | # yocto-bsp-filename {{=machine}}-tiny.scc | ||
2 | define KMACHINE {{=machine}} | ||
3 | |||
4 | define KARCH i386 | ||
5 | |||
6 | include {{=map_tiny_kbranch(need_new_kbranch, new_kbranch, existing_kbranch)}} | ||
7 | {{ if need_new_kbranch == "y": }} | ||
8 | define KTYPE {{=new_kbranch}} | ||
9 | branch {{=machine}} | ||
10 | |||
11 | include {{=machine}}.scc | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/i386/recipes-kernel/linux/files/machine-user-config.cfg b/scripts/lib/bsp/substrate/target/arch/i386/recipes-kernel/linux/files/machine-user-config.cfg deleted file mode 100644 index 69efdcc759..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/i386/recipes-kernel/linux/files/machine-user-config.cfg +++ /dev/null | |||
@@ -1 +0,0 @@ | |||
1 | # yocto-bsp-filename {{=machine}}-user-config.cfg \ No newline at end of file | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/i386/recipes-kernel/linux/files/machine-user-features.scc b/scripts/lib/bsp/substrate/target/arch/i386/recipes-kernel/linux/files/machine-user-features.scc deleted file mode 100644 index 85be26de97..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/i386/recipes-kernel/linux/files/machine-user-features.scc +++ /dev/null | |||
@@ -1 +0,0 @@ | |||
1 | # yocto-bsp-filename {{=machine}}-user-features.scc \ No newline at end of file | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/i386/recipes-kernel/linux/files/machine-user-patches.scc b/scripts/lib/bsp/substrate/target/arch/i386/recipes-kernel/linux/files/machine-user-patches.scc deleted file mode 100644 index 4c59daac46..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/i386/recipes-kernel/linux/files/machine-user-patches.scc +++ /dev/null | |||
@@ -1 +0,0 @@ | |||
1 | # yocto-bsp-filename {{=machine}}-user-patches.scc \ No newline at end of file | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/i386/recipes-kernel/linux/files/machine.cfg b/scripts/lib/bsp/substrate/target/arch/i386/recipes-kernel/linux/files/machine.cfg deleted file mode 100644 index fe5b8823fb..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/i386/recipes-kernel/linux/files/machine.cfg +++ /dev/null | |||
@@ -1,58 +0,0 @@ | |||
1 | # yocto-bsp-filename {{=machine}}.cfg | ||
2 | CONFIG_X86_32=y | ||
3 | # Must explicitly disable 64BIT | ||
4 | # CONFIG_64BIT is not set | ||
5 | |||
6 | CONFIG_MATOM=y | ||
7 | CONFIG_PRINTK=y | ||
8 | |||
9 | # Basic hardware support for the box - network, USB, PCI, sound | ||
10 | CONFIG_NETDEVICES=y | ||
11 | CONFIG_ATA=y | ||
12 | CONFIG_ATA_GENERIC=y | ||
13 | CONFIG_ATA_SFF=y | ||
14 | CONFIG_PCI=y | ||
15 | CONFIG_MMC=y | ||
16 | CONFIG_MMC_SDHCI=y | ||
17 | CONFIG_USB_SUPPORT=y | ||
18 | CONFIG_USB=y | ||
19 | CONFIG_USB_ARCH_HAS_EHCI=y | ||
20 | CONFIG_R8169=y | ||
21 | CONFIG_PATA_SCH=y | ||
22 | CONFIG_MMC_SDHCI_PCI=y | ||
23 | CONFIG_USB_EHCI_HCD=y | ||
24 | CONFIG_PCIEPORTBUS=y | ||
25 | CONFIG_NET=y | ||
26 | CONFIG_USB_UHCI_HCD=y | ||
27 | CONFIG_USB_OHCI_HCD=y | ||
28 | CONFIG_BLK_DEV_SD=y | ||
29 | CONFIG_CHR_DEV_SG=y | ||
30 | CONFIG_SOUND=y | ||
31 | CONFIG_SND=y | ||
32 | CONFIG_SND_HDA_INTEL=y | ||
33 | CONFIG_SATA_AHCI=y | ||
34 | CONFIG_AGP=y | ||
35 | CONFIG_PM=y | ||
36 | CONFIG_ACPI=y | ||
37 | CONFIG_BACKLIGHT_LCD_SUPPORT=y | ||
38 | CONFIG_BACKLIGHT_CLASS_DEVICE=y | ||
39 | CONFIG_INPUT=y | ||
40 | |||
41 | # Make sure these are on, otherwise the bootup won't be fun | ||
42 | CONFIG_EXT3_FS=y | ||
43 | CONFIG_UNIX=y | ||
44 | CONFIG_INET=y | ||
45 | CONFIG_MODULES=y | ||
46 | CONFIG_SHMEM=y | ||
47 | CONFIG_TMPFS=y | ||
48 | CONFIG_PACKET=y | ||
49 | |||
50 | # Needed for booting (and using) USB memory sticks | ||
51 | CONFIG_BLK_DEV_LOOP=y | ||
52 | CONFIG_NLS_CODEPAGE_437=y | ||
53 | CONFIG_NLS_ISO8859_1=y | ||
54 | |||
55 | CONFIG_RD_GZIP=y | ||
56 | |||
57 | # Needed for booting (and using) CD images | ||
58 | CONFIG_BLK_DEV_SR=y | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/i386/recipes-kernel/linux/files/machine.scc b/scripts/lib/bsp/substrate/target/arch/i386/recipes-kernel/linux/files/machine.scc deleted file mode 100644 index 3e4c54fcf5..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/i386/recipes-kernel/linux/files/machine.scc +++ /dev/null | |||
@@ -1,19 +0,0 @@ | |||
1 | # yocto-bsp-filename {{=machine}}.scc | ||
2 | kconf hardware {{=machine}}.cfg | ||
3 | |||
4 | include features/intel-e1xxxx/intel-e100.scc | ||
5 | include features/intel-e1xxxx/intel-e1xxxx.scc | ||
6 | |||
7 | {{ if xserver == "y" and xserver_choice == "xserver_i915" or xserver_choice == "xserver_i965": }} | ||
8 | include features/i915/i915.scc | ||
9 | |||
10 | include features/serial/8250.scc | ||
11 | include features/ericsson-3g/f5521gw.scc | ||
12 | |||
13 | {{ if xserver == "y" and xserver_choice == "xserver_vesa": }} | ||
14 | include cfg/vesafb.scc | ||
15 | |||
16 | include cfg/usb-mass-storage.scc | ||
17 | include cfg/boot-live.scc | ||
18 | include features/power/intel.scc | ||
19 | |||
diff --git a/scripts/lib/bsp/substrate/target/arch/i386/recipes-kernel/linux/kernel-list.noinstall b/scripts/lib/bsp/substrate/target/arch/i386/recipes-kernel/linux/kernel-list.noinstall deleted file mode 100644 index 917f0e2207..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/i386/recipes-kernel/linux/kernel-list.noinstall +++ /dev/null | |||
@@ -1,5 +0,0 @@ | |||
1 | {{ if kernel_choice != "custom": }} | ||
2 | {{ input type:"boolean" name:"use_default_kernel" prio:"10" msg:"Would you like to use the default (4.12) kernel? (y/n)" default:"y"}} | ||
3 | |||
4 | {{ if kernel_choice != "custom" and use_default_kernel == "n": }} | ||
5 | {{ input type:"choicelist" name:"kernel_choice" gen:"bsp.kernel.kernels" prio:"10" msg:"Please choose the kernel to use in this BSP:" default:"linux-yocto_4.12"}} | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/i386/recipes-kernel/linux/linux-yocto-dev.bbappend b/scripts/lib/bsp/substrate/target/arch/i386/recipes-kernel/linux/linux-yocto-dev.bbappend deleted file mode 100644 index 22ed273811..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/i386/recipes-kernel/linux/linux-yocto-dev.bbappend +++ /dev/null | |||
@@ -1,28 +0,0 @@ | |||
1 | # yocto-bsp-filename {{ if kernel_choice == "linux-yocto-dev": }} this | ||
2 | FILESEXTRAPATHS_prepend := "${THISDIR}/files:" | ||
3 | |||
4 | PR := "${PR}.1" | ||
5 | |||
6 | COMPATIBLE_MACHINE_{{=machine}} = "{{=machine}}" | ||
7 | {{ input type:"boolean" name:"need_new_kbranch" prio:"20" msg:"Do you need a new machine branch for this BSP (the alternative is to re-use an existing branch)? [y/n]" default:"y" }} | ||
8 | |||
9 | {{ if need_new_kbranch == "y": }} | ||
10 | {{ input type:"choicelist" name:"new_kbranch" nameappend:"i386" gen:"bsp.kernel.all_branches" branches_base:"standard" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/base" }} | ||
11 | |||
12 | {{ if need_new_kbranch == "n": }} | ||
13 | {{ input type:"choicelist" name:"existing_kbranch" nameappend:"i386" gen:"bsp.kernel.all_branches" branches_base:"standard" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/base" }} | ||
14 | |||
15 | {{ if need_new_kbranch == "n": }} | ||
16 | KBRANCH_{{=machine}} = "{{=existing_kbranch}}" | ||
17 | |||
18 | {{ input type:"boolean" name:"smp" prio:"30" msg:"Would you like SMP support? (y/n)" default:"y"}} | ||
19 | {{ if smp == "y": }} | ||
20 | KERNEL_FEATURES_append_{{=machine}} += " cfg/smp.scc" | ||
21 | |||
22 | SRC_URI += "file://{{=machine}}.scc \ | ||
23 | file://{{=machine}}.cfg \ | ||
24 | file://{{=machine}}-standard.scc \ | ||
25 | file://{{=machine}}-user-config.cfg \ | ||
26 | file://{{=machine}}-user-features.scc \ | ||
27 | file://{{=machine}}-user-patches.scc \ | ||
28 | " | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/i386/recipes-kernel/linux/linux-yocto-tiny_4.10.bbappend b/scripts/lib/bsp/substrate/target/arch/i386/recipes-kernel/linux/linux-yocto-tiny_4.10.bbappend deleted file mode 100644 index bae943ea1e..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/i386/recipes-kernel/linux/linux-yocto-tiny_4.10.bbappend +++ /dev/null | |||
@@ -1,37 +0,0 @@ | |||
1 | # yocto-bsp-filename {{ if kernel_choice == "linux-yocto-tiny_4.10": }} this | ||
2 | FILESEXTRAPATHS_prepend := "${THISDIR}/files:" | ||
3 | |||
4 | PR := "${PR}.1" | ||
5 | |||
6 | COMPATIBLE_MACHINE_{{=machine}} = "{{=machine}}" | ||
7 | |||
8 | {{ input type:"boolean" name:"need_new_kbranch" prio:"20" msg:"Do you need a new machine branch for this BSP (the alternative is to re-use an existing branch)? [y/n]" default:"y" }} | ||
9 | |||
10 | {{ if need_new_kbranch == "y": }} | ||
11 | {{ input type:"choicelist" name:"new_kbranch" gen:"bsp.kernel.all_branches" branches_base:"standard/tiny" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/tiny/base" }} | ||
12 | |||
13 | {{ if need_new_kbranch == "n": }} | ||
14 | {{ input type:"choicelist" name:"existing_kbranch" gen:"bsp.kernel.all_branches" branches_base:"standard/tiny" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/tiny/base" }} | ||
15 | |||
16 | {{ if need_new_kbranch == "n": }} | ||
17 | KBRANCH_{{=machine}} = "{{=existing_kbranch}}" | ||
18 | |||
19 | {{ input type:"boolean" name:"smp" prio:"30" msg:"Do you need SMP support? (y/n)" default:"y"}} | ||
20 | {{ if smp == "y": }} | ||
21 | KERNEL_FEATURES_append_{{=machine}} += " cfg/smp.scc" | ||
22 | |||
23 | SRC_URI += "file://{{=machine}}.scc \ | ||
24 | file://{{=machine}}.cfg \ | ||
25 | file://{{=machine}}-tiny.scc \ | ||
26 | file://{{=machine}}-user-config.cfg \ | ||
27 | file://{{=machine}}-user-patches.scc \ | ||
28 | file://{{=machine}}-user-features.scc \ | ||
29 | " | ||
30 | |||
31 | # replace these SRCREVs with the real commit ids once you've had | ||
32 | # the appropriate changes committed to the upstream linux-yocto repo | ||
33 | SRCREV_machine_pn-linux-yocto-tiny_{{=machine}} ?= "${AUTOREV}" | ||
34 | SRCREV_meta_pn-linux-yocto-tiny_{{=machine}} ?= "${AUTOREV}" | ||
35 | #LINUX_VERSION = "4.10" | ||
36 | #Remove the following line once AUTOREV is locked to a certain SRCREV | ||
37 | KERNEL_VERSION_SANITY_SKIP = "1" | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/i386/recipes-kernel/linux/linux-yocto-tiny_4.12.bbappend b/scripts/lib/bsp/substrate/target/arch/i386/recipes-kernel/linux/linux-yocto-tiny_4.12.bbappend deleted file mode 100644 index 6f3e104c66..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/i386/recipes-kernel/linux/linux-yocto-tiny_4.12.bbappend +++ /dev/null | |||
@@ -1,37 +0,0 @@ | |||
1 | # yocto-bsp-filename {{ if kernel_choice == "linux-yocto-tiny_4.12": }} this | ||
2 | FILESEXTRAPATHS_prepend := "${THISDIR}/files:" | ||
3 | |||
4 | PR := "${PR}.1" | ||
5 | |||
6 | COMPATIBLE_MACHINE_{{=machine}} = "{{=machine}}" | ||
7 | |||
8 | {{ input type:"boolean" name:"need_new_kbranch" prio:"20" msg:"Do you need a new machine branch for this BSP (the alternative is to re-use an existing branch)? [y/n]" default:"y" }} | ||
9 | |||
10 | {{ if need_new_kbranch == "y": }} | ||
11 | {{ input type:"choicelist" name:"new_kbranch" gen:"bsp.kernel.all_branches" branches_base:"standard/tiny" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/tiny/base" }} | ||
12 | |||
13 | {{ if need_new_kbranch == "n": }} | ||
14 | {{ input type:"choicelist" name:"existing_kbranch" gen:"bsp.kernel.all_branches" branches_base:"standard/tiny" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/tiny/base" }} | ||
15 | |||
16 | {{ if need_new_kbranch == "n": }} | ||
17 | KBRANCH_{{=machine}} = "{{=existing_kbranch}}" | ||
18 | |||
19 | {{ input type:"boolean" name:"smp" prio:"30" msg:"Do you need SMP support? (y/n)" default:"y"}} | ||
20 | {{ if smp == "y": }} | ||
21 | KERNEL_FEATURES_append_{{=machine}} += " cfg/smp.scc" | ||
22 | |||
23 | SRC_URI += "file://{{=machine}}.scc \ | ||
24 | file://{{=machine}}.cfg \ | ||
25 | file://{{=machine}}-tiny.scc \ | ||
26 | file://{{=machine}}-user-config.cfg \ | ||
27 | file://{{=machine}}-user-patches.scc \ | ||
28 | file://{{=machine}}-user-features.scc \ | ||
29 | " | ||
30 | |||
31 | # replace these SRCREVs with the real commit ids once you've had | ||
32 | # the appropriate changes committed to the upstream linux-yocto repo | ||
33 | SRCREV_machine_pn-linux-yocto-tiny_{{=machine}} ?= "${AUTOREV}" | ||
34 | SRCREV_meta_pn-linux-yocto-tiny_{{=machine}} ?= "${AUTOREV}" | ||
35 | #LINUX_VERSION = "4.10" | ||
36 | #Remove the following line once AUTOREV is locked to a certain SRCREV | ||
37 | KERNEL_VERSION_SANITY_SKIP = "1" | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/i386/recipes-kernel/linux/linux-yocto-tiny_4.4.bbappend b/scripts/lib/bsp/substrate/target/arch/i386/recipes-kernel/linux/linux-yocto-tiny_4.4.bbappend deleted file mode 100644 index 62d1817f22..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/i386/recipes-kernel/linux/linux-yocto-tiny_4.4.bbappend +++ /dev/null | |||
@@ -1,37 +0,0 @@ | |||
1 | # yocto-bsp-filename {{ if kernel_choice == "linux-yocto-tiny_4.4": }} this | ||
2 | FILESEXTRAPATHS_prepend := "${THISDIR}/files:" | ||
3 | |||
4 | PR := "${PR}.1" | ||
5 | |||
6 | COMPATIBLE_MACHINE_{{=machine}} = "{{=machine}}" | ||
7 | |||
8 | {{ input type:"boolean" name:"need_new_kbranch" prio:"20" msg:"Do you need a new machine branch for this BSP (the alternative is to re-use an existing branch)? [y/n]" default:"y" }} | ||
9 | |||
10 | {{ if need_new_kbranch == "y": }} | ||
11 | {{ input type:"choicelist" name:"new_kbranch" gen:"bsp.kernel.all_branches" branches_base:"standard/tiny" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/tiny/base" }} | ||
12 | |||
13 | {{ if need_new_kbranch == "n": }} | ||
14 | {{ input type:"choicelist" name:"existing_kbranch" gen:"bsp.kernel.all_branches" branches_base:"standard/tiny" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/tiny/base" }} | ||
15 | |||
16 | {{ if need_new_kbranch == "n": }} | ||
17 | KBRANCH_{{=machine}} = "{{=existing_kbranch}}" | ||
18 | |||
19 | {{ input type:"boolean" name:"smp" prio:"30" msg:"Do you need SMP support? (y/n)" default:"y"}} | ||
20 | {{ if smp == "y": }} | ||
21 | KERNEL_FEATURES_append_{{=machine}} += " cfg/smp.scc" | ||
22 | |||
23 | SRC_URI += "file://{{=machine}}.scc \ | ||
24 | file://{{=machine}}.cfg \ | ||
25 | file://{{=machine}}-tiny.scc \ | ||
26 | file://{{=machine}}-user-config.cfg \ | ||
27 | file://{{=machine}}-user-patches.scc \ | ||
28 | file://{{=machine}}-user-features.scc \ | ||
29 | " | ||
30 | |||
31 | # replace these SRCREVs with the real commit ids once you've had | ||
32 | # the appropriate changes committed to the upstream linux-yocto repo | ||
33 | SRCREV_machine_pn-linux-yocto-tiny_{{=machine}} ?= "${AUTOREV}" | ||
34 | SRCREV_meta_pn-linux-yocto-tiny_{{=machine}} ?= "${AUTOREV}" | ||
35 | #LINUX_VERSION = "4.4" | ||
36 | #Remove the following line once AUTOREV is locked to a certain SRCREV | ||
37 | KERNEL_VERSION_SANITY_SKIP = "1" | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/i386/recipes-kernel/linux/linux-yocto_4.10.bbappend b/scripts/lib/bsp/substrate/target/arch/i386/recipes-kernel/linux/linux-yocto_4.10.bbappend deleted file mode 100644 index f8616ed876..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/i386/recipes-kernel/linux/linux-yocto_4.10.bbappend +++ /dev/null | |||
@@ -1,37 +0,0 @@ | |||
1 | # yocto-bsp-filename {{ if kernel_choice == "linux-yocto_4.10": }} this | ||
2 | FILESEXTRAPATHS_prepend := "${THISDIR}/files:" | ||
3 | |||
4 | PR := "${PR}.1" | ||
5 | |||
6 | COMPATIBLE_MACHINE_{{=machine}} = "{{=machine}}" | ||
7 | |||
8 | {{ input type:"boolean" name:"need_new_kbranch" prio:"20" msg:"Do you need a new machine branch for this BSP (the alternative is to re-use an existing branch)? [y/n]" default:"y" }} | ||
9 | |||
10 | {{ if need_new_kbranch == "y": }} | ||
11 | {{ input type:"choicelist" name:"new_kbranch" gen:"bsp.kernel.all_branches" branches_base:"standard:standard" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/base" }} | ||
12 | |||
13 | {{ if need_new_kbranch == "n": }} | ||
14 | {{ input type:"choicelist" name:"existing_kbranch" gen:"bsp.kernel.all_branches" branches_base:"standard:standard" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/base" }} | ||
15 | |||
16 | {{ if need_new_kbranch == "n": }} | ||
17 | KBRANCH_{{=machine}} = "{{=existing_kbranch}}" | ||
18 | |||
19 | {{ input type:"boolean" name:"smp" prio:"30" msg:"Do you need SMP support? (y/n)" default:"y"}} | ||
20 | {{ if smp == "y": }} | ||
21 | KERNEL_FEATURES_append_{{=machine}} += " cfg/smp.scc" | ||
22 | |||
23 | SRC_URI += "file://{{=machine}}.scc \ | ||
24 | file://{{=machine}}.cfg \ | ||
25 | file://{{=machine}}-standard.scc \ | ||
26 | file://{{=machine}}-user-config.cfg \ | ||
27 | file://{{=machine}}-user-features.scc \ | ||
28 | file://{{=machine}}-user-patches.scc \ | ||
29 | " | ||
30 | |||
31 | # replace these SRCREVs with the real commit ids once you've had | ||
32 | # the appropriate changes committed to the upstream linux-yocto repo | ||
33 | SRCREV_machine_pn-linux-yocto_{{=machine}} ?= "${AUTOREV}" | ||
34 | SRCREV_meta_pn-linux-yocto_{{=machine}} ?= "${AUTOREV}" | ||
35 | #LINUX_VERSION = "4.10" | ||
36 | #Remove the following line once AUTOREV is locked to a certain SRCREV | ||
37 | KERNEL_VERSION_SANITY_SKIP = "1" | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/i386/recipes-kernel/linux/linux-yocto_4.12.bbappend b/scripts/lib/bsp/substrate/target/arch/i386/recipes-kernel/linux/linux-yocto_4.12.bbappend deleted file mode 100644 index 20d57f673c..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/i386/recipes-kernel/linux/linux-yocto_4.12.bbappend +++ /dev/null | |||
@@ -1,37 +0,0 @@ | |||
1 | # yocto-bsp-filename {{ if kernel_choice == "linux-yocto_4.12": }} this | ||
2 | FILESEXTRAPATHS_prepend := "${THISDIR}/files:" | ||
3 | |||
4 | PR := "${PR}.1" | ||
5 | |||
6 | COMPATIBLE_MACHINE_{{=machine}} = "{{=machine}}" | ||
7 | |||
8 | {{ input type:"boolean" name:"need_new_kbranch" prio:"20" msg:"Do you need a new machine branch for this BSP (the alternative is to re-use an existing branch)? [y/n]" default:"y" }} | ||
9 | |||
10 | {{ if need_new_kbranch == "y": }} | ||
11 | {{ input type:"choicelist" name:"new_kbranch" gen:"bsp.kernel.all_branches" branches_base:"standard:standard" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/base" }} | ||
12 | |||
13 | {{ if need_new_kbranch == "n": }} | ||
14 | {{ input type:"choicelist" name:"existing_kbranch" gen:"bsp.kernel.all_branches" branches_base:"standard:standard" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/base" }} | ||
15 | |||
16 | {{ if need_new_kbranch == "n": }} | ||
17 | KBRANCH_{{=machine}} = "{{=existing_kbranch}}" | ||
18 | |||
19 | {{ input type:"boolean" name:"smp" prio:"30" msg:"Do you need SMP support? (y/n)" default:"y"}} | ||
20 | {{ if smp == "y": }} | ||
21 | KERNEL_FEATURES_append_{{=machine}} += " cfg/smp.scc" | ||
22 | |||
23 | SRC_URI += "file://{{=machine}}.scc \ | ||
24 | file://{{=machine}}.cfg \ | ||
25 | file://{{=machine}}-standard.scc \ | ||
26 | file://{{=machine}}-user-config.cfg \ | ||
27 | file://{{=machine}}-user-features.scc \ | ||
28 | file://{{=machine}}-user-patches.scc \ | ||
29 | " | ||
30 | |||
31 | # replace these SRCREVs with the real commit ids once you've had | ||
32 | # the appropriate changes committed to the upstream linux-yocto repo | ||
33 | SRCREV_machine_pn-linux-yocto_{{=machine}} ?= "${AUTOREV}" | ||
34 | SRCREV_meta_pn-linux-yocto_{{=machine}} ?= "${AUTOREV}" | ||
35 | #LINUX_VERSION = "4.10" | ||
36 | #Remove the following line once AUTOREV is locked to a certain SRCREV | ||
37 | KERNEL_VERSION_SANITY_SKIP = "1" | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/i386/recipes-kernel/linux/linux-yocto_4.4.bbappend b/scripts/lib/bsp/substrate/target/arch/i386/recipes-kernel/linux/linux-yocto_4.4.bbappend deleted file mode 100644 index 0a9d475951..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/i386/recipes-kernel/linux/linux-yocto_4.4.bbappend +++ /dev/null | |||
@@ -1,37 +0,0 @@ | |||
1 | # yocto-bsp-filename {{ if kernel_choice == "linux-yocto_4.4": }} this | ||
2 | FILESEXTRAPATHS_prepend := "${THISDIR}/files:" | ||
3 | |||
4 | PR := "${PR}.1" | ||
5 | |||
6 | COMPATIBLE_MACHINE_{{=machine}} = "{{=machine}}" | ||
7 | |||
8 | {{ input type:"boolean" name:"need_new_kbranch" prio:"20" msg:"Do you need a new machine branch for this BSP (the alternative is to re-use an existing branch)? [y/n]" default:"y" }} | ||
9 | |||
10 | {{ if need_new_kbranch == "y": }} | ||
11 | {{ input type:"choicelist" name:"new_kbranch" gen:"bsp.kernel.all_branches" branches_base:"standard:standard" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/base" }} | ||
12 | |||
13 | {{ if need_new_kbranch == "n": }} | ||
14 | {{ input type:"choicelist" name:"existing_kbranch" gen:"bsp.kernel.all_branches" branches_base:"standard:standard" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/base" }} | ||
15 | |||
16 | {{ if need_new_kbranch == "n": }} | ||
17 | KBRANCH_{{=machine}} = "{{=existing_kbranch}}" | ||
18 | |||
19 | {{ input type:"boolean" name:"smp" prio:"30" msg:"Do you need SMP support? (y/n)" default:"y"}} | ||
20 | {{ if smp == "y": }} | ||
21 | KERNEL_FEATURES_append_{{=machine}} += " cfg/smp.scc" | ||
22 | |||
23 | SRC_URI += "file://{{=machine}}.scc \ | ||
24 | file://{{=machine}}.cfg \ | ||
25 | file://{{=machine}}-standard.scc \ | ||
26 | file://{{=machine}}-user-config.cfg \ | ||
27 | file://{{=machine}}-user-features.scc \ | ||
28 | file://{{=machine}}-user-patches.scc \ | ||
29 | " | ||
30 | |||
31 | # replace these SRCREVs with the real commit ids once you've had | ||
32 | # the appropriate changes committed to the upstream linux-yocto repo | ||
33 | SRCREV_machine_pn-linux-yocto_{{=machine}} ?= "${AUTOREV}" | ||
34 | SRCREV_meta_pn-linux-yocto_{{=machine}} ?= "${AUTOREV}" | ||
35 | #LINUX_VERSION = "4.4" | ||
36 | #Remove the following line once AUTOREV is locked to a certain SRCREV | ||
37 | KERNEL_VERSION_SANITY_SKIP = "1" | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/layer/COPYING.MIT b/scripts/lib/bsp/substrate/target/arch/layer/COPYING.MIT deleted file mode 100644 index 89de354795..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/layer/COPYING.MIT +++ /dev/null | |||
@@ -1,17 +0,0 @@ | |||
1 | Permission is hereby granted, free of charge, to any person obtaining a copy | ||
2 | of this software and associated documentation files (the "Software"), to deal | ||
3 | in the Software without restriction, including without limitation the rights | ||
4 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
5 | copies of the Software, and to permit persons to whom the Software is | ||
6 | furnished to do so, subject to the following conditions: | ||
7 | |||
8 | The above copyright notice and this permission notice shall be included in | ||
9 | all copies or substantial portions of the Software. | ||
10 | |||
11 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
12 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
13 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
14 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
15 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
16 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
17 | THE SOFTWARE. | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/layer/README b/scripts/lib/bsp/substrate/target/arch/layer/README deleted file mode 100644 index ca6527cd85..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/layer/README +++ /dev/null | |||
@@ -1,64 +0,0 @@ | |||
1 | This README file contains information on the contents of the | ||
2 | {{=layer_name}} layer. | ||
3 | |||
4 | Please see the corresponding sections below for details. | ||
5 | |||
6 | |||
7 | Dependencies | ||
8 | ============ | ||
9 | |||
10 | This layer depends on: | ||
11 | |||
12 | URI: git://git.openembedded.org/bitbake | ||
13 | branch: master | ||
14 | |||
15 | URI: git://git.openembedded.org/openembedded-core | ||
16 | layers: meta | ||
17 | branch: master | ||
18 | |||
19 | URI: git://git.yoctoproject.org/xxxx | ||
20 | layers: xxxx | ||
21 | branch: master | ||
22 | |||
23 | |||
24 | Patches | ||
25 | ======= | ||
26 | |||
27 | Please submit any patches against the {{=layer_name}} layer to the | ||
28 | xxxx mailing list (xxxx@zzzz.org) and cc: the maintainer: | ||
29 | |||
30 | Maintainer: XXX YYYYYY <xxx.yyyyyy@zzzzz.com> | ||
31 | |||
32 | |||
33 | Table of Contents | ||
34 | ================= | ||
35 | |||
36 | I. Adding the {{=layer_name}} layer to your build | ||
37 | II. Misc | ||
38 | |||
39 | |||
40 | I. Adding the {{=layer_name}} layer to your build | ||
41 | ================================================= | ||
42 | |||
43 | --- replace with specific instructions for the {{=layer_name}} layer --- | ||
44 | |||
45 | In order to use this layer, you need to make the build system aware of | ||
46 | it. | ||
47 | |||
48 | Assuming the {{=layer_name}} layer exists at the top-level of your | ||
49 | yocto build tree, you can add it to the build system by adding the | ||
50 | location of the {{=layer_name}} layer to bblayers.conf, along with any | ||
51 | other layers needed. e.g.: | ||
52 | |||
53 | BBLAYERS ?= " \ | ||
54 | /path/to/yocto/meta \ | ||
55 | /path/to/yocto/meta-poky \ | ||
56 | /path/to/yocto/meta-yocto-bsp \ | ||
57 | /path/to/yocto/meta-{{=layer_name}} \ | ||
58 | " | ||
59 | |||
60 | |||
61 | II. Misc | ||
62 | ======== | ||
63 | |||
64 | --- replace with specific information about the {{=layer_name}} layer --- | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/layer/conf/layer.conf b/scripts/lib/bsp/substrate/target/arch/layer/conf/layer.conf deleted file mode 100644 index bdffe17195..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/layer/conf/layer.conf +++ /dev/null | |||
@@ -1,10 +0,0 @@ | |||
1 | # We have a conf and classes directory, add to BBPATH | ||
2 | BBPATH .= ":${LAYERDIR}" | ||
3 | |||
4 | # We have recipes-* directories, add to BBFILES | ||
5 | BBFILES += "${LAYERDIR}/recipes-*/*/*.bb \ | ||
6 | ${LAYERDIR}/recipes-*/*/*.bbappend" | ||
7 | |||
8 | BBFILE_COLLECTIONS += "{{=layer_name}}" | ||
9 | BBFILE_PATTERN_{{=layer_name}} = "^${LAYERDIR}/" | ||
10 | BBFILE_PRIORITY_{{=layer_name}} = "{{=layer_priority}}" | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/layer/layer-questions.noinstall b/scripts/lib/bsp/substrate/target/arch/layer/layer-questions.noinstall deleted file mode 100644 index e2a89c3b5d..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/layer/layer-questions.noinstall +++ /dev/null | |||
@@ -1,14 +0,0 @@ | |||
1 | {{ input type:"edit" name:"layer_priority" prio:"20" msg:"Please enter the layer priority you'd like to use for the layer:" default:"6"}} | ||
2 | |||
3 | {{ input type:"boolean" name:"create_example_recipe" prio:"20" msg:"Would you like to have an example recipe created? (y/n)" default:"n"}} | ||
4 | |||
5 | {{ if create_example_recipe == "y": }} | ||
6 | {{ input type:"edit" name:"example_recipe_name" prio:"20" msg:"Please enter the name you'd like to use for your example recipe:" default:"example"}} | ||
7 | |||
8 | {{ input type:"boolean" name:"create_example_bbappend" prio:"20" msg:"Would you like to have an example bbappend file created? (y/n)" default:"n"}} | ||
9 | |||
10 | {{ if create_example_bbappend == "y": }} | ||
11 | {{ input type:"edit" name:"example_bbappend_name" prio:"20" msg:"Please enter the name you'd like to use for your bbappend file:" default:"example"}} | ||
12 | |||
13 | {{ if create_example_bbappend == "y": }} | ||
14 | {{ input type:"edit" name:"example_bbappend_version" prio:"20" msg:"Please enter the version number you'd like to use for your bbappend file (this should match the recipe you're appending to):" default:"0.1"}} | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/layer/recipes-example-bbappend.noinstall b/scripts/lib/bsp/substrate/target/arch/layer/recipes-example-bbappend.noinstall deleted file mode 100644 index 3594e6583c..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/layer/recipes-example-bbappend.noinstall +++ /dev/null | |||
@@ -1 +0,0 @@ | |||
1 | # yocto-bsp-dirname {{ if create_example_bbappend == "y": }} recipes-example-bbappend | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/layer/recipes-example-bbappend/example-bbappend/example-bbappend-version.bbappend b/scripts/lib/bsp/substrate/target/arch/layer/recipes-example-bbappend/example-bbappend/example-bbappend-version.bbappend deleted file mode 100644 index 353133080a..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/layer/recipes-example-bbappend/example-bbappend/example-bbappend-version.bbappend +++ /dev/null | |||
@@ -1,9 +0,0 @@ | |||
1 | # yocto-bsp-filename {{=example_bbappend_name}}_{{=example_bbappend_version}}.bbappend | ||
2 | FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}-${PV}:" | ||
3 | |||
4 | # | ||
5 | # This .bbappend doesn't yet do anything - replace this text with | ||
6 | # modifications to the example_0.1.bb recipe, or whatever recipe it is | ||
7 | # that you want to modify with this .bbappend (make sure you change | ||
8 | # the recipe name (PN) and version (PV) to match). | ||
9 | # | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/layer/recipes-example-bbappend/example-bbappend/example-bbappend-version.noinstall b/scripts/lib/bsp/substrate/target/arch/layer/recipes-example-bbappend/example-bbappend/example-bbappend-version.noinstall deleted file mode 100644 index 46df8a8e04..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/layer/recipes-example-bbappend/example-bbappend/example-bbappend-version.noinstall +++ /dev/null | |||
@@ -1 +0,0 @@ | |||
1 | # yocto-bsp-dirname {{=example_bbappend_name}}-{{=example_bbappend_version}} | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/layer/recipes-example-bbappend/example-bbappend/example-bbappend-version/example.patch b/scripts/lib/bsp/substrate/target/arch/layer/recipes-example-bbappend/example-bbappend/example-bbappend-version/example.patch deleted file mode 100644 index 2000a34da5..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/layer/recipes-example-bbappend/example-bbappend/example-bbappend-version/example.patch +++ /dev/null | |||
@@ -1,12 +0,0 @@ | |||
1 | # | ||
2 | # This is a non-functional placeholder file, here for example purposes | ||
3 | # only. | ||
4 | # | ||
5 | # If you had a patch for your recipe, you'd put it in this directory | ||
6 | # and reference it from your recipe's SRC_URI: | ||
7 | # | ||
8 | # SRC_URI += "file://example.patch" | ||
9 | # | ||
10 | # Note that you could also rename the directory containing this patch | ||
11 | # to remove the version number or simply rename it 'files'. Doing so | ||
12 | # allows you to use the same directory for multiple recipes. | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/layer/recipes-example.noinstall b/scripts/lib/bsp/substrate/target/arch/layer/recipes-example.noinstall deleted file mode 100644 index b0069b1a5a..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/layer/recipes-example.noinstall +++ /dev/null | |||
@@ -1 +0,0 @@ | |||
1 | # yocto-bsp-dirname {{ if create_example_recipe == "y": }} recipes-example | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/layer/recipes-example/example/example-recipe-0.1.bb b/scripts/lib/bsp/substrate/target/arch/layer/recipes-example/example/example-recipe-0.1.bb deleted file mode 100644 index e534d36d14..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/layer/recipes-example/example/example-recipe-0.1.bb +++ /dev/null | |||
@@ -1,23 +0,0 @@ | |||
1 | # yocto-bsp-filename {{=example_recipe_name}}_0.1.bb | ||
2 | # | ||
3 | # This file was derived from the 'Hello World!' example recipe in the | ||
4 | # Yocto Project Development Manual. | ||
5 | # | ||
6 | |||
7 | SUMMARY = "Simple helloworld application" | ||
8 | SECTION = "examples" | ||
9 | LICENSE = "MIT" | ||
10 | LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302" | ||
11 | |||
12 | SRC_URI = "file://helloworld.c" | ||
13 | |||
14 | S = "${WORKDIR}" | ||
15 | |||
16 | do_compile() { | ||
17 | ${CC} ${LDFLAGS} helloworld.c -o helloworld | ||
18 | } | ||
19 | |||
20 | do_install() { | ||
21 | install -d ${D}${bindir} | ||
22 | install -m 0755 helloworld ${D}${bindir} | ||
23 | } | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/layer/recipes-example/example/example-recipe-0.1.noinstall b/scripts/lib/bsp/substrate/target/arch/layer/recipes-example/example/example-recipe-0.1.noinstall deleted file mode 100644 index c319c19c57..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/layer/recipes-example/example/example-recipe-0.1.noinstall +++ /dev/null | |||
@@ -1 +0,0 @@ | |||
1 | # yocto-bsp-dirname {{=example_recipe_name}}-0.1 | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/layer/recipes-example/example/example-recipe-0.1/example.patch b/scripts/lib/bsp/substrate/target/arch/layer/recipes-example/example/example-recipe-0.1/example.patch deleted file mode 100644 index 2000a34da5..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/layer/recipes-example/example/example-recipe-0.1/example.patch +++ /dev/null | |||
@@ -1,12 +0,0 @@ | |||
1 | # | ||
2 | # This is a non-functional placeholder file, here for example purposes | ||
3 | # only. | ||
4 | # | ||
5 | # If you had a patch for your recipe, you'd put it in this directory | ||
6 | # and reference it from your recipe's SRC_URI: | ||
7 | # | ||
8 | # SRC_URI += "file://example.patch" | ||
9 | # | ||
10 | # Note that you could also rename the directory containing this patch | ||
11 | # to remove the version number or simply rename it 'files'. Doing so | ||
12 | # allows you to use the same directory for multiple recipes. | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/layer/recipes-example/example/example-recipe-0.1/helloworld.c b/scripts/lib/bsp/substrate/target/arch/layer/recipes-example/example/example-recipe-0.1/helloworld.c deleted file mode 100644 index 71f2e46b4e..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/layer/recipes-example/example/example-recipe-0.1/helloworld.c +++ /dev/null | |||
@@ -1,8 +0,0 @@ | |||
1 | #include <stdio.h> | ||
2 | |||
3 | int main(int argc, char **argv) | ||
4 | { | ||
5 | printf("Hello World!\n"); | ||
6 | |||
7 | return 0; | ||
8 | } | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/mips/.gitignore b/scripts/lib/bsp/substrate/target/arch/mips/.gitignore deleted file mode 100644 index e69de29bb2..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/mips/.gitignore +++ /dev/null | |||
diff --git a/scripts/lib/bsp/substrate/target/arch/mips/conf/machine/machine.conf b/scripts/lib/bsp/substrate/target/arch/mips/conf/machine/machine.conf deleted file mode 100644 index 37da2535c8..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/mips/conf/machine/machine.conf +++ /dev/null | |||
@@ -1,38 +0,0 @@ | |||
1 | # yocto-bsp-filename {{=machine}}.conf | ||
2 | #@TYPE: Machine | ||
3 | #@NAME: {{=machine}} | ||
4 | |||
5 | #@DESCRIPTION: Machine configuration for {{=machine}} systems | ||
6 | |||
7 | require conf/machine/include/tune-mips32.inc | ||
8 | |||
9 | MACHINE_FEATURES = "screen keyboard pci usbhost ext2 ext3 serial" | ||
10 | |||
11 | KERNEL_IMAGETYPE = "vmlinux" | ||
12 | KERNEL_ALT_IMAGETYPE = "vmlinux.bin" | ||
13 | KERNEL_IMAGE_STRIP_EXTRA_SECTIONS = ".comment" | ||
14 | |||
15 | {{ if kernel_choice == "custom": preferred_kernel = "linux-yocto-custom" }} | ||
16 | {{ if kernel_choice == "linux-yocto-dev": preferred_kernel = "linux-yocto-dev" }} | ||
17 | {{ if kernel_choice == "custom" or kernel_choice == "linux-yocto-dev" : }} | ||
18 | PREFERRED_PROVIDER_virtual/kernel ?= "{{=preferred_kernel}}" | ||
19 | |||
20 | {{ if kernel_choice != "custom" and kernel_choice != "linux-yocto-dev": preferred_kernel = kernel_choice.split('_')[0] }} | ||
21 | {{ if kernel_choice != "custom" and kernel_choice != "linux-yocto-dev": preferred_kernel_version = kernel_choice.split('_')[1] }} | ||
22 | {{ if kernel_choice != "custom" and kernel_choice != "linux-yocto-dev": }} | ||
23 | PREFERRED_PROVIDER_virtual/kernel ?= "{{=preferred_kernel}}" | ||
24 | PREFERRED_VERSION_{{=preferred_kernel}} ?= "{{=preferred_kernel_version}}%" | ||
25 | |||
26 | {{ input type:"boolean" name:"xserver" prio:"50" msg:"Do you need support for X? (y/n)" default:"y" }} | ||
27 | {{ if xserver == "y": }} | ||
28 | PREFERRED_PROVIDER_virtual/xserver ?= "xserver-xorg" | ||
29 | XSERVER ?= "xserver-xorg \ | ||
30 | xf86-video-fbdev" | ||
31 | |||
32 | SERIAL_CONSOLE = "115200 ttyS0" | ||
33 | USE_VT ?= "0" | ||
34 | |||
35 | MACHINE_EXTRA_RRECOMMENDS = " kernel-modules" | ||
36 | |||
37 | IMAGE_FSTYPES ?= "jffs2 tar.bz2" | ||
38 | JFFS2_ERASEBLOCK = "0x10000" | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/mips/recipes-kernel/linux/files.noinstall b/scripts/lib/bsp/substrate/target/arch/mips/recipes-kernel/linux/files.noinstall deleted file mode 100644 index 1e0d92c55c..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/mips/recipes-kernel/linux/files.noinstall +++ /dev/null | |||
@@ -1 +0,0 @@ | |||
1 | # yocto-bsp-dirname {{ if kernel_choice != "custom": }} files | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/mips/recipes-kernel/linux/files/machine-preempt-rt.scc b/scripts/lib/bsp/substrate/target/arch/mips/recipes-kernel/linux/files/machine-preempt-rt.scc deleted file mode 100644 index a128255b38..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/mips/recipes-kernel/linux/files/machine-preempt-rt.scc +++ /dev/null | |||
@@ -1,11 +0,0 @@ | |||
1 | # yocto-bsp-filename {{=machine}}-preempt-rt.scc | ||
2 | define KMACHINE {{=machine}} | ||
3 | |||
4 | define KARCH mips | ||
5 | |||
6 | include {{=map_preempt_rt_kbranch(need_new_kbranch, new_kbranch, existing_kbranch)}} | ||
7 | {{ if need_new_kbranch == "y": }} | ||
8 | define KTYPE {{=new_kbranch}} | ||
9 | branch {{=machine}} | ||
10 | |||
11 | include {{=machine}}.scc | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/mips/recipes-kernel/linux/files/machine-standard.scc b/scripts/lib/bsp/substrate/target/arch/mips/recipes-kernel/linux/files/machine-standard.scc deleted file mode 100644 index b34f3d3522..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/mips/recipes-kernel/linux/files/machine-standard.scc +++ /dev/null | |||
@@ -1,11 +0,0 @@ | |||
1 | # yocto-bsp-filename {{=machine}}-standard.scc | ||
2 | define KMACHINE {{=machine}} | ||
3 | |||
4 | define KARCH mips | ||
5 | |||
6 | include {{=map_standard_kbranch(need_new_kbranch, new_kbranch, existing_kbranch)}} nopatch | ||
7 | {{ if need_new_kbranch == "y": }} | ||
8 | define KTYPE {{=new_kbranch}} | ||
9 | branch {{=machine}} | ||
10 | |||
11 | include {{=machine}}.scc | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/mips/recipes-kernel/linux/files/machine-tiny.scc b/scripts/lib/bsp/substrate/target/arch/mips/recipes-kernel/linux/files/machine-tiny.scc deleted file mode 100644 index 64f395bbc4..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/mips/recipes-kernel/linux/files/machine-tiny.scc +++ /dev/null | |||
@@ -1,11 +0,0 @@ | |||
1 | # yocto-bsp-filename {{=machine}}-tiny.scc | ||
2 | define KMACHINE {{=machine}} | ||
3 | |||
4 | define KARCH mips | ||
5 | |||
6 | include {{=map_tiny_kbranch(need_new_kbranch, new_kbranch, existing_kbranch)}} | ||
7 | {{ if need_new_kbranch == "y": }} | ||
8 | define KTYPE {{=new_kbranch}} | ||
9 | branch {{=machine}} | ||
10 | |||
11 | include {{=machine}}.scc | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/mips/recipes-kernel/linux/files/machine-user-config.cfg b/scripts/lib/bsp/substrate/target/arch/mips/recipes-kernel/linux/files/machine-user-config.cfg deleted file mode 100644 index 47489e44e9..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/mips/recipes-kernel/linux/files/machine-user-config.cfg +++ /dev/null | |||
@@ -1 +0,0 @@ | |||
1 | # yocto-bsp-filename {{=machine}}-user-config.cfg | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/mips/recipes-kernel/linux/files/machine-user-features.scc b/scripts/lib/bsp/substrate/target/arch/mips/recipes-kernel/linux/files/machine-user-features.scc deleted file mode 100644 index 85be26de97..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/mips/recipes-kernel/linux/files/machine-user-features.scc +++ /dev/null | |||
@@ -1 +0,0 @@ | |||
1 | # yocto-bsp-filename {{=machine}}-user-features.scc \ No newline at end of file | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/mips/recipes-kernel/linux/files/machine-user-patches.scc b/scripts/lib/bsp/substrate/target/arch/mips/recipes-kernel/linux/files/machine-user-patches.scc deleted file mode 100644 index 97f747fa07..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/mips/recipes-kernel/linux/files/machine-user-patches.scc +++ /dev/null | |||
@@ -1 +0,0 @@ | |||
1 | # yocto-bsp-filename {{=machine}}-user-patches.scc | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/mips/recipes-kernel/linux/files/machine.cfg b/scripts/lib/bsp/substrate/target/arch/mips/recipes-kernel/linux/files/machine.cfg deleted file mode 100644 index 2fe476691c..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/mips/recipes-kernel/linux/files/machine.cfg +++ /dev/null | |||
@@ -1,2 +0,0 @@ | |||
1 | # yocto-bsp-filename {{=machine}}.cfg | ||
2 | CONFIG_MIPS=y | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/mips/recipes-kernel/linux/files/machine.scc b/scripts/lib/bsp/substrate/target/arch/mips/recipes-kernel/linux/files/machine.scc deleted file mode 100644 index 792fdc94a4..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/mips/recipes-kernel/linux/files/machine.scc +++ /dev/null | |||
@@ -1,6 +0,0 @@ | |||
1 | # yocto-bsp-filename {{=machine}}.scc | ||
2 | kconf hardware {{=machine}}.cfg | ||
3 | |||
4 | include cfg/usb-mass-storage.scc | ||
5 | include cfg/fs/vfat.scc | ||
6 | |||
diff --git a/scripts/lib/bsp/substrate/target/arch/mips/recipes-kernel/linux/kernel-list.noinstall b/scripts/lib/bsp/substrate/target/arch/mips/recipes-kernel/linux/kernel-list.noinstall deleted file mode 100644 index 917f0e2207..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/mips/recipes-kernel/linux/kernel-list.noinstall +++ /dev/null | |||
@@ -1,5 +0,0 @@ | |||
1 | {{ if kernel_choice != "custom": }} | ||
2 | {{ input type:"boolean" name:"use_default_kernel" prio:"10" msg:"Would you like to use the default (4.12) kernel? (y/n)" default:"y"}} | ||
3 | |||
4 | {{ if kernel_choice != "custom" and use_default_kernel == "n": }} | ||
5 | {{ input type:"choicelist" name:"kernel_choice" gen:"bsp.kernel.kernels" prio:"10" msg:"Please choose the kernel to use in this BSP:" default:"linux-yocto_4.12"}} | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/mips/recipes-kernel/linux/linux-yocto-dev.bbappend b/scripts/lib/bsp/substrate/target/arch/mips/recipes-kernel/linux/linux-yocto-dev.bbappend deleted file mode 100644 index 22ed273811..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/mips/recipes-kernel/linux/linux-yocto-dev.bbappend +++ /dev/null | |||
@@ -1,28 +0,0 @@ | |||
1 | # yocto-bsp-filename {{ if kernel_choice == "linux-yocto-dev": }} this | ||
2 | FILESEXTRAPATHS_prepend := "${THISDIR}/files:" | ||
3 | |||
4 | PR := "${PR}.1" | ||
5 | |||
6 | COMPATIBLE_MACHINE_{{=machine}} = "{{=machine}}" | ||
7 | {{ input type:"boolean" name:"need_new_kbranch" prio:"20" msg:"Do you need a new machine branch for this BSP (the alternative is to re-use an existing branch)? [y/n]" default:"y" }} | ||
8 | |||
9 | {{ if need_new_kbranch == "y": }} | ||
10 | {{ input type:"choicelist" name:"new_kbranch" nameappend:"i386" gen:"bsp.kernel.all_branches" branches_base:"standard" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/base" }} | ||
11 | |||
12 | {{ if need_new_kbranch == "n": }} | ||
13 | {{ input type:"choicelist" name:"existing_kbranch" nameappend:"i386" gen:"bsp.kernel.all_branches" branches_base:"standard" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/base" }} | ||
14 | |||
15 | {{ if need_new_kbranch == "n": }} | ||
16 | KBRANCH_{{=machine}} = "{{=existing_kbranch}}" | ||
17 | |||
18 | {{ input type:"boolean" name:"smp" prio:"30" msg:"Would you like SMP support? (y/n)" default:"y"}} | ||
19 | {{ if smp == "y": }} | ||
20 | KERNEL_FEATURES_append_{{=machine}} += " cfg/smp.scc" | ||
21 | |||
22 | SRC_URI += "file://{{=machine}}.scc \ | ||
23 | file://{{=machine}}.cfg \ | ||
24 | file://{{=machine}}-standard.scc \ | ||
25 | file://{{=machine}}-user-config.cfg \ | ||
26 | file://{{=machine}}-user-features.scc \ | ||
27 | file://{{=machine}}-user-patches.scc \ | ||
28 | " | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/mips/recipes-kernel/linux/linux-yocto-tiny_4.10.bbappend b/scripts/lib/bsp/substrate/target/arch/mips/recipes-kernel/linux/linux-yocto-tiny_4.10.bbappend deleted file mode 100644 index bae943ea1e..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/mips/recipes-kernel/linux/linux-yocto-tiny_4.10.bbappend +++ /dev/null | |||
@@ -1,37 +0,0 @@ | |||
1 | # yocto-bsp-filename {{ if kernel_choice == "linux-yocto-tiny_4.10": }} this | ||
2 | FILESEXTRAPATHS_prepend := "${THISDIR}/files:" | ||
3 | |||
4 | PR := "${PR}.1" | ||
5 | |||
6 | COMPATIBLE_MACHINE_{{=machine}} = "{{=machine}}" | ||
7 | |||
8 | {{ input type:"boolean" name:"need_new_kbranch" prio:"20" msg:"Do you need a new machine branch for this BSP (the alternative is to re-use an existing branch)? [y/n]" default:"y" }} | ||
9 | |||
10 | {{ if need_new_kbranch == "y": }} | ||
11 | {{ input type:"choicelist" name:"new_kbranch" gen:"bsp.kernel.all_branches" branches_base:"standard/tiny" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/tiny/base" }} | ||
12 | |||
13 | {{ if need_new_kbranch == "n": }} | ||
14 | {{ input type:"choicelist" name:"existing_kbranch" gen:"bsp.kernel.all_branches" branches_base:"standard/tiny" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/tiny/base" }} | ||
15 | |||
16 | {{ if need_new_kbranch == "n": }} | ||
17 | KBRANCH_{{=machine}} = "{{=existing_kbranch}}" | ||
18 | |||
19 | {{ input type:"boolean" name:"smp" prio:"30" msg:"Do you need SMP support? (y/n)" default:"y"}} | ||
20 | {{ if smp == "y": }} | ||
21 | KERNEL_FEATURES_append_{{=machine}} += " cfg/smp.scc" | ||
22 | |||
23 | SRC_URI += "file://{{=machine}}.scc \ | ||
24 | file://{{=machine}}.cfg \ | ||
25 | file://{{=machine}}-tiny.scc \ | ||
26 | file://{{=machine}}-user-config.cfg \ | ||
27 | file://{{=machine}}-user-patches.scc \ | ||
28 | file://{{=machine}}-user-features.scc \ | ||
29 | " | ||
30 | |||
31 | # replace these SRCREVs with the real commit ids once you've had | ||
32 | # the appropriate changes committed to the upstream linux-yocto repo | ||
33 | SRCREV_machine_pn-linux-yocto-tiny_{{=machine}} ?= "${AUTOREV}" | ||
34 | SRCREV_meta_pn-linux-yocto-tiny_{{=machine}} ?= "${AUTOREV}" | ||
35 | #LINUX_VERSION = "4.10" | ||
36 | #Remove the following line once AUTOREV is locked to a certain SRCREV | ||
37 | KERNEL_VERSION_SANITY_SKIP = "1" | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/mips/recipes-kernel/linux/linux-yocto-tiny_4.12.bbappend b/scripts/lib/bsp/substrate/target/arch/mips/recipes-kernel/linux/linux-yocto-tiny_4.12.bbappend deleted file mode 100644 index 6f3e104c66..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/mips/recipes-kernel/linux/linux-yocto-tiny_4.12.bbappend +++ /dev/null | |||
@@ -1,37 +0,0 @@ | |||
1 | # yocto-bsp-filename {{ if kernel_choice == "linux-yocto-tiny_4.12": }} this | ||
2 | FILESEXTRAPATHS_prepend := "${THISDIR}/files:" | ||
3 | |||
4 | PR := "${PR}.1" | ||
5 | |||
6 | COMPATIBLE_MACHINE_{{=machine}} = "{{=machine}}" | ||
7 | |||
8 | {{ input type:"boolean" name:"need_new_kbranch" prio:"20" msg:"Do you need a new machine branch for this BSP (the alternative is to re-use an existing branch)? [y/n]" default:"y" }} | ||
9 | |||
10 | {{ if need_new_kbranch == "y": }} | ||
11 | {{ input type:"choicelist" name:"new_kbranch" gen:"bsp.kernel.all_branches" branches_base:"standard/tiny" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/tiny/base" }} | ||
12 | |||
13 | {{ if need_new_kbranch == "n": }} | ||
14 | {{ input type:"choicelist" name:"existing_kbranch" gen:"bsp.kernel.all_branches" branches_base:"standard/tiny" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/tiny/base" }} | ||
15 | |||
16 | {{ if need_new_kbranch == "n": }} | ||
17 | KBRANCH_{{=machine}} = "{{=existing_kbranch}}" | ||
18 | |||
19 | {{ input type:"boolean" name:"smp" prio:"30" msg:"Do you need SMP support? (y/n)" default:"y"}} | ||
20 | {{ if smp == "y": }} | ||
21 | KERNEL_FEATURES_append_{{=machine}} += " cfg/smp.scc" | ||
22 | |||
23 | SRC_URI += "file://{{=machine}}.scc \ | ||
24 | file://{{=machine}}.cfg \ | ||
25 | file://{{=machine}}-tiny.scc \ | ||
26 | file://{{=machine}}-user-config.cfg \ | ||
27 | file://{{=machine}}-user-patches.scc \ | ||
28 | file://{{=machine}}-user-features.scc \ | ||
29 | " | ||
30 | |||
31 | # replace these SRCREVs with the real commit ids once you've had | ||
32 | # the appropriate changes committed to the upstream linux-yocto repo | ||
33 | SRCREV_machine_pn-linux-yocto-tiny_{{=machine}} ?= "${AUTOREV}" | ||
34 | SRCREV_meta_pn-linux-yocto-tiny_{{=machine}} ?= "${AUTOREV}" | ||
35 | #LINUX_VERSION = "4.10" | ||
36 | #Remove the following line once AUTOREV is locked to a certain SRCREV | ||
37 | KERNEL_VERSION_SANITY_SKIP = "1" | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/mips/recipes-kernel/linux/linux-yocto-tiny_4.4.bbappend b/scripts/lib/bsp/substrate/target/arch/mips/recipes-kernel/linux/linux-yocto-tiny_4.4.bbappend deleted file mode 100644 index 62d1817f22..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/mips/recipes-kernel/linux/linux-yocto-tiny_4.4.bbappend +++ /dev/null | |||
@@ -1,37 +0,0 @@ | |||
1 | # yocto-bsp-filename {{ if kernel_choice == "linux-yocto-tiny_4.4": }} this | ||
2 | FILESEXTRAPATHS_prepend := "${THISDIR}/files:" | ||
3 | |||
4 | PR := "${PR}.1" | ||
5 | |||
6 | COMPATIBLE_MACHINE_{{=machine}} = "{{=machine}}" | ||
7 | |||
8 | {{ input type:"boolean" name:"need_new_kbranch" prio:"20" msg:"Do you need a new machine branch for this BSP (the alternative is to re-use an existing branch)? [y/n]" default:"y" }} | ||
9 | |||
10 | {{ if need_new_kbranch == "y": }} | ||
11 | {{ input type:"choicelist" name:"new_kbranch" gen:"bsp.kernel.all_branches" branches_base:"standard/tiny" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/tiny/base" }} | ||
12 | |||
13 | {{ if need_new_kbranch == "n": }} | ||
14 | {{ input type:"choicelist" name:"existing_kbranch" gen:"bsp.kernel.all_branches" branches_base:"standard/tiny" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/tiny/base" }} | ||
15 | |||
16 | {{ if need_new_kbranch == "n": }} | ||
17 | KBRANCH_{{=machine}} = "{{=existing_kbranch}}" | ||
18 | |||
19 | {{ input type:"boolean" name:"smp" prio:"30" msg:"Do you need SMP support? (y/n)" default:"y"}} | ||
20 | {{ if smp == "y": }} | ||
21 | KERNEL_FEATURES_append_{{=machine}} += " cfg/smp.scc" | ||
22 | |||
23 | SRC_URI += "file://{{=machine}}.scc \ | ||
24 | file://{{=machine}}.cfg \ | ||
25 | file://{{=machine}}-tiny.scc \ | ||
26 | file://{{=machine}}-user-config.cfg \ | ||
27 | file://{{=machine}}-user-patches.scc \ | ||
28 | file://{{=machine}}-user-features.scc \ | ||
29 | " | ||
30 | |||
31 | # replace these SRCREVs with the real commit ids once you've had | ||
32 | # the appropriate changes committed to the upstream linux-yocto repo | ||
33 | SRCREV_machine_pn-linux-yocto-tiny_{{=machine}} ?= "${AUTOREV}" | ||
34 | SRCREV_meta_pn-linux-yocto-tiny_{{=machine}} ?= "${AUTOREV}" | ||
35 | #LINUX_VERSION = "4.4" | ||
36 | #Remove the following line once AUTOREV is locked to a certain SRCREV | ||
37 | KERNEL_VERSION_SANITY_SKIP = "1" | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/mips/recipes-kernel/linux/linux-yocto_4.10.bbappend b/scripts/lib/bsp/substrate/target/arch/mips/recipes-kernel/linux/linux-yocto_4.10.bbappend deleted file mode 100644 index dfbecb5337..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/mips/recipes-kernel/linux/linux-yocto_4.10.bbappend +++ /dev/null | |||
@@ -1,37 +0,0 @@ | |||
1 | # yocto-bsp-filename {{ if kernel_choice == "linux-yocto_4.10": }} this | ||
2 | FILESEXTRAPATHS_prepend := "${THISDIR}/files:" | ||
3 | |||
4 | PR := "${PR}.1" | ||
5 | |||
6 | COMPATIBLE_MACHINE_{{=machine}} = "{{=machine}}" | ||
7 | |||
8 | {{ input type:"boolean" name:"need_new_kbranch" prio:"20" msg:"Do you need a new machine branch for this BSP (the alternative is to re-use an existing branch)? [y/n]" default:"y" }} | ||
9 | |||
10 | {{ if need_new_kbranch == "y": }} | ||
11 | {{ input type:"choicelist" name:"new_kbranch" gen:"bsp.kernel.all_branches" branches_base:"standard" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/base" }} | ||
12 | |||
13 | {{ if need_new_kbranch == "n": }} | ||
14 | {{ input type:"choicelist" name:"existing_kbranch" gen:"bsp.kernel.all_branches" branches_base:"standard" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/base" }} | ||
15 | |||
16 | {{ if need_new_kbranch == "n": }} | ||
17 | KBRANCH_{{=machine}} = "{{=existing_kbranch}}" | ||
18 | |||
19 | {{ input type:"boolean" name:"smp" prio:"30" msg:"Do you need SMP support? (y/n)" default:"y"}} | ||
20 | {{ if smp == "y": }} | ||
21 | KERNEL_FEATURES_append_{{=machine}} += " cfg/smp.scc" | ||
22 | |||
23 | SRC_URI += "file://{{=machine}}.scc \ | ||
24 | file://{{=machine}}.cfg \ | ||
25 | file://{{=machine}}-standard.scc \ | ||
26 | file://{{=machine}}-user-config.cfg \ | ||
27 | file://{{=machine}}-user-features.scc \ | ||
28 | file://{{=machine}}-user-patches.scc \ | ||
29 | " | ||
30 | |||
31 | # replace these SRCREVs with the real commit ids once you've had | ||
32 | # the appropriate changes committed to the upstream linux-yocto repo | ||
33 | SRCREV_machine_pn-linux-yocto_{{=machine}} ?= "${AUTOREV}" | ||
34 | SRCREV_meta_pn-linux-yocto_{{=machine}} ?= "${AUTOREV}" | ||
35 | #LINUX_VERSION = "4.10" | ||
36 | #Remove the following line once AUTOREV is locked to a certain SRCREV | ||
37 | KERNEL_VERSION_SANITY_SKIP = "1" | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/mips/recipes-kernel/linux/linux-yocto_4.12.bbappend b/scripts/lib/bsp/substrate/target/arch/mips/recipes-kernel/linux/linux-yocto_4.12.bbappend deleted file mode 100644 index e874c9e45f..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/mips/recipes-kernel/linux/linux-yocto_4.12.bbappend +++ /dev/null | |||
@@ -1,37 +0,0 @@ | |||
1 | # yocto-bsp-filename {{ if kernel_choice == "linux-yocto_4.12": }} this | ||
2 | FILESEXTRAPATHS_prepend := "${THISDIR}/files:" | ||
3 | |||
4 | PR := "${PR}.1" | ||
5 | |||
6 | COMPATIBLE_MACHINE_{{=machine}} = "{{=machine}}" | ||
7 | |||
8 | {{ input type:"boolean" name:"need_new_kbranch" prio:"20" msg:"Do you need a new machine branch for this BSP (the alternative is to re-use an existing branch)? [y/n]" default:"y" }} | ||
9 | |||
10 | {{ if need_new_kbranch == "y": }} | ||
11 | {{ input type:"choicelist" name:"new_kbranch" gen:"bsp.kernel.all_branches" branches_base:"standard" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/base" }} | ||
12 | |||
13 | {{ if need_new_kbranch == "n": }} | ||
14 | {{ input type:"choicelist" name:"existing_kbranch" gen:"bsp.kernel.all_branches" branches_base:"standard" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/base" }} | ||
15 | |||
16 | {{ if need_new_kbranch == "n": }} | ||
17 | KBRANCH_{{=machine}} = "{{=existing_kbranch}}" | ||
18 | |||
19 | {{ input type:"boolean" name:"smp" prio:"30" msg:"Do you need SMP support? (y/n)" default:"y"}} | ||
20 | {{ if smp == "y": }} | ||
21 | KERNEL_FEATURES_append_{{=machine}} += " cfg/smp.scc" | ||
22 | |||
23 | SRC_URI += "file://{{=machine}}.scc \ | ||
24 | file://{{=machine}}.cfg \ | ||
25 | file://{{=machine}}-standard.scc \ | ||
26 | file://{{=machine}}-user-config.cfg \ | ||
27 | file://{{=machine}}-user-features.scc \ | ||
28 | file://{{=machine}}-user-patches.scc \ | ||
29 | " | ||
30 | |||
31 | # replace these SRCREVs with the real commit ids once you've had | ||
32 | # the appropriate changes committed to the upstream linux-yocto repo | ||
33 | SRCREV_machine_pn-linux-yocto_{{=machine}} ?= "${AUTOREV}" | ||
34 | SRCREV_meta_pn-linux-yocto_{{=machine}} ?= "${AUTOREV}" | ||
35 | #LINUX_VERSION = "4.10" | ||
36 | #Remove the following line once AUTOREV is locked to a certain SRCREV | ||
37 | KERNEL_VERSION_SANITY_SKIP = "1" | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/mips/recipes-kernel/linux/linux-yocto_4.4.bbappend b/scripts/lib/bsp/substrate/target/arch/mips/recipes-kernel/linux/linux-yocto_4.4.bbappend deleted file mode 100644 index a809c7600a..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/mips/recipes-kernel/linux/linux-yocto_4.4.bbappend +++ /dev/null | |||
@@ -1,37 +0,0 @@ | |||
1 | # yocto-bsp-filename {{ if kernel_choice == "linux-yocto_4.4": }} this | ||
2 | FILESEXTRAPATHS_prepend := "${THISDIR}/files:" | ||
3 | |||
4 | PR := "${PR}.1" | ||
5 | |||
6 | COMPATIBLE_MACHINE_{{=machine}} = "{{=machine}}" | ||
7 | |||
8 | {{ input type:"boolean" name:"need_new_kbranch" prio:"20" msg:"Do you need a new machine branch for this BSP (the alternative is to re-use an existing branch)? [y/n]" default:"y" }} | ||
9 | |||
10 | {{ if need_new_kbranch == "y": }} | ||
11 | {{ input type:"choicelist" name:"new_kbranch" gen:"bsp.kernel.all_branches" branches_base:"standard" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/base" }} | ||
12 | |||
13 | {{ if need_new_kbranch == "n": }} | ||
14 | {{ input type:"choicelist" name:"existing_kbranch" gen:"bsp.kernel.all_branches" branches_base:"standard" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/base" }} | ||
15 | |||
16 | {{ if need_new_kbranch == "n": }} | ||
17 | KBRANCH_{{=machine}} = "{{=existing_kbranch}}" | ||
18 | |||
19 | {{ input type:"boolean" name:"smp" prio:"30" msg:"Do you need SMP support? (y/n)" default:"y"}} | ||
20 | {{ if smp == "y": }} | ||
21 | KERNEL_FEATURES_append_{{=machine}} += " cfg/smp.scc" | ||
22 | |||
23 | SRC_URI += "file://{{=machine}}.scc \ | ||
24 | file://{{=machine}}.cfg \ | ||
25 | file://{{=machine}}-standard.scc \ | ||
26 | file://{{=machine}}-user-config.cfg \ | ||
27 | file://{{=machine}}-user-features.scc \ | ||
28 | file://{{=machine}}-user-patches.scc \ | ||
29 | " | ||
30 | |||
31 | # replace these SRCREVs with the real commit ids once you've had | ||
32 | # the appropriate changes committed to the upstream linux-yocto repo | ||
33 | SRCREV_machine_pn-linux-yocto_{{=machine}} ?= "${AUTOREV}" | ||
34 | SRCREV_meta_pn-linux-yocto_{{=machine}} ?= "${AUTOREV}" | ||
35 | #LINUX_VERSION = "4.4" | ||
36 | #Remove the following line once AUTOREV is locked to a certain SRCREV | ||
37 | KERNEL_VERSION_SANITY_SKIP = "1" | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/mips64/.gitignore b/scripts/lib/bsp/substrate/target/arch/mips64/.gitignore deleted file mode 100644 index e69de29bb2..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/mips64/.gitignore +++ /dev/null | |||
diff --git a/scripts/lib/bsp/substrate/target/arch/mips64/conf/machine/machine.conf b/scripts/lib/bsp/substrate/target/arch/mips64/conf/machine/machine.conf deleted file mode 100644 index a8eea2cde2..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/mips64/conf/machine/machine.conf +++ /dev/null | |||
@@ -1,38 +0,0 @@ | |||
1 | # yocto-bsp-filename {{=machine}}.conf | ||
2 | #@TYPE: Machine | ||
3 | #@NAME: {{=machine}} | ||
4 | |||
5 | #@DESCRIPTION: Machine configuration for {{=machine}} systems | ||
6 | |||
7 | require conf/machine/include/tune-mips64.inc | ||
8 | |||
9 | MACHINE_FEATURES = "pci ext2 ext3 serial" | ||
10 | |||
11 | KERNEL_IMAGETYPE = "vmlinux" | ||
12 | KERNEL_ALT_IMAGETYPE = "vmlinux.bin" | ||
13 | KERNEL_IMAGE_STRIP_EXTRA_SECTIONS = ".comment" | ||
14 | |||
15 | {{ if kernel_choice == "custom": preferred_kernel = "linux-yocto-custom" }} | ||
16 | {{ if kernel_choice == "linux-yocto-dev": preferred_kernel = "linux-yocto-dev" }} | ||
17 | {{ if kernel_choice == "custom" or kernel_choice == "linux-yocto-dev" : }} | ||
18 | PREFERRED_PROVIDER_virtual/kernel ?= "{{=preferred_kernel}}" | ||
19 | |||
20 | {{ if kernel_choice != "custom" and kernel_choice != "linux-yocto-dev": preferred_kernel = kernel_choice.split('_')[0] }} | ||
21 | {{ if kernel_choice != "custom" and kernel_choice != "linux-yocto-dev": preferred_kernel_version = kernel_choice.split('_')[1] }} | ||
22 | {{ if kernel_choice != "custom" and kernel_choice != "linux-yocto-dev": }} | ||
23 | PREFERRED_PROVIDER_virtual/kernel ?= "{{=preferred_kernel}}" | ||
24 | PREFERRED_VERSION_{{=preferred_kernel}} ?= "{{=preferred_kernel_version}}%" | ||
25 | |||
26 | {{ input type:"boolean" name:"xserver" prio:"50" msg:"Do you need support for X? (y/n)" default:"y" }} | ||
27 | {{ if xserver == "y": }} | ||
28 | PREFERRED_PROVIDER_virtual/xserver ?= "xserver-xorg" | ||
29 | XSERVER ?= "xserver-xorg \ | ||
30 | xf86-video-fbdev" | ||
31 | |||
32 | SERIAL_CONSOLE = "115200 ttyS0" | ||
33 | USE_VT ?= "0" | ||
34 | |||
35 | MACHINE_EXTRA_RRECOMMENDS = " kernel-modules" | ||
36 | |||
37 | IMAGE_FSTYPES ?= "jffs2 tar.bz2" | ||
38 | JFFS2_ERASEBLOCK = "0x10000" | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/mips64/recipes-kernel/linux/files.noinstall b/scripts/lib/bsp/substrate/target/arch/mips64/recipes-kernel/linux/files.noinstall deleted file mode 100644 index 1e0d92c55c..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/mips64/recipes-kernel/linux/files.noinstall +++ /dev/null | |||
@@ -1 +0,0 @@ | |||
1 | # yocto-bsp-dirname {{ if kernel_choice != "custom": }} files | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/mips64/recipes-kernel/linux/files/machine-preempt-rt.scc b/scripts/lib/bsp/substrate/target/arch/mips64/recipes-kernel/linux/files/machine-preempt-rt.scc deleted file mode 100644 index a128255b38..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/mips64/recipes-kernel/linux/files/machine-preempt-rt.scc +++ /dev/null | |||
@@ -1,11 +0,0 @@ | |||
1 | # yocto-bsp-filename {{=machine}}-preempt-rt.scc | ||
2 | define KMACHINE {{=machine}} | ||
3 | |||
4 | define KARCH mips | ||
5 | |||
6 | include {{=map_preempt_rt_kbranch(need_new_kbranch, new_kbranch, existing_kbranch)}} | ||
7 | {{ if need_new_kbranch == "y": }} | ||
8 | define KTYPE {{=new_kbranch}} | ||
9 | branch {{=machine}} | ||
10 | |||
11 | include {{=machine}}.scc | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/mips64/recipes-kernel/linux/files/machine-standard.scc b/scripts/lib/bsp/substrate/target/arch/mips64/recipes-kernel/linux/files/machine-standard.scc deleted file mode 100644 index b34f3d3522..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/mips64/recipes-kernel/linux/files/machine-standard.scc +++ /dev/null | |||
@@ -1,11 +0,0 @@ | |||
1 | # yocto-bsp-filename {{=machine}}-standard.scc | ||
2 | define KMACHINE {{=machine}} | ||
3 | |||
4 | define KARCH mips | ||
5 | |||
6 | include {{=map_standard_kbranch(need_new_kbranch, new_kbranch, existing_kbranch)}} nopatch | ||
7 | {{ if need_new_kbranch == "y": }} | ||
8 | define KTYPE {{=new_kbranch}} | ||
9 | branch {{=machine}} | ||
10 | |||
11 | include {{=machine}}.scc | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/mips64/recipes-kernel/linux/files/machine-tiny.scc b/scripts/lib/bsp/substrate/target/arch/mips64/recipes-kernel/linux/files/machine-tiny.scc deleted file mode 100644 index 64f395bbc4..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/mips64/recipes-kernel/linux/files/machine-tiny.scc +++ /dev/null | |||
@@ -1,11 +0,0 @@ | |||
1 | # yocto-bsp-filename {{=machine}}-tiny.scc | ||
2 | define KMACHINE {{=machine}} | ||
3 | |||
4 | define KARCH mips | ||
5 | |||
6 | include {{=map_tiny_kbranch(need_new_kbranch, new_kbranch, existing_kbranch)}} | ||
7 | {{ if need_new_kbranch == "y": }} | ||
8 | define KTYPE {{=new_kbranch}} | ||
9 | branch {{=machine}} | ||
10 | |||
11 | include {{=machine}}.scc | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/mips64/recipes-kernel/linux/files/machine-user-config.cfg b/scripts/lib/bsp/substrate/target/arch/mips64/recipes-kernel/linux/files/machine-user-config.cfg deleted file mode 100644 index 69efdcc759..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/mips64/recipes-kernel/linux/files/machine-user-config.cfg +++ /dev/null | |||
@@ -1 +0,0 @@ | |||
1 | # yocto-bsp-filename {{=machine}}-user-config.cfg \ No newline at end of file | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/mips64/recipes-kernel/linux/files/machine-user-features.scc b/scripts/lib/bsp/substrate/target/arch/mips64/recipes-kernel/linux/files/machine-user-features.scc deleted file mode 100644 index 85be26de97..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/mips64/recipes-kernel/linux/files/machine-user-features.scc +++ /dev/null | |||
@@ -1 +0,0 @@ | |||
1 | # yocto-bsp-filename {{=machine}}-user-features.scc \ No newline at end of file | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/mips64/recipes-kernel/linux/files/machine-user-patches.scc b/scripts/lib/bsp/substrate/target/arch/mips64/recipes-kernel/linux/files/machine-user-patches.scc deleted file mode 100644 index 4c59daac46..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/mips64/recipes-kernel/linux/files/machine-user-patches.scc +++ /dev/null | |||
@@ -1 +0,0 @@ | |||
1 | # yocto-bsp-filename {{=machine}}-user-patches.scc \ No newline at end of file | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/mips64/recipes-kernel/linux/files/machine.cfg b/scripts/lib/bsp/substrate/target/arch/mips64/recipes-kernel/linux/files/machine.cfg deleted file mode 100644 index 0cc906bbf0..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/mips64/recipes-kernel/linux/files/machine.cfg +++ /dev/null | |||
@@ -1,66 +0,0 @@ | |||
1 | # yocto-bsp-filename {{=machine}}.cfg | ||
2 | #SOC | ||
3 | CONFIG_CAVIUM_OCTEON_SOC=y | ||
4 | CONFIG_CAVIUM_CN63XXP1=y | ||
5 | CONFIG_CAVIUM_OCTEON_CVMSEG_SIZE=2 | ||
6 | |||
7 | #Kernel | ||
8 | CONFIG_SMP=y | ||
9 | CONFIG_NR_CPUS=32 | ||
10 | #Executable file formats | ||
11 | CONFIG_MIPS32_COMPAT=y | ||
12 | CONFIG_MIPS32_O32=y | ||
13 | CONFIG_MIPS32_N32=y | ||
14 | |||
15 | |||
16 | #PCI | ||
17 | CONFIG_PCI=y | ||
18 | CONFIG_PCI_MSI=y | ||
19 | |||
20 | #I2C | ||
21 | CONFIG_I2C=y | ||
22 | CONFIG_I2C_OCTEON=y | ||
23 | |||
24 | CONFIG_HW_RANDOM_OCTEON=y | ||
25 | |||
26 | #SPI | ||
27 | CONFIG_SPI=y | ||
28 | CONFIG_SPI_OCTEON=y | ||
29 | |||
30 | #Misc | ||
31 | CONFIG_EEPROM_AT24=y | ||
32 | CONFIG_EEPROM_AT25=y | ||
33 | CONFIG_OCTEON_WDT=y | ||
34 | |||
35 | CONFIG_STAGING=y | ||
36 | |||
37 | #Ethernet | ||
38 | CONFIG_OCTEON_ETHERNET=y | ||
39 | CONFIG_OCTEON_MGMT_ETHERNET=y | ||
40 | CONFIG_MDIO_OCTEON=y | ||
41 | |||
42 | #PHY | ||
43 | CONFIG_MARVELL_PHY=y | ||
44 | CONFIG_BROADCOM_PHY=y | ||
45 | CONFIG_BCM87XX_PHY=y | ||
46 | |||
47 | |||
48 | #USB | ||
49 | CONFIG_USB=y | ||
50 | CONFIG_OCTEON_USB=y | ||
51 | CONFIG_USB_OCTEON_EHCI=y | ||
52 | CONFIG_USB_OCTEON_OHCI=y | ||
53 | CONFIG_USB_OCTEON2_COMMON=y | ||
54 | |||
55 | CONFIG_MTD=y | ||
56 | CONFIG_MTD_BLOCK=y | ||
57 | CONFIG_MTD_CFI=y | ||
58 | CONFIG_MTD_CFI_AMDSTD=y | ||
59 | CONFIG_MTD_CMDLINE_PARTS=y | ||
60 | |||
61 | CONFIG_SERIAL_8250=y | ||
62 | CONFIG_SERIAL_8250_CONSOLE=y | ||
63 | CONFIG_SERIAL_8250_NR_UARTS=2 | ||
64 | CONFIG_SERIAL_8250_RUNTIME_UARTS=2 | ||
65 | CONFIG_SERIAL_8250_DW=y | ||
66 | |||
diff --git a/scripts/lib/bsp/substrate/target/arch/mips64/recipes-kernel/linux/files/machine.scc b/scripts/lib/bsp/substrate/target/arch/mips64/recipes-kernel/linux/files/machine.scc deleted file mode 100644 index 792fdc94a4..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/mips64/recipes-kernel/linux/files/machine.scc +++ /dev/null | |||
@@ -1,6 +0,0 @@ | |||
1 | # yocto-bsp-filename {{=machine}}.scc | ||
2 | kconf hardware {{=machine}}.cfg | ||
3 | |||
4 | include cfg/usb-mass-storage.scc | ||
5 | include cfg/fs/vfat.scc | ||
6 | |||
diff --git a/scripts/lib/bsp/substrate/target/arch/mips64/recipes-kernel/linux/kernel-list.noinstall b/scripts/lib/bsp/substrate/target/arch/mips64/recipes-kernel/linux/kernel-list.noinstall deleted file mode 100644 index 917f0e2207..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/mips64/recipes-kernel/linux/kernel-list.noinstall +++ /dev/null | |||
@@ -1,5 +0,0 @@ | |||
1 | {{ if kernel_choice != "custom": }} | ||
2 | {{ input type:"boolean" name:"use_default_kernel" prio:"10" msg:"Would you like to use the default (4.12) kernel? (y/n)" default:"y"}} | ||
3 | |||
4 | {{ if kernel_choice != "custom" and use_default_kernel == "n": }} | ||
5 | {{ input type:"choicelist" name:"kernel_choice" gen:"bsp.kernel.kernels" prio:"10" msg:"Please choose the kernel to use in this BSP:" default:"linux-yocto_4.12"}} | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/mips64/recipes-kernel/linux/linux-yocto-dev.bbappend b/scripts/lib/bsp/substrate/target/arch/mips64/recipes-kernel/linux/linux-yocto-dev.bbappend deleted file mode 100644 index 22ed273811..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/mips64/recipes-kernel/linux/linux-yocto-dev.bbappend +++ /dev/null | |||
@@ -1,28 +0,0 @@ | |||
1 | # yocto-bsp-filename {{ if kernel_choice == "linux-yocto-dev": }} this | ||
2 | FILESEXTRAPATHS_prepend := "${THISDIR}/files:" | ||
3 | |||
4 | PR := "${PR}.1" | ||
5 | |||
6 | COMPATIBLE_MACHINE_{{=machine}} = "{{=machine}}" | ||
7 | {{ input type:"boolean" name:"need_new_kbranch" prio:"20" msg:"Do you need a new machine branch for this BSP (the alternative is to re-use an existing branch)? [y/n]" default:"y" }} | ||
8 | |||
9 | {{ if need_new_kbranch == "y": }} | ||
10 | {{ input type:"choicelist" name:"new_kbranch" nameappend:"i386" gen:"bsp.kernel.all_branches" branches_base:"standard" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/base" }} | ||
11 | |||
12 | {{ if need_new_kbranch == "n": }} | ||
13 | {{ input type:"choicelist" name:"existing_kbranch" nameappend:"i386" gen:"bsp.kernel.all_branches" branches_base:"standard" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/base" }} | ||
14 | |||
15 | {{ if need_new_kbranch == "n": }} | ||
16 | KBRANCH_{{=machine}} = "{{=existing_kbranch}}" | ||
17 | |||
18 | {{ input type:"boolean" name:"smp" prio:"30" msg:"Would you like SMP support? (y/n)" default:"y"}} | ||
19 | {{ if smp == "y": }} | ||
20 | KERNEL_FEATURES_append_{{=machine}} += " cfg/smp.scc" | ||
21 | |||
22 | SRC_URI += "file://{{=machine}}.scc \ | ||
23 | file://{{=machine}}.cfg \ | ||
24 | file://{{=machine}}-standard.scc \ | ||
25 | file://{{=machine}}-user-config.cfg \ | ||
26 | file://{{=machine}}-user-features.scc \ | ||
27 | file://{{=machine}}-user-patches.scc \ | ||
28 | " | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/mips64/recipes-kernel/linux/linux-yocto-tiny_4.10.bbappend b/scripts/lib/bsp/substrate/target/arch/mips64/recipes-kernel/linux/linux-yocto-tiny_4.10.bbappend deleted file mode 100644 index bae943ea1e..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/mips64/recipes-kernel/linux/linux-yocto-tiny_4.10.bbappend +++ /dev/null | |||
@@ -1,37 +0,0 @@ | |||
1 | # yocto-bsp-filename {{ if kernel_choice == "linux-yocto-tiny_4.10": }} this | ||
2 | FILESEXTRAPATHS_prepend := "${THISDIR}/files:" | ||
3 | |||
4 | PR := "${PR}.1" | ||
5 | |||
6 | COMPATIBLE_MACHINE_{{=machine}} = "{{=machine}}" | ||
7 | |||
8 | {{ input type:"boolean" name:"need_new_kbranch" prio:"20" msg:"Do you need a new machine branch for this BSP (the alternative is to re-use an existing branch)? [y/n]" default:"y" }} | ||
9 | |||
10 | {{ if need_new_kbranch == "y": }} | ||
11 | {{ input type:"choicelist" name:"new_kbranch" gen:"bsp.kernel.all_branches" branches_base:"standard/tiny" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/tiny/base" }} | ||
12 | |||
13 | {{ if need_new_kbranch == "n": }} | ||
14 | {{ input type:"choicelist" name:"existing_kbranch" gen:"bsp.kernel.all_branches" branches_base:"standard/tiny" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/tiny/base" }} | ||
15 | |||
16 | {{ if need_new_kbranch == "n": }} | ||
17 | KBRANCH_{{=machine}} = "{{=existing_kbranch}}" | ||
18 | |||
19 | {{ input type:"boolean" name:"smp" prio:"30" msg:"Do you need SMP support? (y/n)" default:"y"}} | ||
20 | {{ if smp == "y": }} | ||
21 | KERNEL_FEATURES_append_{{=machine}} += " cfg/smp.scc" | ||
22 | |||
23 | SRC_URI += "file://{{=machine}}.scc \ | ||
24 | file://{{=machine}}.cfg \ | ||
25 | file://{{=machine}}-tiny.scc \ | ||
26 | file://{{=machine}}-user-config.cfg \ | ||
27 | file://{{=machine}}-user-patches.scc \ | ||
28 | file://{{=machine}}-user-features.scc \ | ||
29 | " | ||
30 | |||
31 | # replace these SRCREVs with the real commit ids once you've had | ||
32 | # the appropriate changes committed to the upstream linux-yocto repo | ||
33 | SRCREV_machine_pn-linux-yocto-tiny_{{=machine}} ?= "${AUTOREV}" | ||
34 | SRCREV_meta_pn-linux-yocto-tiny_{{=machine}} ?= "${AUTOREV}" | ||
35 | #LINUX_VERSION = "4.10" | ||
36 | #Remove the following line once AUTOREV is locked to a certain SRCREV | ||
37 | KERNEL_VERSION_SANITY_SKIP = "1" | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/mips64/recipes-kernel/linux/linux-yocto-tiny_4.12.bbappend b/scripts/lib/bsp/substrate/target/arch/mips64/recipes-kernel/linux/linux-yocto-tiny_4.12.bbappend deleted file mode 100644 index 6f3e104c66..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/mips64/recipes-kernel/linux/linux-yocto-tiny_4.12.bbappend +++ /dev/null | |||
@@ -1,37 +0,0 @@ | |||
1 | # yocto-bsp-filename {{ if kernel_choice == "linux-yocto-tiny_4.12": }} this | ||
2 | FILESEXTRAPATHS_prepend := "${THISDIR}/files:" | ||
3 | |||
4 | PR := "${PR}.1" | ||
5 | |||
6 | COMPATIBLE_MACHINE_{{=machine}} = "{{=machine}}" | ||
7 | |||
8 | {{ input type:"boolean" name:"need_new_kbranch" prio:"20" msg:"Do you need a new machine branch for this BSP (the alternative is to re-use an existing branch)? [y/n]" default:"y" }} | ||
9 | |||
10 | {{ if need_new_kbranch == "y": }} | ||
11 | {{ input type:"choicelist" name:"new_kbranch" gen:"bsp.kernel.all_branches" branches_base:"standard/tiny" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/tiny/base" }} | ||
12 | |||
13 | {{ if need_new_kbranch == "n": }} | ||
14 | {{ input type:"choicelist" name:"existing_kbranch" gen:"bsp.kernel.all_branches" branches_base:"standard/tiny" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/tiny/base" }} | ||
15 | |||
16 | {{ if need_new_kbranch == "n": }} | ||
17 | KBRANCH_{{=machine}} = "{{=existing_kbranch}}" | ||
18 | |||
19 | {{ input type:"boolean" name:"smp" prio:"30" msg:"Do you need SMP support? (y/n)" default:"y"}} | ||
20 | {{ if smp == "y": }} | ||
21 | KERNEL_FEATURES_append_{{=machine}} += " cfg/smp.scc" | ||
22 | |||
23 | SRC_URI += "file://{{=machine}}.scc \ | ||
24 | file://{{=machine}}.cfg \ | ||
25 | file://{{=machine}}-tiny.scc \ | ||
26 | file://{{=machine}}-user-config.cfg \ | ||
27 | file://{{=machine}}-user-patches.scc \ | ||
28 | file://{{=machine}}-user-features.scc \ | ||
29 | " | ||
30 | |||
31 | # replace these SRCREVs with the real commit ids once you've had | ||
32 | # the appropriate changes committed to the upstream linux-yocto repo | ||
33 | SRCREV_machine_pn-linux-yocto-tiny_{{=machine}} ?= "${AUTOREV}" | ||
34 | SRCREV_meta_pn-linux-yocto-tiny_{{=machine}} ?= "${AUTOREV}" | ||
35 | #LINUX_VERSION = "4.10" | ||
36 | #Remove the following line once AUTOREV is locked to a certain SRCREV | ||
37 | KERNEL_VERSION_SANITY_SKIP = "1" | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/mips64/recipes-kernel/linux/linux-yocto-tiny_4.4.bbappend b/scripts/lib/bsp/substrate/target/arch/mips64/recipes-kernel/linux/linux-yocto-tiny_4.4.bbappend deleted file mode 100644 index 62d1817f22..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/mips64/recipes-kernel/linux/linux-yocto-tiny_4.4.bbappend +++ /dev/null | |||
@@ -1,37 +0,0 @@ | |||
1 | # yocto-bsp-filename {{ if kernel_choice == "linux-yocto-tiny_4.4": }} this | ||
2 | FILESEXTRAPATHS_prepend := "${THISDIR}/files:" | ||
3 | |||
4 | PR := "${PR}.1" | ||
5 | |||
6 | COMPATIBLE_MACHINE_{{=machine}} = "{{=machine}}" | ||
7 | |||
8 | {{ input type:"boolean" name:"need_new_kbranch" prio:"20" msg:"Do you need a new machine branch for this BSP (the alternative is to re-use an existing branch)? [y/n]" default:"y" }} | ||
9 | |||
10 | {{ if need_new_kbranch == "y": }} | ||
11 | {{ input type:"choicelist" name:"new_kbranch" gen:"bsp.kernel.all_branches" branches_base:"standard/tiny" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/tiny/base" }} | ||
12 | |||
13 | {{ if need_new_kbranch == "n": }} | ||
14 | {{ input type:"choicelist" name:"existing_kbranch" gen:"bsp.kernel.all_branches" branches_base:"standard/tiny" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/tiny/base" }} | ||
15 | |||
16 | {{ if need_new_kbranch == "n": }} | ||
17 | KBRANCH_{{=machine}} = "{{=existing_kbranch}}" | ||
18 | |||
19 | {{ input type:"boolean" name:"smp" prio:"30" msg:"Do you need SMP support? (y/n)" default:"y"}} | ||
20 | {{ if smp == "y": }} | ||
21 | KERNEL_FEATURES_append_{{=machine}} += " cfg/smp.scc" | ||
22 | |||
23 | SRC_URI += "file://{{=machine}}.scc \ | ||
24 | file://{{=machine}}.cfg \ | ||
25 | file://{{=machine}}-tiny.scc \ | ||
26 | file://{{=machine}}-user-config.cfg \ | ||
27 | file://{{=machine}}-user-patches.scc \ | ||
28 | file://{{=machine}}-user-features.scc \ | ||
29 | " | ||
30 | |||
31 | # replace these SRCREVs with the real commit ids once you've had | ||
32 | # the appropriate changes committed to the upstream linux-yocto repo | ||
33 | SRCREV_machine_pn-linux-yocto-tiny_{{=machine}} ?= "${AUTOREV}" | ||
34 | SRCREV_meta_pn-linux-yocto-tiny_{{=machine}} ?= "${AUTOREV}" | ||
35 | #LINUX_VERSION = "4.4" | ||
36 | #Remove the following line once AUTOREV is locked to a certain SRCREV | ||
37 | KERNEL_VERSION_SANITY_SKIP = "1" | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/mips64/recipes-kernel/linux/linux-yocto_4.10.bbappend b/scripts/lib/bsp/substrate/target/arch/mips64/recipes-kernel/linux/linux-yocto_4.10.bbappend deleted file mode 100644 index 336a956310..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/mips64/recipes-kernel/linux/linux-yocto_4.10.bbappend +++ /dev/null | |||
@@ -1,37 +0,0 @@ | |||
1 | # yocto-bsp-filename {{ if kernel_choice == "linux-yocto_4.10": }} this | ||
2 | FILESEXTRAPATHS_prepend := "${THISDIR}/files:" | ||
3 | |||
4 | PR := "${PR}.1" | ||
5 | |||
6 | COMPATIBLE_MACHINE_{{=machine}} = "{{=machine}}" | ||
7 | |||
8 | {{ input type:"boolean" name:"need_new_kbranch" prio:"20" msg:"Do you need a new machine branch for this BSP (the alternative is to re-use an existing branch)? [y/n]" default:"y" }} | ||
9 | |||
10 | {{ if need_new_kbranch == "y": }} | ||
11 | {{ input type:"choicelist" name:"new_kbranch" gen:"bsp.kernel.all_branches" branches_base:"standard" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/edgerouter" }} | ||
12 | |||
13 | {{ if need_new_kbranch == "n": }} | ||
14 | {{ input type:"choicelist" name:"existing_kbranch" gen:"bsp.kernel.all_branches" branches_base:"standard" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/edgerouter" }} | ||
15 | |||
16 | {{ if need_new_kbranch == "n": }} | ||
17 | KBRANCH_{{=machine}} = "{{=existing_kbranch}}" | ||
18 | |||
19 | {{ input type:"boolean" name:"smp" prio:"30" msg:"Do you need SMP support? (y/n)" default:"y"}} | ||
20 | {{ if smp == "y": }} | ||
21 | KERNEL_FEATURES_append_{{=machine}} += " cfg/smp.scc" | ||
22 | |||
23 | SRC_URI += "file://{{=machine}}.scc \ | ||
24 | file://{{=machine}}.cfg \ | ||
25 | file://{{=machine}}-standard.scc \ | ||
26 | file://{{=machine}}-user-config.cfg \ | ||
27 | file://{{=machine}}-user-features.scc \ | ||
28 | file://{{=machine}}-user-patches.scc \ | ||
29 | " | ||
30 | |||
31 | # replace these SRCREVs with the real commit ids once you've had | ||
32 | # the appropriate changes committed to the upstream linux-yocto repo | ||
33 | SRCREV_machine_pn-linux-yocto_{{=machine}} ?= "${AUTOREV}" | ||
34 | SRCREV_meta_pn-linux-yocto_{{=machine}} ?= "${AUTOREV}" | ||
35 | #LINUX_VERSION = "4.10" | ||
36 | #Remove the following line once AUTOREV is locked to a certain SRCREV | ||
37 | KERNEL_VERSION_SANITY_SKIP = "1" | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/mips64/recipes-kernel/linux/linux-yocto_4.12.bbappend b/scripts/lib/bsp/substrate/target/arch/mips64/recipes-kernel/linux/linux-yocto_4.12.bbappend deleted file mode 100644 index 5333c30b85..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/mips64/recipes-kernel/linux/linux-yocto_4.12.bbappend +++ /dev/null | |||
@@ -1,37 +0,0 @@ | |||
1 | # yocto-bsp-filename {{ if kernel_choice == "linux-yocto_4.12": }} this | ||
2 | FILESEXTRAPATHS_prepend := "${THISDIR}/files:" | ||
3 | |||
4 | PR := "${PR}.1" | ||
5 | |||
6 | COMPATIBLE_MACHINE_{{=machine}} = "{{=machine}}" | ||
7 | |||
8 | {{ input type:"boolean" name:"need_new_kbranch" prio:"20" msg:"Do you need a new machine branch for this BSP (the alternative is to re-use an existing branch)? [y/n]" default:"y" }} | ||
9 | |||
10 | {{ if need_new_kbranch == "y": }} | ||
11 | {{ input type:"choicelist" name:"new_kbranch" gen:"bsp.kernel.all_branches" branches_base:"standard" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/edgerouter" }} | ||
12 | |||
13 | {{ if need_new_kbranch == "n": }} | ||
14 | {{ input type:"choicelist" name:"existing_kbranch" gen:"bsp.kernel.all_branches" branches_base:"standard" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/edgerouter" }} | ||
15 | |||
16 | {{ if need_new_kbranch == "n": }} | ||
17 | KBRANCH_{{=machine}} = "{{=existing_kbranch}}" | ||
18 | |||
19 | {{ input type:"boolean" name:"smp" prio:"30" msg:"Do you need SMP support? (y/n)" default:"y"}} | ||
20 | {{ if smp == "y": }} | ||
21 | KERNEL_FEATURES_append_{{=machine}} += " cfg/smp.scc" | ||
22 | |||
23 | SRC_URI += "file://{{=machine}}.scc \ | ||
24 | file://{{=machine}}.cfg \ | ||
25 | file://{{=machine}}-standard.scc \ | ||
26 | file://{{=machine}}-user-config.cfg \ | ||
27 | file://{{=machine}}-user-features.scc \ | ||
28 | file://{{=machine}}-user-patches.scc \ | ||
29 | " | ||
30 | |||
31 | # replace these SRCREVs with the real commit ids once you've had | ||
32 | # the appropriate changes committed to the upstream linux-yocto repo | ||
33 | SRCREV_machine_pn-linux-yocto_{{=machine}} ?= "${AUTOREV}" | ||
34 | SRCREV_meta_pn-linux-yocto_{{=machine}} ?= "${AUTOREV}" | ||
35 | #LINUX_VERSION = "4.10" | ||
36 | #Remove the following line once AUTOREV is locked to a certain SRCREV | ||
37 | KERNEL_VERSION_SANITY_SKIP = "1" | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/mips64/recipes-kernel/linux/linux-yocto_4.4.bbappend b/scripts/lib/bsp/substrate/target/arch/mips64/recipes-kernel/linux/linux-yocto_4.4.bbappend deleted file mode 100644 index 7d18566b2f..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/mips64/recipes-kernel/linux/linux-yocto_4.4.bbappend +++ /dev/null | |||
@@ -1,37 +0,0 @@ | |||
1 | # yocto-bsp-filename {{ if kernel_choice == "linux-yocto_4.4": }} this | ||
2 | FILESEXTRAPATHS_prepend := "${THISDIR}/files:" | ||
3 | |||
4 | PR := "${PR}.1" | ||
5 | |||
6 | COMPATIBLE_MACHINE_{{=machine}} = "{{=machine}}" | ||
7 | |||
8 | {{ input type:"boolean" name:"need_new_kbranch" prio:"20" msg:"Do you need a new machine branch for this BSP (the alternative is to re-use an existing branch)? [y/n]" default:"y" }} | ||
9 | |||
10 | {{ if need_new_kbranch == "y": }} | ||
11 | {{ input type:"choicelist" name:"new_kbranch" gen:"bsp.kernel.all_branches" branches_base:"standard" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/edgerouter" }} | ||
12 | |||
13 | {{ if need_new_kbranch == "n": }} | ||
14 | {{ input type:"choicelist" name:"existing_kbranch" gen:"bsp.kernel.all_branches" branches_base:"standard" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/edgerouter" }} | ||
15 | |||
16 | {{ if need_new_kbranch == "n": }} | ||
17 | KBRANCH_{{=machine}} = "{{=existing_kbranch}}" | ||
18 | |||
19 | {{ input type:"boolean" name:"smp" prio:"30" msg:"Do you need SMP support? (y/n)" default:"y"}} | ||
20 | {{ if smp == "y": }} | ||
21 | KERNEL_FEATURES_append_{{=machine}} += " cfg/smp.scc" | ||
22 | |||
23 | SRC_URI += "file://{{=machine}}.scc \ | ||
24 | file://{{=machine}}.cfg \ | ||
25 | file://{{=machine}}-standard.scc \ | ||
26 | file://{{=machine}}-user-config.cfg \ | ||
27 | file://{{=machine}}-user-features.scc \ | ||
28 | file://{{=machine}}-user-patches.scc \ | ||
29 | " | ||
30 | |||
31 | # replace these SRCREVs with the real commit ids once you've had | ||
32 | # the appropriate changes committed to the upstream linux-yocto repo | ||
33 | SRCREV_machine_pn-linux-yocto_{{=machine}} ?= "${AUTOREV}" | ||
34 | SRCREV_meta_pn-linux-yocto_{{=machine}} ?= "${AUTOREV}" | ||
35 | #LINUX_VERSION = "4.4" | ||
36 | #Remove the following line once AUTOREV is locked to a certain SRCREV | ||
37 | KERNEL_VERSION_SANITY_SKIP = "1" | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/powerpc/.gitignore b/scripts/lib/bsp/substrate/target/arch/powerpc/.gitignore deleted file mode 100644 index e69de29bb2..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/powerpc/.gitignore +++ /dev/null | |||
diff --git a/scripts/lib/bsp/substrate/target/arch/powerpc/conf/machine/machine.conf b/scripts/lib/bsp/substrate/target/arch/powerpc/conf/machine/machine.conf deleted file mode 100644 index 352b97231d..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/powerpc/conf/machine/machine.conf +++ /dev/null | |||
@@ -1,86 +0,0 @@ | |||
1 | # yocto-bsp-filename {{=machine}}.conf | ||
2 | #@TYPE: Machine | ||
3 | #@NAME: {{=machine}} | ||
4 | |||
5 | #@DESCRIPTION: Machine configuration for {{=machine}} systems | ||
6 | |||
7 | TARGET_FPU = "" | ||
8 | |||
9 | {{ input type:"choicelist" name:"tunefile" prio:"40" msg:"Which machine tuning would you like to use?" default:"tune_ppce300c3" }} | ||
10 | {{ input type:"choice" val:"tune_ppc476" msg:"ppc476 tuning optimizations" }} | ||
11 | {{ input type:"choice" val:"tune_ppc603e" msg:"ppc603e tuning optimizations" }} | ||
12 | {{ input type:"choice" val:"tune_ppc7400" msg:"ppc7400 tuning optimizations" }} | ||
13 | {{ input type:"choice" val:"tune_ppce300c2" msg:"ppce300c2 tuning optimizations" }} | ||
14 | {{ input type:"choice" val:"tune_ppce300c3" msg:"ppce300c3 tuning optimizations" }} | ||
15 | {{ input type:"choice" val:"tune_ppce500" msg:"ppce500 tuning optimizations" }} | ||
16 | {{ input type:"choice" val:"tune_ppce500mc" msg:"ppce500mc tuning optimizations" }} | ||
17 | {{ input type:"choice" val:"tune_ppce500v2" msg:"ppce500v2 tuning optimizations" }} | ||
18 | {{ input type:"choice" val:"tune_ppce5500" msg:"ppce5500 tuning optimizations" }} | ||
19 | {{ input type:"choice" val:"tune_ppce6500" msg:"ppce6500 tuning optimizations" }} | ||
20 | {{ input type:"choice" val:"tune_power5" msg:"power5 tuning optimizations" }} | ||
21 | {{ input type:"choice" val:"tune_power6" msg:"power6 tuning optimizations" }} | ||
22 | {{ input type:"choice" val:"tune_power7" msg:"power7 tuning optimizations" }} | ||
23 | {{ if tunefile == "tune_ppc476": }} | ||
24 | include conf/machine/include/tune-ppc476.inc | ||
25 | {{ if tunefile == "tune_ppc603e": }} | ||
26 | include conf/machine/include/tune-ppc603e.inc | ||
27 | {{ if tunefile == "tune_ppc7400": }} | ||
28 | include conf/machine/include/tune-ppc7400.inc | ||
29 | {{ if tunefile == "tune_ppce300c2": }} | ||
30 | include conf/machine/include/tune-ppce300c2.inc | ||
31 | {{ if tunefile == "tune_ppce300c3": }} | ||
32 | include conf/machine/include/tune-ppce300c3.inc | ||
33 | {{ if tunefile == "tune_ppce500": }} | ||
34 | include conf/machine/include/tune-ppce500.inc | ||
35 | {{ if tunefile == "tune_ppce500mc": }} | ||
36 | include conf/machine/include/tune-ppce500mc.inc | ||
37 | {{ if tunefile == "tune_ppce500v2": }} | ||
38 | include conf/machine/include/tune-ppce500v2.inc | ||
39 | {{ if tunefile == "tune_ppce5500": }} | ||
40 | include conf/machine/include/tune-ppce5500.inc | ||
41 | {{ if tunefile == "tune_ppce6500": }} | ||
42 | include conf/machine/include/tune-ppce6500.inc | ||
43 | {{ if tunefile == "tune_power5": }} | ||
44 | include conf/machine/include/tune-power5.inc | ||
45 | {{ if tunefile == "tune_power6": }} | ||
46 | include conf/machine/include/tune-power6.inc | ||
47 | {{ if tunefile == "tune_power7": }} | ||
48 | include conf/machine/include/tune-power7.inc | ||
49 | |||
50 | KERNEL_IMAGETYPE = "uImage" | ||
51 | |||
52 | EXTRA_IMAGEDEPENDS += "u-boot" | ||
53 | UBOOT_MACHINE_{{=machine}} = "MPC8315ERDB_config" | ||
54 | |||
55 | SERIAL_CONSOLE = "115200 ttyS0" | ||
56 | |||
57 | MACHINE_FEATURES = "keyboard pci ext2 ext3 serial" | ||
58 | |||
59 | {{ if kernel_choice == "custom": preferred_kernel = "linux-yocto-custom" }} | ||
60 | {{ if kernel_choice == "linux-yocto-dev": preferred_kernel = "linux-yocto-dev" }} | ||
61 | {{ if kernel_choice == "custom" or kernel_choice == "linux-yocto-dev" : }} | ||
62 | PREFERRED_PROVIDER_virtual/kernel ?= "{{=preferred_kernel}}" | ||
63 | |||
64 | {{ if kernel_choice != "custom" and kernel_choice != "linux-yocto-dev": preferred_kernel = kernel_choice.split('_')[0] }} | ||
65 | {{ if kernel_choice != "custom" and kernel_choice != "linux-yocto-dev": preferred_kernel_version = kernel_choice.split('_')[1] }} | ||
66 | {{ if kernel_choice != "custom" and kernel_choice != "linux-yocto-dev": }} | ||
67 | PREFERRED_PROVIDER_virtual/kernel ?= "{{=preferred_kernel}}" | ||
68 | PREFERRED_VERSION_{{=preferred_kernel}} ?= "{{=preferred_kernel_version}}%" | ||
69 | |||
70 | {{ input type:"boolean" name:"xserver" prio:"50" msg:"Do you need support for X? (y/n)" default:"y" }} | ||
71 | {{ if xserver == "y": }} | ||
72 | PREFERRED_PROVIDER_virtual/xserver ?= "xserver-xorg" | ||
73 | XSERVER ?= "xserver-xorg \ | ||
74 | xf86-video-fbdev" | ||
75 | |||
76 | PREFERRED_VERSION_u-boot ?= "v2016.01%" | ||
77 | {{ input type:"edit" name:"uboot_entrypoint" prio:"40" msg:"Please specify a value for UBOOT_ENTRYPOINT:" default:"0x00000000" }} | ||
78 | UBOOT_ENTRYPOINT = "{{=uboot_entrypoint}}" | ||
79 | |||
80 | {{ input type:"edit" name:"kernel_devicetree" prio:"40" msg:"Please specify a [arch/powerpc/boot/dts/xxx] value for KERNEL_DEVICETREE:" default:"mpc8315erdb.dts" }} | ||
81 | KERNEL_DEVICETREE = "${S}/arch/powerpc/boot/dts/{{=kernel_devicetree}}" | ||
82 | |||
83 | MACHINE_EXTRA_RRECOMMENDS = " kernel-modules" | ||
84 | |||
85 | IMAGE_FSTYPES ?= "jffs2 tar.bz2" | ||
86 | JFFS2_ERASEBLOCK = "0x4000" | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/powerpc/recipes-kernel/linux/files.noinstall b/scripts/lib/bsp/substrate/target/arch/powerpc/recipes-kernel/linux/files.noinstall deleted file mode 100644 index 1e0d92c55c..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/powerpc/recipes-kernel/linux/files.noinstall +++ /dev/null | |||
@@ -1 +0,0 @@ | |||
1 | # yocto-bsp-dirname {{ if kernel_choice != "custom": }} files | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/powerpc/recipes-kernel/linux/files/machine-preempt-rt.scc b/scripts/lib/bsp/substrate/target/arch/powerpc/recipes-kernel/linux/files/machine-preempt-rt.scc deleted file mode 100644 index 91ccfb8302..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/powerpc/recipes-kernel/linux/files/machine-preempt-rt.scc +++ /dev/null | |||
@@ -1,11 +0,0 @@ | |||
1 | # yocto-bsp-filename {{=machine}}-preempt-rt.scc | ||
2 | define KMACHINE {{=machine}} | ||
3 | |||
4 | define KARCH powerpc | ||
5 | |||
6 | include {{=map_preempt_rt_kbranch(need_new_kbranch, new_kbranch, existing_kbranch)}} | ||
7 | {{ if need_new_kbranch == "y": }} | ||
8 | define KTYPE {{=new_kbranch}} | ||
9 | branch {{=machine}} | ||
10 | |||
11 | include {{=machine}}.scc | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/powerpc/recipes-kernel/linux/files/machine-standard.scc b/scripts/lib/bsp/substrate/target/arch/powerpc/recipes-kernel/linux/files/machine-standard.scc deleted file mode 100644 index c166fcd3d9..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/powerpc/recipes-kernel/linux/files/machine-standard.scc +++ /dev/null | |||
@@ -1,11 +0,0 @@ | |||
1 | # yocto-bsp-filename {{=machine}}-standard.scc | ||
2 | define KMACHINE {{=machine}} | ||
3 | |||
4 | define KARCH powerpc | ||
5 | |||
6 | include {{=map_standard_kbranch(need_new_kbranch, new_kbranch, existing_kbranch)}} nopatch | ||
7 | {{ if need_new_kbranch == "y": }} | ||
8 | define KTYPE {{=new_kbranch}} | ||
9 | branch {{=machine}} | ||
10 | |||
11 | include {{=machine}}.scc | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/powerpc/recipes-kernel/linux/files/machine-tiny.scc b/scripts/lib/bsp/substrate/target/arch/powerpc/recipes-kernel/linux/files/machine-tiny.scc deleted file mode 100644 index 2701fd8b50..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/powerpc/recipes-kernel/linux/files/machine-tiny.scc +++ /dev/null | |||
@@ -1,11 +0,0 @@ | |||
1 | # yocto-bsp-filename {{=machine}}-tiny.scc | ||
2 | define KMACHINE {{=machine}} | ||
3 | |||
4 | define KARCH powerpc | ||
5 | |||
6 | include {{=map_tiny_kbranch(need_new_kbranch, new_kbranch, existing_kbranch)}} | ||
7 | {{ if need_new_kbranch == "y": }} | ||
8 | define KTYPE {{=new_kbranch}} | ||
9 | branch {{=machine}} | ||
10 | |||
11 | include {{=machine}}.scc | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/powerpc/recipes-kernel/linux/files/machine-user-config.cfg b/scripts/lib/bsp/substrate/target/arch/powerpc/recipes-kernel/linux/files/machine-user-config.cfg deleted file mode 100644 index 47489e44e9..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/powerpc/recipes-kernel/linux/files/machine-user-config.cfg +++ /dev/null | |||
@@ -1 +0,0 @@ | |||
1 | # yocto-bsp-filename {{=machine}}-user-config.cfg | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/powerpc/recipes-kernel/linux/files/machine-user-features.scc b/scripts/lib/bsp/substrate/target/arch/powerpc/recipes-kernel/linux/files/machine-user-features.scc deleted file mode 100644 index 582759e612..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/powerpc/recipes-kernel/linux/files/machine-user-features.scc +++ /dev/null | |||
@@ -1 +0,0 @@ | |||
1 | # yocto-bsp-filename {{=machine}}-user-features.scc | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/powerpc/recipes-kernel/linux/files/machine-user-patches.scc b/scripts/lib/bsp/substrate/target/arch/powerpc/recipes-kernel/linux/files/machine-user-patches.scc deleted file mode 100644 index 97f747fa07..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/powerpc/recipes-kernel/linux/files/machine-user-patches.scc +++ /dev/null | |||
@@ -1 +0,0 @@ | |||
1 | # yocto-bsp-filename {{=machine}}-user-patches.scc | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/powerpc/recipes-kernel/linux/files/machine.cfg b/scripts/lib/bsp/substrate/target/arch/powerpc/recipes-kernel/linux/files/machine.cfg deleted file mode 100644 index 5bfe1fe4b0..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/powerpc/recipes-kernel/linux/files/machine.cfg +++ /dev/null | |||
@@ -1,164 +0,0 @@ | |||
1 | # yocto-bsp-filename {{=machine}}.cfg | ||
2 | .......................................................................... | ||
3 | . WARNING | ||
4 | . | ||
5 | . This file is a kernel configuration fragment, and not a full kernel | ||
6 | . configuration file. The final kernel configuration is made up of | ||
7 | . an assembly of processed fragments, each of which is designed to | ||
8 | . capture a specific part of the final configuration (e.g. platform | ||
9 | . configuration, feature configuration, and board specific hardware | ||
10 | . configuration). For more information on kernel configuration, please | ||
11 | . consult the product documentation. | ||
12 | . | ||
13 | .......................................................................... | ||
14 | CONFIG_PPC32=y | ||
15 | CONFIG_PPC_OF=y | ||
16 | CONFIG_PPC_UDBG_16550=y | ||
17 | |||
18 | # | ||
19 | # Processor support | ||
20 | # | ||
21 | CONFIG_PPC_83xx=y | ||
22 | |||
23 | # | ||
24 | # Platform support | ||
25 | # | ||
26 | CONFIG_MPC831x_RDB=y | ||
27 | # CONFIG_PPC_CHRP is not set | ||
28 | # CONFIG_PPC_PMAC is not set | ||
29 | |||
30 | # | ||
31 | # Bus options | ||
32 | # | ||
33 | CONFIG_PCI=y | ||
34 | |||
35 | # | ||
36 | # Memory Technology Devices (MTD) | ||
37 | # | ||
38 | CONFIG_MTD=y | ||
39 | CONFIG_MTD_PARTITIONS=y | ||
40 | CONFIG_MTD_CMDLINE_PARTS=y | ||
41 | CONFIG_MTD_OF_PARTS=y | ||
42 | |||
43 | # | ||
44 | # User Modules And Translation Layers | ||
45 | # | ||
46 | CONFIG_MTD_CHAR=y | ||
47 | CONFIG_MTD_BLOCK=y | ||
48 | |||
49 | # | ||
50 | # RAM/ROM/Flash chip drivers | ||
51 | # | ||
52 | CONFIG_MTD_CFI=y | ||
53 | CONFIG_MTD_CFI_AMDSTD=y | ||
54 | |||
55 | # | ||
56 | # Mapping drivers for chip access | ||
57 | # | ||
58 | CONFIG_MTD_PHYSMAP_OF=y | ||
59 | |||
60 | # | ||
61 | # NAND Flash Device Drivers | ||
62 | # | ||
63 | CONFIG_MTD_NAND=y | ||
64 | |||
65 | # | ||
66 | # Ethernet (1000 Mbit) | ||
67 | # | ||
68 | CONFIG_GIANFAR=y | ||
69 | |||
70 | # | ||
71 | # Serial drivers | ||
72 | # | ||
73 | CONFIG_SERIAL_8250=y | ||
74 | CONFIG_SERIAL_8250_CONSOLE=y | ||
75 | CONFIG_SERIAL_8250_NR_UARTS=2 | ||
76 | |||
77 | # | ||
78 | # Watchdog Device Drivers | ||
79 | # | ||
80 | CONFIG_8xxx_WDT=y | ||
81 | |||
82 | # | ||
83 | # I2C support | ||
84 | # | ||
85 | CONFIG_I2C=y | ||
86 | CONFIG_I2C_CHARDEV=y | ||
87 | |||
88 | # | ||
89 | # I2C Hardware Bus support | ||
90 | # | ||
91 | CONFIG_I2C_MPC=y | ||
92 | |||
93 | CONFIG_SENSORS_LM75=y | ||
94 | |||
95 | CONFIG_MISC_DEVICES=y | ||
96 | |||
97 | # | ||
98 | # Miscellaneous I2C Chip support | ||
99 | # | ||
100 | CONFIG_EEPROM_AT24=y | ||
101 | |||
102 | # | ||
103 | # SPI support | ||
104 | # | ||
105 | CONFIG_SPI=y | ||
106 | # CONFIG_SPI_DEBUG is not set | ||
107 | CONFIG_SPI_MASTER=y | ||
108 | |||
109 | # | ||
110 | # SPI Master Controller Drivers | ||
111 | # | ||
112 | CONFIG_SPI_MPC8xxx=y | ||
113 | |||
114 | # | ||
115 | # SPI Protocol Masters | ||
116 | # | ||
117 | CONFIG_HWMON=y | ||
118 | |||
119 | # | ||
120 | # SCSI device support | ||
121 | # | ||
122 | CONFIG_SCSI=y | ||
123 | CONFIG_BLK_DEV_SD=y | ||
124 | CONFIG_CHR_DEV_SG=y | ||
125 | CONFIG_SCSI_LOGGING=y | ||
126 | |||
127 | CONFIG_ATA=y | ||
128 | CONFIG_ATA_VERBOSE_ERROR=y | ||
129 | CONFIG_SATA_FSL=y | ||
130 | CONFIG_ATA_SFF=y | ||
131 | |||
132 | # | ||
133 | # USB support | ||
134 | # | ||
135 | CONFIG_USB=m | ||
136 | CONFIG_USB_DEVICEFS=y | ||
137 | |||
138 | # | ||
139 | # USB Host Controller Drivers | ||
140 | # | ||
141 | CONFIG_USB_EHCI_HCD=m | ||
142 | CONFIG_USB_EHCI_FSL=y | ||
143 | CONFIG_USB_STORAGE=m | ||
144 | |||
145 | # | ||
146 | # Real Time Clock | ||
147 | # | ||
148 | CONFIG_RTC_CLASS=y | ||
149 | |||
150 | # | ||
151 | # I2C RTC drivers | ||
152 | # | ||
153 | CONFIG_RTC_DRV_DS1307=y | ||
154 | |||
155 | CONFIG_KGDB_8250=m | ||
156 | |||
157 | CONFIG_CRYPTO_DEV_TALITOS=m | ||
158 | |||
159 | CONFIG_FSL_DMA=y | ||
160 | |||
161 | CONFIG_MMC=y | ||
162 | CONFIG_MMC_SPI=m | ||
163 | |||
164 | CONFIG_USB_FSL_MPH_DR_OF=y | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/powerpc/recipes-kernel/linux/files/machine.scc b/scripts/lib/bsp/substrate/target/arch/powerpc/recipes-kernel/linux/files/machine.scc deleted file mode 100644 index 89bb97efd6..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/powerpc/recipes-kernel/linux/files/machine.scc +++ /dev/null | |||
@@ -1,8 +0,0 @@ | |||
1 | # yocto-bsp-filename {{=machine}}.scc | ||
2 | kconf hardware {{=machine}}.cfg | ||
3 | |||
4 | include cfg/usb-mass-storage.scc | ||
5 | include cfg/fs/vfat.scc | ||
6 | |||
7 | include cfg/dmaengine.scc | ||
8 | |||
diff --git a/scripts/lib/bsp/substrate/target/arch/powerpc/recipes-kernel/linux/kernel-list.noinstall b/scripts/lib/bsp/substrate/target/arch/powerpc/recipes-kernel/linux/kernel-list.noinstall deleted file mode 100644 index 917f0e2207..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/powerpc/recipes-kernel/linux/kernel-list.noinstall +++ /dev/null | |||
@@ -1,5 +0,0 @@ | |||
1 | {{ if kernel_choice != "custom": }} | ||
2 | {{ input type:"boolean" name:"use_default_kernel" prio:"10" msg:"Would you like to use the default (4.12) kernel? (y/n)" default:"y"}} | ||
3 | |||
4 | {{ if kernel_choice != "custom" and use_default_kernel == "n": }} | ||
5 | {{ input type:"choicelist" name:"kernel_choice" gen:"bsp.kernel.kernels" prio:"10" msg:"Please choose the kernel to use in this BSP:" default:"linux-yocto_4.12"}} | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/powerpc/recipes-kernel/linux/linux-yocto-dev.bbappend b/scripts/lib/bsp/substrate/target/arch/powerpc/recipes-kernel/linux/linux-yocto-dev.bbappend deleted file mode 100644 index 22ed273811..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/powerpc/recipes-kernel/linux/linux-yocto-dev.bbappend +++ /dev/null | |||
@@ -1,28 +0,0 @@ | |||
1 | # yocto-bsp-filename {{ if kernel_choice == "linux-yocto-dev": }} this | ||
2 | FILESEXTRAPATHS_prepend := "${THISDIR}/files:" | ||
3 | |||
4 | PR := "${PR}.1" | ||
5 | |||
6 | COMPATIBLE_MACHINE_{{=machine}} = "{{=machine}}" | ||
7 | {{ input type:"boolean" name:"need_new_kbranch" prio:"20" msg:"Do you need a new machine branch for this BSP (the alternative is to re-use an existing branch)? [y/n]" default:"y" }} | ||
8 | |||
9 | {{ if need_new_kbranch == "y": }} | ||
10 | {{ input type:"choicelist" name:"new_kbranch" nameappend:"i386" gen:"bsp.kernel.all_branches" branches_base:"standard" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/base" }} | ||
11 | |||
12 | {{ if need_new_kbranch == "n": }} | ||
13 | {{ input type:"choicelist" name:"existing_kbranch" nameappend:"i386" gen:"bsp.kernel.all_branches" branches_base:"standard" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/base" }} | ||
14 | |||
15 | {{ if need_new_kbranch == "n": }} | ||
16 | KBRANCH_{{=machine}} = "{{=existing_kbranch}}" | ||
17 | |||
18 | {{ input type:"boolean" name:"smp" prio:"30" msg:"Would you like SMP support? (y/n)" default:"y"}} | ||
19 | {{ if smp == "y": }} | ||
20 | KERNEL_FEATURES_append_{{=machine}} += " cfg/smp.scc" | ||
21 | |||
22 | SRC_URI += "file://{{=machine}}.scc \ | ||
23 | file://{{=machine}}.cfg \ | ||
24 | file://{{=machine}}-standard.scc \ | ||
25 | file://{{=machine}}-user-config.cfg \ | ||
26 | file://{{=machine}}-user-features.scc \ | ||
27 | file://{{=machine}}-user-patches.scc \ | ||
28 | " | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/powerpc/recipes-kernel/linux/linux-yocto-tiny_4.10.bbappend b/scripts/lib/bsp/substrate/target/arch/powerpc/recipes-kernel/linux/linux-yocto-tiny_4.10.bbappend deleted file mode 100644 index bae943ea1e..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/powerpc/recipes-kernel/linux/linux-yocto-tiny_4.10.bbappend +++ /dev/null | |||
@@ -1,37 +0,0 @@ | |||
1 | # yocto-bsp-filename {{ if kernel_choice == "linux-yocto-tiny_4.10": }} this | ||
2 | FILESEXTRAPATHS_prepend := "${THISDIR}/files:" | ||
3 | |||
4 | PR := "${PR}.1" | ||
5 | |||
6 | COMPATIBLE_MACHINE_{{=machine}} = "{{=machine}}" | ||
7 | |||
8 | {{ input type:"boolean" name:"need_new_kbranch" prio:"20" msg:"Do you need a new machine branch for this BSP (the alternative is to re-use an existing branch)? [y/n]" default:"y" }} | ||
9 | |||
10 | {{ if need_new_kbranch == "y": }} | ||
11 | {{ input type:"choicelist" name:"new_kbranch" gen:"bsp.kernel.all_branches" branches_base:"standard/tiny" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/tiny/base" }} | ||
12 | |||
13 | {{ if need_new_kbranch == "n": }} | ||
14 | {{ input type:"choicelist" name:"existing_kbranch" gen:"bsp.kernel.all_branches" branches_base:"standard/tiny" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/tiny/base" }} | ||
15 | |||
16 | {{ if need_new_kbranch == "n": }} | ||
17 | KBRANCH_{{=machine}} = "{{=existing_kbranch}}" | ||
18 | |||
19 | {{ input type:"boolean" name:"smp" prio:"30" msg:"Do you need SMP support? (y/n)" default:"y"}} | ||
20 | {{ if smp == "y": }} | ||
21 | KERNEL_FEATURES_append_{{=machine}} += " cfg/smp.scc" | ||
22 | |||
23 | SRC_URI += "file://{{=machine}}.scc \ | ||
24 | file://{{=machine}}.cfg \ | ||
25 | file://{{=machine}}-tiny.scc \ | ||
26 | file://{{=machine}}-user-config.cfg \ | ||
27 | file://{{=machine}}-user-patches.scc \ | ||
28 | file://{{=machine}}-user-features.scc \ | ||
29 | " | ||
30 | |||
31 | # replace these SRCREVs with the real commit ids once you've had | ||
32 | # the appropriate changes committed to the upstream linux-yocto repo | ||
33 | SRCREV_machine_pn-linux-yocto-tiny_{{=machine}} ?= "${AUTOREV}" | ||
34 | SRCREV_meta_pn-linux-yocto-tiny_{{=machine}} ?= "${AUTOREV}" | ||
35 | #LINUX_VERSION = "4.10" | ||
36 | #Remove the following line once AUTOREV is locked to a certain SRCREV | ||
37 | KERNEL_VERSION_SANITY_SKIP = "1" | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/powerpc/recipes-kernel/linux/linux-yocto-tiny_4.12.bbappend b/scripts/lib/bsp/substrate/target/arch/powerpc/recipes-kernel/linux/linux-yocto-tiny_4.12.bbappend deleted file mode 100644 index 6f3e104c66..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/powerpc/recipes-kernel/linux/linux-yocto-tiny_4.12.bbappend +++ /dev/null | |||
@@ -1,37 +0,0 @@ | |||
1 | # yocto-bsp-filename {{ if kernel_choice == "linux-yocto-tiny_4.12": }} this | ||
2 | FILESEXTRAPATHS_prepend := "${THISDIR}/files:" | ||
3 | |||
4 | PR := "${PR}.1" | ||
5 | |||
6 | COMPATIBLE_MACHINE_{{=machine}} = "{{=machine}}" | ||
7 | |||
8 | {{ input type:"boolean" name:"need_new_kbranch" prio:"20" msg:"Do you need a new machine branch for this BSP (the alternative is to re-use an existing branch)? [y/n]" default:"y" }} | ||
9 | |||
10 | {{ if need_new_kbranch == "y": }} | ||
11 | {{ input type:"choicelist" name:"new_kbranch" gen:"bsp.kernel.all_branches" branches_base:"standard/tiny" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/tiny/base" }} | ||
12 | |||
13 | {{ if need_new_kbranch == "n": }} | ||
14 | {{ input type:"choicelist" name:"existing_kbranch" gen:"bsp.kernel.all_branches" branches_base:"standard/tiny" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/tiny/base" }} | ||
15 | |||
16 | {{ if need_new_kbranch == "n": }} | ||
17 | KBRANCH_{{=machine}} = "{{=existing_kbranch}}" | ||
18 | |||
19 | {{ input type:"boolean" name:"smp" prio:"30" msg:"Do you need SMP support? (y/n)" default:"y"}} | ||
20 | {{ if smp == "y": }} | ||
21 | KERNEL_FEATURES_append_{{=machine}} += " cfg/smp.scc" | ||
22 | |||
23 | SRC_URI += "file://{{=machine}}.scc \ | ||
24 | file://{{=machine}}.cfg \ | ||
25 | file://{{=machine}}-tiny.scc \ | ||
26 | file://{{=machine}}-user-config.cfg \ | ||
27 | file://{{=machine}}-user-patches.scc \ | ||
28 | file://{{=machine}}-user-features.scc \ | ||
29 | " | ||
30 | |||
31 | # replace these SRCREVs with the real commit ids once you've had | ||
32 | # the appropriate changes committed to the upstream linux-yocto repo | ||
33 | SRCREV_machine_pn-linux-yocto-tiny_{{=machine}} ?= "${AUTOREV}" | ||
34 | SRCREV_meta_pn-linux-yocto-tiny_{{=machine}} ?= "${AUTOREV}" | ||
35 | #LINUX_VERSION = "4.10" | ||
36 | #Remove the following line once AUTOREV is locked to a certain SRCREV | ||
37 | KERNEL_VERSION_SANITY_SKIP = "1" | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/powerpc/recipes-kernel/linux/linux-yocto-tiny_4.4.bbappend b/scripts/lib/bsp/substrate/target/arch/powerpc/recipes-kernel/linux/linux-yocto-tiny_4.4.bbappend deleted file mode 100644 index 62d1817f22..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/powerpc/recipes-kernel/linux/linux-yocto-tiny_4.4.bbappend +++ /dev/null | |||
@@ -1,37 +0,0 @@ | |||
1 | # yocto-bsp-filename {{ if kernel_choice == "linux-yocto-tiny_4.4": }} this | ||
2 | FILESEXTRAPATHS_prepend := "${THISDIR}/files:" | ||
3 | |||
4 | PR := "${PR}.1" | ||
5 | |||
6 | COMPATIBLE_MACHINE_{{=machine}} = "{{=machine}}" | ||
7 | |||
8 | {{ input type:"boolean" name:"need_new_kbranch" prio:"20" msg:"Do you need a new machine branch for this BSP (the alternative is to re-use an existing branch)? [y/n]" default:"y" }} | ||
9 | |||
10 | {{ if need_new_kbranch == "y": }} | ||
11 | {{ input type:"choicelist" name:"new_kbranch" gen:"bsp.kernel.all_branches" branches_base:"standard/tiny" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/tiny/base" }} | ||
12 | |||
13 | {{ if need_new_kbranch == "n": }} | ||
14 | {{ input type:"choicelist" name:"existing_kbranch" gen:"bsp.kernel.all_branches" branches_base:"standard/tiny" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/tiny/base" }} | ||
15 | |||
16 | {{ if need_new_kbranch == "n": }} | ||
17 | KBRANCH_{{=machine}} = "{{=existing_kbranch}}" | ||
18 | |||
19 | {{ input type:"boolean" name:"smp" prio:"30" msg:"Do you need SMP support? (y/n)" default:"y"}} | ||
20 | {{ if smp == "y": }} | ||
21 | KERNEL_FEATURES_append_{{=machine}} += " cfg/smp.scc" | ||
22 | |||
23 | SRC_URI += "file://{{=machine}}.scc \ | ||
24 | file://{{=machine}}.cfg \ | ||
25 | file://{{=machine}}-tiny.scc \ | ||
26 | file://{{=machine}}-user-config.cfg \ | ||
27 | file://{{=machine}}-user-patches.scc \ | ||
28 | file://{{=machine}}-user-features.scc \ | ||
29 | " | ||
30 | |||
31 | # replace these SRCREVs with the real commit ids once you've had | ||
32 | # the appropriate changes committed to the upstream linux-yocto repo | ||
33 | SRCREV_machine_pn-linux-yocto-tiny_{{=machine}} ?= "${AUTOREV}" | ||
34 | SRCREV_meta_pn-linux-yocto-tiny_{{=machine}} ?= "${AUTOREV}" | ||
35 | #LINUX_VERSION = "4.4" | ||
36 | #Remove the following line once AUTOREV is locked to a certain SRCREV | ||
37 | KERNEL_VERSION_SANITY_SKIP = "1" | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/powerpc/recipes-kernel/linux/linux-yocto_4.10.bbappend b/scripts/lib/bsp/substrate/target/arch/powerpc/recipes-kernel/linux/linux-yocto_4.10.bbappend deleted file mode 100644 index dfbecb5337..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/powerpc/recipes-kernel/linux/linux-yocto_4.10.bbappend +++ /dev/null | |||
@@ -1,37 +0,0 @@ | |||
1 | # yocto-bsp-filename {{ if kernel_choice == "linux-yocto_4.10": }} this | ||
2 | FILESEXTRAPATHS_prepend := "${THISDIR}/files:" | ||
3 | |||
4 | PR := "${PR}.1" | ||
5 | |||
6 | COMPATIBLE_MACHINE_{{=machine}} = "{{=machine}}" | ||
7 | |||
8 | {{ input type:"boolean" name:"need_new_kbranch" prio:"20" msg:"Do you need a new machine branch for this BSP (the alternative is to re-use an existing branch)? [y/n]" default:"y" }} | ||
9 | |||
10 | {{ if need_new_kbranch == "y": }} | ||
11 | {{ input type:"choicelist" name:"new_kbranch" gen:"bsp.kernel.all_branches" branches_base:"standard" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/base" }} | ||
12 | |||
13 | {{ if need_new_kbranch == "n": }} | ||
14 | {{ input type:"choicelist" name:"existing_kbranch" gen:"bsp.kernel.all_branches" branches_base:"standard" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/base" }} | ||
15 | |||
16 | {{ if need_new_kbranch == "n": }} | ||
17 | KBRANCH_{{=machine}} = "{{=existing_kbranch}}" | ||
18 | |||
19 | {{ input type:"boolean" name:"smp" prio:"30" msg:"Do you need SMP support? (y/n)" default:"y"}} | ||
20 | {{ if smp == "y": }} | ||
21 | KERNEL_FEATURES_append_{{=machine}} += " cfg/smp.scc" | ||
22 | |||
23 | SRC_URI += "file://{{=machine}}.scc \ | ||
24 | file://{{=machine}}.cfg \ | ||
25 | file://{{=machine}}-standard.scc \ | ||
26 | file://{{=machine}}-user-config.cfg \ | ||
27 | file://{{=machine}}-user-features.scc \ | ||
28 | file://{{=machine}}-user-patches.scc \ | ||
29 | " | ||
30 | |||
31 | # replace these SRCREVs with the real commit ids once you've had | ||
32 | # the appropriate changes committed to the upstream linux-yocto repo | ||
33 | SRCREV_machine_pn-linux-yocto_{{=machine}} ?= "${AUTOREV}" | ||
34 | SRCREV_meta_pn-linux-yocto_{{=machine}} ?= "${AUTOREV}" | ||
35 | #LINUX_VERSION = "4.10" | ||
36 | #Remove the following line once AUTOREV is locked to a certain SRCREV | ||
37 | KERNEL_VERSION_SANITY_SKIP = "1" | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/powerpc/recipes-kernel/linux/linux-yocto_4.12.bbappend b/scripts/lib/bsp/substrate/target/arch/powerpc/recipes-kernel/linux/linux-yocto_4.12.bbappend deleted file mode 100644 index e874c9e45f..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/powerpc/recipes-kernel/linux/linux-yocto_4.12.bbappend +++ /dev/null | |||
@@ -1,37 +0,0 @@ | |||
1 | # yocto-bsp-filename {{ if kernel_choice == "linux-yocto_4.12": }} this | ||
2 | FILESEXTRAPATHS_prepend := "${THISDIR}/files:" | ||
3 | |||
4 | PR := "${PR}.1" | ||
5 | |||
6 | COMPATIBLE_MACHINE_{{=machine}} = "{{=machine}}" | ||
7 | |||
8 | {{ input type:"boolean" name:"need_new_kbranch" prio:"20" msg:"Do you need a new machine branch for this BSP (the alternative is to re-use an existing branch)? [y/n]" default:"y" }} | ||
9 | |||
10 | {{ if need_new_kbranch == "y": }} | ||
11 | {{ input type:"choicelist" name:"new_kbranch" gen:"bsp.kernel.all_branches" branches_base:"standard" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/base" }} | ||
12 | |||
13 | {{ if need_new_kbranch == "n": }} | ||
14 | {{ input type:"choicelist" name:"existing_kbranch" gen:"bsp.kernel.all_branches" branches_base:"standard" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/base" }} | ||
15 | |||
16 | {{ if need_new_kbranch == "n": }} | ||
17 | KBRANCH_{{=machine}} = "{{=existing_kbranch}}" | ||
18 | |||
19 | {{ input type:"boolean" name:"smp" prio:"30" msg:"Do you need SMP support? (y/n)" default:"y"}} | ||
20 | {{ if smp == "y": }} | ||
21 | KERNEL_FEATURES_append_{{=machine}} += " cfg/smp.scc" | ||
22 | |||
23 | SRC_URI += "file://{{=machine}}.scc \ | ||
24 | file://{{=machine}}.cfg \ | ||
25 | file://{{=machine}}-standard.scc \ | ||
26 | file://{{=machine}}-user-config.cfg \ | ||
27 | file://{{=machine}}-user-features.scc \ | ||
28 | file://{{=machine}}-user-patches.scc \ | ||
29 | " | ||
30 | |||
31 | # replace these SRCREVs with the real commit ids once you've had | ||
32 | # the appropriate changes committed to the upstream linux-yocto repo | ||
33 | SRCREV_machine_pn-linux-yocto_{{=machine}} ?= "${AUTOREV}" | ||
34 | SRCREV_meta_pn-linux-yocto_{{=machine}} ?= "${AUTOREV}" | ||
35 | #LINUX_VERSION = "4.10" | ||
36 | #Remove the following line once AUTOREV is locked to a certain SRCREV | ||
37 | KERNEL_VERSION_SANITY_SKIP = "1" | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/powerpc/recipes-kernel/linux/linux-yocto_4.4.bbappend b/scripts/lib/bsp/substrate/target/arch/powerpc/recipes-kernel/linux/linux-yocto_4.4.bbappend deleted file mode 100644 index a809c7600a..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/powerpc/recipes-kernel/linux/linux-yocto_4.4.bbappend +++ /dev/null | |||
@@ -1,37 +0,0 @@ | |||
1 | # yocto-bsp-filename {{ if kernel_choice == "linux-yocto_4.4": }} this | ||
2 | FILESEXTRAPATHS_prepend := "${THISDIR}/files:" | ||
3 | |||
4 | PR := "${PR}.1" | ||
5 | |||
6 | COMPATIBLE_MACHINE_{{=machine}} = "{{=machine}}" | ||
7 | |||
8 | {{ input type:"boolean" name:"need_new_kbranch" prio:"20" msg:"Do you need a new machine branch for this BSP (the alternative is to re-use an existing branch)? [y/n]" default:"y" }} | ||
9 | |||
10 | {{ if need_new_kbranch == "y": }} | ||
11 | {{ input type:"choicelist" name:"new_kbranch" gen:"bsp.kernel.all_branches" branches_base:"standard" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/base" }} | ||
12 | |||
13 | {{ if need_new_kbranch == "n": }} | ||
14 | {{ input type:"choicelist" name:"existing_kbranch" gen:"bsp.kernel.all_branches" branches_base:"standard" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/base" }} | ||
15 | |||
16 | {{ if need_new_kbranch == "n": }} | ||
17 | KBRANCH_{{=machine}} = "{{=existing_kbranch}}" | ||
18 | |||
19 | {{ input type:"boolean" name:"smp" prio:"30" msg:"Do you need SMP support? (y/n)" default:"y"}} | ||
20 | {{ if smp == "y": }} | ||
21 | KERNEL_FEATURES_append_{{=machine}} += " cfg/smp.scc" | ||
22 | |||
23 | SRC_URI += "file://{{=machine}}.scc \ | ||
24 | file://{{=machine}}.cfg \ | ||
25 | file://{{=machine}}-standard.scc \ | ||
26 | file://{{=machine}}-user-config.cfg \ | ||
27 | file://{{=machine}}-user-features.scc \ | ||
28 | file://{{=machine}}-user-patches.scc \ | ||
29 | " | ||
30 | |||
31 | # replace these SRCREVs with the real commit ids once you've had | ||
32 | # the appropriate changes committed to the upstream linux-yocto repo | ||
33 | SRCREV_machine_pn-linux-yocto_{{=machine}} ?= "${AUTOREV}" | ||
34 | SRCREV_meta_pn-linux-yocto_{{=machine}} ?= "${AUTOREV}" | ||
35 | #LINUX_VERSION = "4.4" | ||
36 | #Remove the following line once AUTOREV is locked to a certain SRCREV | ||
37 | KERNEL_VERSION_SANITY_SKIP = "1" | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/qemu/conf/machine/machine.conf b/scripts/lib/bsp/substrate/target/arch/qemu/conf/machine/machine.conf deleted file mode 100644 index 91888581e7..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/qemu/conf/machine/machine.conf +++ /dev/null | |||
@@ -1,71 +0,0 @@ | |||
1 | # yocto-bsp-filename {{=machine}}.conf | ||
2 | #@TYPE: Machine | ||
3 | #@NAME: {{=machine}} | ||
4 | |||
5 | #@DESCRIPTION: Machine configuration for {{=machine}} systems | ||
6 | |||
7 | {{ if kernel_choice == "custom": preferred_kernel = "linux-yocto-custom" }} | ||
8 | {{ if kernel_choice == "linux-yocto-dev": preferred_kernel = "linux-yocto-dev" }} | ||
9 | {{ if kernel_choice == "custom" or kernel_choice == "linux-yocto-dev" : }} | ||
10 | PREFERRED_PROVIDER_virtual/kernel ?= "{{=preferred_kernel}}" | ||
11 | |||
12 | {{ if kernel_choice != "custom" and kernel_choice != "linux-yocto-dev": preferred_kernel = kernel_choice.split('_')[0] }} | ||
13 | {{ if kernel_choice != "custom" and kernel_choice != "linux-yocto-dev": preferred_kernel_version = kernel_choice.split('_')[1] }} | ||
14 | {{ if kernel_choice != "custom" and kernel_choice != "linux-yocto-dev": }} | ||
15 | PREFERRED_PROVIDER_virtual/kernel ?= "{{=preferred_kernel}}" | ||
16 | PREFERRED_VERSION_{{=preferred_kernel}} ?= "{{=preferred_kernel_version}}%" | ||
17 | |||
18 | {{ if qemuarch == "i386" or qemuarch == "x86_64": }} | ||
19 | PREFERRED_PROVIDER_virtual/xserver ?= "xserver-xorg" | ||
20 | PREFERRED_PROVIDER_virtual/libgl ?= "mesa" | ||
21 | PREFERRED_PROVIDER_virtual/libgles1 ?= "mesa" | ||
22 | PREFERRED_PROVIDER_virtual/libgles2 ?= "mesa" | ||
23 | |||
24 | {{ input type:"choicelist" name:"qemuarch" prio:"5" msg:"Which qemu architecture would you like to use?" default:"i386" }} | ||
25 | {{ input type:"choice" val:"i386" msg:"i386 (32-bit)" }} | ||
26 | {{ input type:"choice" val:"x86_64" msg:"x86_64 (64-bit)" }} | ||
27 | {{ input type:"choice" val:"arm" msg:"ARM (32-bit)" }} | ||
28 | {{ input type:"choice" val:"powerpc" msg:"PowerPC (32-bit)" }} | ||
29 | {{ input type:"choice" val:"mips" msg:"MIPS (32-bit)" }} | ||
30 | {{ input type:"choice" val:"mips64" msg:"MIPS64 (64-bit)" }} | ||
31 | {{ if qemuarch == "i386": }} | ||
32 | require conf/machine/include/qemu.inc | ||
33 | require conf/machine/include/tune-i586.inc | ||
34 | {{ if qemuarch == "x86_64": }} | ||
35 | require conf/machine/include/qemu.inc | ||
36 | DEFAULTTUNE ?= "core2-64" | ||
37 | require conf/machine/include/tune-core2.inc | ||
38 | {{ if qemuarch == "arm": }} | ||
39 | require conf/machine/include/qemu.inc | ||
40 | require conf/machine/include/tune-arm926ejs.inc | ||
41 | {{ if qemuarch == "powerpc": }} | ||
42 | require conf/machine/include/qemu.inc | ||
43 | require conf/machine/include/tune-ppc7400.inc | ||
44 | {{ if qemuarch == "mips": }} | ||
45 | require conf/machine/include/qemu.inc | ||
46 | require conf/machine/include/tune-mips32.inc | ||
47 | {{ if qemuarch == "mips64": }} | ||
48 | require conf/machine/include/qemu.inc | ||
49 | require conf/machine/include/tune-mips64.inc | ||
50 | |||
51 | {{ if qemuarch == "i386" or qemuarch == "x86_64": }} | ||
52 | MACHINE_FEATURES += "x86" | ||
53 | KERNEL_IMAGETYPE = "bzImage" | ||
54 | SERIAL_CONSOLE = "115200 ttyS0" | ||
55 | XSERVER = "xserver-xorg \ | ||
56 | ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'mesa-driver-swrast', '', d)} \ | ||
57 | xf86-video-vmware" | ||
58 | |||
59 | {{ if qemuarch == "arm": }} | ||
60 | KERNEL_IMAGETYPE = "zImage" | ||
61 | SERIAL_CONSOLE = "115200 ttyAMA0" | ||
62 | |||
63 | {{ if qemuarch == "powerpc": }} | ||
64 | KERNEL_IMAGETYPE = "vmlinux" | ||
65 | SERIAL_CONSOLE = "115200 ttyS0" | ||
66 | |||
67 | {{ if qemuarch == "mips" or qemuarch == "mips64": }} | ||
68 | KERNEL_IMAGETYPE = "vmlinux" | ||
69 | KERNEL_ALT_IMAGETYPE = "vmlinux.bin" | ||
70 | SERIAL_CONSOLE = "115200 ttyS0" | ||
71 | MACHINE_EXTRA_RRECOMMENDS = " kernel-modules" | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/qemu/recipes-core/init-ifupdown/init-ifupdown/machine.noinstall b/scripts/lib/bsp/substrate/target/arch/qemu/recipes-core/init-ifupdown/init-ifupdown/machine.noinstall deleted file mode 100644 index b442d02d57..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/qemu/recipes-core/init-ifupdown/init-ifupdown/machine.noinstall +++ /dev/null | |||
@@ -1 +0,0 @@ | |||
1 | # yocto-bsp-dirname {{=machine}} | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/qemu/recipes-core/init-ifupdown/init-ifupdown/machine/interfaces b/scripts/lib/bsp/substrate/target/arch/qemu/recipes-core/init-ifupdown/init-ifupdown/machine/interfaces deleted file mode 100644 index 16967763e5..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/qemu/recipes-core/init-ifupdown/init-ifupdown/machine/interfaces +++ /dev/null | |||
@@ -1,5 +0,0 @@ | |||
1 | # /etc/network/interfaces -- configuration file for ifup(8), ifdown(8) | ||
2 | |||
3 | # The loopback interface | ||
4 | auto lo | ||
5 | iface lo inet loopback | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/qemu/recipes-core/init-ifupdown/init-ifupdown_1.0.bbappend b/scripts/lib/bsp/substrate/target/arch/qemu/recipes-core/init-ifupdown/init-ifupdown_1.0.bbappend deleted file mode 100644 index 72d991c7e5..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/qemu/recipes-core/init-ifupdown/init-ifupdown_1.0.bbappend +++ /dev/null | |||
@@ -1 +0,0 @@ | |||
1 | FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/qemu/recipes-graphics/xorg-xserver/xserver-xf86-config/machine.noinstall b/scripts/lib/bsp/substrate/target/arch/qemu/recipes-graphics/xorg-xserver/xserver-xf86-config/machine.noinstall deleted file mode 100644 index b442d02d57..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/qemu/recipes-graphics/xorg-xserver/xserver-xf86-config/machine.noinstall +++ /dev/null | |||
@@ -1 +0,0 @@ | |||
1 | # yocto-bsp-dirname {{=machine}} | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/qemu/recipes-graphics/xorg-xserver/xserver-xf86-config/machine/xorg.conf b/scripts/lib/bsp/substrate/target/arch/qemu/recipes-graphics/xorg-xserver/xserver-xf86-config/machine/xorg.conf deleted file mode 100644 index 3bdde79e6f..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/qemu/recipes-graphics/xorg-xserver/xserver-xf86-config/machine/xorg.conf +++ /dev/null | |||
@@ -1,77 +0,0 @@ | |||
1 | |||
2 | Section "Files" | ||
3 | EndSection | ||
4 | |||
5 | Section "InputDevice" | ||
6 | Identifier "Generic Keyboard" | ||
7 | Driver "evdev" | ||
8 | Option "CoreKeyboard" | ||
9 | Option "Device" "/dev/input/by-path/platform-i8042-serio-0-event-kbd" | ||
10 | Option "XkbRules" "xorg" | ||
11 | Option "XkbModel" "evdev" | ||
12 | Option "XkbLayout" "us" | ||
13 | EndSection | ||
14 | |||
15 | Section "InputDevice" | ||
16 | Identifier "Configured Mouse" | ||
17 | {{ if qemuarch == "arm" or qemuarch == "powerpc" or qemuarch == "mips" or qemuarch == "mips64": }} | ||
18 | Driver "mouse" | ||
19 | {{ if qemuarch == "i386" or qemuarch == "x86_64": }} | ||
20 | Driver "vmmouse" | ||
21 | |||
22 | Option "CorePointer" | ||
23 | Option "Device" "/dev/input/mice" | ||
24 | Option "Protocol" "ImPS/2" | ||
25 | Option "ZAxisMapping" "4 5" | ||
26 | Option "Emulate3Buttons" "true" | ||
27 | EndSection | ||
28 | |||
29 | Section "InputDevice" | ||
30 | Identifier "Qemu Tablet" | ||
31 | Driver "evdev" | ||
32 | Option "CorePointer" | ||
33 | Option "Device" "/dev/input/touchscreen0" | ||
34 | Option "USB" "on" | ||
35 | EndSection | ||
36 | |||
37 | Section "Device" | ||
38 | Identifier "Graphics Controller" | ||
39 | {{ if qemuarch == "arm" or qemuarch == "powerpc" or qemuarch == "mips" or qemuarch == "mips64": }} | ||
40 | Driver "fbdev" | ||
41 | {{ if qemuarch == "i386" or qemuarch == "x86_64": }} | ||
42 | Driver "vmware" | ||
43 | |||
44 | EndSection | ||
45 | |||
46 | Section "Monitor" | ||
47 | Identifier "Generic Monitor" | ||
48 | Option "DPMS" | ||
49 | # 1024x600 59.85 Hz (CVT) hsync: 37.35 kHz; pclk: 49.00 MHz | ||
50 | Modeline "1024x600_60.00" 49.00 1024 1072 1168 1312 600 603 613 624 -hsync +vsync | ||
51 | # 640x480 @ 60Hz (Industry standard) hsync: 31.5kHz | ||
52 | ModeLine "640x480" 25.2 640 656 752 800 480 490 492 525 -hsync -vsync | ||
53 | # 640x480 @ 72Hz (VESA) hsync: 37.9kHz | ||
54 | ModeLine "640x480" 31.5 640 664 704 832 480 489 491 520 -hsync -vsync | ||
55 | # 640x480 @ 75Hz (VESA) hsync: 37.5kHz | ||
56 | ModeLine "640x480" 31.5 640 656 720 840 480 481 484 500 -hsync -vsync | ||
57 | # 640x480 @ 85Hz (VESA) hsync: 43.3kHz | ||
58 | ModeLine "640x480" 36.0 640 696 752 832 480 481 484 509 -hsync -vsync | ||
59 | EndSection | ||
60 | |||
61 | Section "Screen" | ||
62 | Identifier "Default Screen" | ||
63 | Device "Graphics Controller" | ||
64 | Monitor "Generic Monitor" | ||
65 | SubSection "Display" | ||
66 | Modes "640x480" | ||
67 | EndSubSection | ||
68 | EndSection | ||
69 | |||
70 | Section "ServerLayout" | ||
71 | Identifier "Default Layout" | ||
72 | Screen "Default Screen" | ||
73 | InputDevice "Generic Keyboard" | ||
74 | # InputDevice "Configured Mouse" | ||
75 | InputDevice "QEMU Tablet" | ||
76 | Option "AllowEmptyInput" "no" | ||
77 | EndSection | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/qemu/recipes-graphics/xorg-xserver/xserver-xf86-config_0.1.bbappend b/scripts/lib/bsp/substrate/target/arch/qemu/recipes-graphics/xorg-xserver/xserver-xf86-config_0.1.bbappend deleted file mode 100644 index 72d991c7e5..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/qemu/recipes-graphics/xorg-xserver/xserver-xf86-config_0.1.bbappend +++ /dev/null | |||
@@ -1 +0,0 @@ | |||
1 | FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/qemu/recipes-kernel/linux/files.noinstall b/scripts/lib/bsp/substrate/target/arch/qemu/recipes-kernel/linux/files.noinstall deleted file mode 100644 index 0fb5283a8d..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/qemu/recipes-kernel/linux/files.noinstall +++ /dev/null | |||
@@ -1 +0,0 @@ | |||
1 | # yocto-bsp-dirname {{ if kernel_choice != "custom": }} files \ No newline at end of file | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/qemu/recipes-kernel/linux/files/machine-preempt-rt.scc b/scripts/lib/bsp/substrate/target/arch/qemu/recipes-kernel/linux/files/machine-preempt-rt.scc deleted file mode 100644 index a81b858c03..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/qemu/recipes-kernel/linux/files/machine-preempt-rt.scc +++ /dev/null | |||
@@ -1,11 +0,0 @@ | |||
1 | # yocto-bsp-filename {{=machine}}-preempt-rt.scc | ||
2 | define KMACHINE {{=machine}} | ||
3 | |||
4 | define KARCH {{=qemuarch}} | ||
5 | |||
6 | include {{=map_preempt_rt_kbranch(need_new_kbranch, new_kbranch, existing_kbranch)}} | ||
7 | {{ if need_new_kbranch == "y": }} | ||
8 | define KTYPE {{=new_kbranch}} | ||
9 | branch {{=machine}} | ||
10 | |||
11 | include {{=machine}}.scc | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/qemu/recipes-kernel/linux/files/machine-standard.scc b/scripts/lib/bsp/substrate/target/arch/qemu/recipes-kernel/linux/files/machine-standard.scc deleted file mode 100644 index 43cf642d49..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/qemu/recipes-kernel/linux/files/machine-standard.scc +++ /dev/null | |||
@@ -1,20 +0,0 @@ | |||
1 | # yocto-bsp-filename {{=machine}}-standard.scc | ||
2 | define KMACHINE {{=machine}} | ||
3 | |||
4 | define KARCH {{=qemuarch}} | ||
5 | |||
6 | {{ if qemuarch == "i386" or qemuarch == "x86_64": }} | ||
7 | include {{=map_standard_kbranch(need_new_kbranch, new_kbranch, existing_kbranch)}} nopatch | ||
8 | {{ if qemuarch == "arm": }} | ||
9 | include bsp/arm-versatile-926ejs/arm-versatile-926ejs-standard nopatch | ||
10 | {{ if qemuarch == "powerpc": }} | ||
11 | include bsp/qemu-ppc32/qemu-ppc32-standard nopatch | ||
12 | {{ if qemuarch == "mips": }} | ||
13 | include bsp/mti-malta32/mti-malta32-be-standard nopatch | ||
14 | {{ if qemuarch == "mips64": }} | ||
15 | include bsp/mti-malta64/mti-malta64-be-standard nopatch | ||
16 | {{ if need_new_kbranch == "y": }} | ||
17 | define KTYPE {{=new_kbranch}} | ||
18 | branch {{=machine}} | ||
19 | |||
20 | include {{=machine}}.scc | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/qemu/recipes-kernel/linux/files/machine-tiny.scc b/scripts/lib/bsp/substrate/target/arch/qemu/recipes-kernel/linux/files/machine-tiny.scc deleted file mode 100644 index 41d4c6f40f..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/qemu/recipes-kernel/linux/files/machine-tiny.scc +++ /dev/null | |||
@@ -1,11 +0,0 @@ | |||
1 | # yocto-bsp-filename {{=machine}}-tiny.scc | ||
2 | define KMACHINE {{=machine}} | ||
3 | |||
4 | define KARCH {{=qemuarch}} | ||
5 | |||
6 | include {{=map_tiny_kbranch(need_new_kbranch, new_kbranch, existing_kbranch)}} | ||
7 | {{ if need_new_kbranch == "y": }} | ||
8 | define KTYPE {{=new_kbranch}} | ||
9 | branch {{=machine}} | ||
10 | |||
11 | include {{=machine}}.scc | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/qemu/recipes-kernel/linux/files/machine-user-config.cfg b/scripts/lib/bsp/substrate/target/arch/qemu/recipes-kernel/linux/files/machine-user-config.cfg deleted file mode 100644 index 69efdcc759..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/qemu/recipes-kernel/linux/files/machine-user-config.cfg +++ /dev/null | |||
@@ -1 +0,0 @@ | |||
1 | # yocto-bsp-filename {{=machine}}-user-config.cfg \ No newline at end of file | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/qemu/recipes-kernel/linux/files/machine-user-features.scc b/scripts/lib/bsp/substrate/target/arch/qemu/recipes-kernel/linux/files/machine-user-features.scc deleted file mode 100644 index 582759e612..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/qemu/recipes-kernel/linux/files/machine-user-features.scc +++ /dev/null | |||
@@ -1 +0,0 @@ | |||
1 | # yocto-bsp-filename {{=machine}}-user-features.scc | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/qemu/recipes-kernel/linux/files/machine-user-patches.scc b/scripts/lib/bsp/substrate/target/arch/qemu/recipes-kernel/linux/files/machine-user-patches.scc deleted file mode 100644 index 4c59daac46..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/qemu/recipes-kernel/linux/files/machine-user-patches.scc +++ /dev/null | |||
@@ -1 +0,0 @@ | |||
1 | # yocto-bsp-filename {{=machine}}-user-patches.scc \ No newline at end of file | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/qemu/recipes-kernel/linux/files/machine.cfg b/scripts/lib/bsp/substrate/target/arch/qemu/recipes-kernel/linux/files/machine.cfg deleted file mode 100644 index 3fa4ed0b7f..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/qemu/recipes-kernel/linux/files/machine.cfg +++ /dev/null | |||
@@ -1,3 +0,0 @@ | |||
1 | # yocto-bsp-filename {{=machine}}.cfg | ||
2 | {{ if qemuarch == "i386": }} | ||
3 | # CONFIG_64BIT is not set | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/qemu/recipes-kernel/linux/files/machine.scc b/scripts/lib/bsp/substrate/target/arch/qemu/recipes-kernel/linux/files/machine.scc deleted file mode 100644 index d25d0a0377..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/qemu/recipes-kernel/linux/files/machine.scc +++ /dev/null | |||
@@ -1,3 +0,0 @@ | |||
1 | # yocto-bsp-filename {{=machine}}.scc | ||
2 | kconf hardware {{=machine}}.cfg | ||
3 | |||
diff --git a/scripts/lib/bsp/substrate/target/arch/qemu/recipes-kernel/linux/kernel-list.noinstall b/scripts/lib/bsp/substrate/target/arch/qemu/recipes-kernel/linux/kernel-list.noinstall deleted file mode 100644 index 917f0e2207..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/qemu/recipes-kernel/linux/kernel-list.noinstall +++ /dev/null | |||
@@ -1,5 +0,0 @@ | |||
1 | {{ if kernel_choice != "custom": }} | ||
2 | {{ input type:"boolean" name:"use_default_kernel" prio:"10" msg:"Would you like to use the default (4.12) kernel? (y/n)" default:"y"}} | ||
3 | |||
4 | {{ if kernel_choice != "custom" and use_default_kernel == "n": }} | ||
5 | {{ input type:"choicelist" name:"kernel_choice" gen:"bsp.kernel.kernels" prio:"10" msg:"Please choose the kernel to use in this BSP:" default:"linux-yocto_4.12"}} | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/qemu/recipes-kernel/linux/linux-yocto-dev.bbappend b/scripts/lib/bsp/substrate/target/arch/qemu/recipes-kernel/linux/linux-yocto-dev.bbappend deleted file mode 100644 index d7b9cef98b..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/qemu/recipes-kernel/linux/linux-yocto-dev.bbappend +++ /dev/null | |||
@@ -1,59 +0,0 @@ | |||
1 | # yocto-bsp-filename {{ if kernel_choice == "linux-yocto-dev": }} this | ||
2 | FILESEXTRAPATHS_prepend := "${THISDIR}/files:" | ||
3 | |||
4 | PR := "${PR}.1" | ||
5 | |||
6 | COMPATIBLE_MACHINE_{{=machine}} = "{{=machine}}" | ||
7 | {{ input type:"boolean" name:"need_new_kbranch" prio:"20" msg:"Do you need a new machine branch for this BSP (the alternative is to re-use an existing branch)? [y/n]" default:"y" }} | ||
8 | |||
9 | {{ if need_new_kbranch == "y" and qemuarch == "arm": }} | ||
10 | {{ input type:"choicelist" name:"new_kbranch" gen:"bsp.kernel.all_branches" branches_base:"standard" prio:"20" msg:"Please choose a machine branch to base your new BSP branch on:" default:"standard/base" }} | ||
11 | |||
12 | {{ if need_new_kbranch == "n" and qemuarch == "arm": }} | ||
13 | {{ input type:"choicelist" name:"existing_kbranch" gen:"bsp.kernel.all_branches" branches_base:"standard" prio:"20" msg:"Please choose an existing machine branch to use for this BSP:" default:"standard/arm-versatile-926ejs" }} | ||
14 | |||
15 | {{ if need_new_kbranch == "y" and qemuarch == "powerpc": }} | ||
16 | {{ input type:"choicelist" name:"new_kbranch" nameappend:"powerpc" gen:"bsp.kernel.all_branches" branches_base:"standard" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/base" }} | ||
17 | |||
18 | {{ if need_new_kbranch == "n" and qemuarch == "powerpc": }} | ||
19 | {{ input type:"choicelist" name:"existing_kbranch" nameappend:"powerpc" gen:"bsp.kernel.all_branches" branches_base:"standard" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/qemuppc" }} | ||
20 | |||
21 | {{ if need_new_kbranch == "y" and qemuarch == "i386": }} | ||
22 | {{ input type:"choicelist" name:"new_kbranch" nameappend:"i386" gen:"bsp.kernel.all_branches" branches_base:"standard" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/base" }} | ||
23 | |||
24 | {{ if need_new_kbranch == "n" and qemuarch == "i386": }} | ||
25 | {{ input type:"choicelist" name:"existing_kbranch" nameappend:"i386" gen:"bsp.kernel.all_branches" branches_base:"standard" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/base" }} | ||
26 | |||
27 | {{ if need_new_kbranch == "y" and qemuarch == "x86_64": }} | ||
28 | {{ input type:"choicelist" name:"new_kbranch" nameappend:"x86_64" gen:"bsp.kernel.all_branches" branches_base:"standard" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/base" }} | ||
29 | |||
30 | {{ if need_new_kbranch == "n" and qemuarch == "x86_64": }} | ||
31 | {{ input type:"choicelist" name:"existing_kbranch" nameappend:"x86_64" gen:"bsp.kernel.all_branches" branches_base:"standard" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/base" }} | ||
32 | |||
33 | {{ if need_new_kbranch == "y" and qemuarch == "mips": }} | ||
34 | {{ input type:"choicelist" name:"new_kbranch" nameappend:"mips" gen:"bsp.kernel.all_branches" branches_base:"standard" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/base" }} | ||
35 | |||
36 | {{ if need_new_kbranch == "n" and qemuarch == "mips": }} | ||
37 | {{ input type:"choicelist" name:"existing_kbranch" nameappend:"mips" gen:"bsp.kernel.all_branches" branches_base:"standard" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/mti-malta32" }} | ||
38 | |||
39 | {{ if need_new_kbranch == "y" and qemuarch == "mips64": }} | ||
40 | {{ input type:"choicelist" name:"new_kbranch" nameappend:"mips64" gen:"bsp.kernel.all_branches" branches_base:"standard" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/base" }} | ||
41 | |||
42 | {{ if need_new_kbranch == "n" and qemuarch == "mips64": }} | ||
43 | {{ input type:"choicelist" name:"existing_kbranch" nameappend:"mips64" gen:"bsp.kernel.all_branches" branches_base:"standard" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/mti-malta64" }} | ||
44 | |||
45 | {{ if need_new_kbranch == "n": }} | ||
46 | KBRANCH_{{=machine}} = "{{=existing_kbranch}}" | ||
47 | |||
48 | {{ if qemuarch != "arm": }} | ||
49 | {{ input type:"boolean" name:"smp" prio:"30" msg:"Would you like SMP support? (y/n)" default:"y"}} | ||
50 | {{ if smp == "y": }} | ||
51 | KERNEL_FEATURES_append_{{=machine}} += " cfg/smp.scc" | ||
52 | |||
53 | SRC_URI += "file://{{=machine}}.scc \ | ||
54 | file://{{=machine}}.cfg \ | ||
55 | file://{{=machine}}-standard.scc \ | ||
56 | file://{{=machine}}-user-config.cfg \ | ||
57 | file://{{=machine}}-user-features.scc \ | ||
58 | file://{{=machine}}-user-patches.scc \ | ||
59 | " | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/qemu/recipes-kernel/linux/linux-yocto-tiny_4.10.bbappend b/scripts/lib/bsp/substrate/target/arch/qemu/recipes-kernel/linux/linux-yocto-tiny_4.10.bbappend deleted file mode 100644 index 8c0fd1577c..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/qemu/recipes-kernel/linux/linux-yocto-tiny_4.10.bbappend +++ /dev/null | |||
@@ -1,67 +0,0 @@ | |||
1 | # yocto-bsp-filename {{ if kernel_choice == "linux-yocto-tiny_4.10": }} this | ||
2 | FILESEXTRAPATHS_prepend := "${THISDIR}/files:" | ||
3 | |||
4 | PR := "${PR}.1" | ||
5 | |||
6 | COMPATIBLE_MACHINE_{{=machine}} = "{{=machine}}" | ||
7 | {{ input type:"boolean" name:"need_new_kbranch" prio:"20" msg:"Do you need a new machine branch for this BSP (the alternative is to re-use an existing branch)? [y/n]" default:"y" }} | ||
8 | |||
9 | {{ if need_new_kbranch == "y" and qemuarch == "arm": }} | ||
10 | {{ input type:"choicelist" name:"new_kbranch" nameappend:"arm" gen:"bsp.kernel.all_branches" branches_base:"standard/tiny" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/tiny/base" }} | ||
11 | |||
12 | {{ if need_new_kbranch == "n" and qemuarch == "arm": }} | ||
13 | {{ input type:"choicelist" name:"existing_kbranch" nameappend:"arm" gen:"bsp.kernel.all_branches" branches_base:"standard/tiny" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/tiny/base" }} | ||
14 | |||
15 | {{ if need_new_kbranch == "y" and qemuarch == "powerpc": }} | ||
16 | {{ input type:"choicelist" name:"new_kbranch" nameappend:"powerpc" gen:"bsp.kernel.all_branches" branches_base:"standard/tiny" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/tiny/base" }} | ||
17 | |||
18 | {{ if need_new_kbranch == "n" and qemuarch == "powerpc": }} | ||
19 | {{ input type:"choicelist" name:"existing_kbranch" nameappend:"powerpc" gen:"bsp.kernel.all_branches" branches_base:"standard/tiny" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/tiny/base" }} | ||
20 | |||
21 | {{ if need_new_kbranch == "y" and qemuarch == "i386": }} | ||
22 | {{ input type:"choicelist" name:"new_kbranch" nameappend:"i386" gen:"bsp.kernel.all_branches" branches_base:"standard/tiny" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/tiny/base" }} | ||
23 | |||
24 | {{ if need_new_kbranch == "n" and qemuarch == "i386": }} | ||
25 | {{ input type:"choicelist" name:"existing_kbranch" nameappend:"i386" gen:"bsp.kernel.all_branches" branches_base:"standard/tiny" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/tiny/common-pc" }} | ||
26 | |||
27 | {{ if need_new_kbranch == "y" and qemuarch == "x86_64": }} | ||
28 | {{ input type:"choicelist" name:"new_kbranch" nameappend:"x86_64" gen:"bsp.kernel.all_branches" branches_base:"standard/tiny" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/tiny/base" }} | ||
29 | |||
30 | {{ if need_new_kbranch == "n" and qemuarch == "x86_64": }} | ||
31 | {{ input type:"choicelist" name:"existing_kbranch" nameappend:"x86_64" gen:"bsp.kernel.all_branches" branches_base:"standard/tiny" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/tiny/base" }} | ||
32 | |||
33 | {{ if need_new_kbranch == "y" and qemuarch == "mips": }} | ||
34 | {{ input type:"choicelist" name:"new_kbranch" nameappend:"mips" gen:"bsp.kernel.all_branches" branches_base:"standard/tiny" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/tiny/base" }} | ||
35 | |||
36 | {{ if need_new_kbranch == "n" and qemuarch == "mips": }} | ||
37 | {{ input type:"choicelist" name:"existing_kbranch" nameappend:"mips" gen:"bsp.kernel.all_branches" branches_base:"standard/tiny" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/tiny/base" }} | ||
38 | |||
39 | {{ if need_new_kbranch == "y" and qemuarch == "mips64": }} | ||
40 | {{ input type:"choicelist" name:"new_kbranch" nameappend:"mips64" gen:"bsp.kernel.all_branches" branches_base:"standard/tiny" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/tiny/base" }} | ||
41 | |||
42 | {{ if need_new_kbranch == "n" and qemuarch == "mips64": }} | ||
43 | {{ input type:"choicelist" name:"existing_kbranch" nameappend:"mips64" gen:"bsp.kernel.all_branches" branches_base:"standard/tiny" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/tiny/base" }} | ||
44 | |||
45 | {{ if need_new_kbranch == "n": }} | ||
46 | KBRANCH_{{=machine}} = "{{=existing_kbranch}}" | ||
47 | |||
48 | {{ if qemuarch != "arm": }} | ||
49 | {{ input type:"boolean" name:"smp" prio:"30" msg:"Do you need SMP support? (y/n)" default:"y"}} | ||
50 | {{ if smp == "y": }} | ||
51 | KERNEL_FEATURES_append_{{=machine}} += " cfg/smp.scc" | ||
52 | |||
53 | SRC_URI += "file://{{=machine}}.scc \ | ||
54 | file://{{=machine}}.cfg \ | ||
55 | file://{{=machine}}-tiny.scc \ | ||
56 | file://{{=machine}}-user-config.cfg \ | ||
57 | file://{{=machine}}-user-patches.scc \ | ||
58 | file://{{=machine}}-user-features.scc \ | ||
59 | " | ||
60 | |||
61 | # replace these SRCREVs with the real commit ids once you've had | ||
62 | # the appropriate changes committed to the upstream linux-yocto repo | ||
63 | SRCREV_machine_pn-linux-yocto-tiny_{{=machine}} ?= "${AUTOREV}" | ||
64 | SRCREV_meta_pn-linux-yocto-tiny_{{=machine}} ?= "${AUTOREV}" | ||
65 | #LINUX_VERSION = "4.10" | ||
66 | #Remove the following line once AUTOREV is locked to a certain SRCREV | ||
67 | KERNEL_VERSION_SANITY_SKIP = "1" | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/qemu/recipes-kernel/linux/linux-yocto-tiny_4.12.bbappend b/scripts/lib/bsp/substrate/target/arch/qemu/recipes-kernel/linux/linux-yocto-tiny_4.12.bbappend deleted file mode 100644 index 83eb216dc1..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/qemu/recipes-kernel/linux/linux-yocto-tiny_4.12.bbappend +++ /dev/null | |||
@@ -1,67 +0,0 @@ | |||
1 | # yocto-bsp-filename {{ if kernel_choice == "linux-yocto-tiny_4.12": }} this | ||
2 | FILESEXTRAPATHS_prepend := "${THISDIR}/files:" | ||
3 | |||
4 | PR := "${PR}.1" | ||
5 | |||
6 | COMPATIBLE_MACHINE_{{=machine}} = "{{=machine}}" | ||
7 | {{ input type:"boolean" name:"need_new_kbranch" prio:"20" msg:"Do you need a new machine branch for this BSP (the alternative is to re-use an existing branch)? [y/n]" default:"y" }} | ||
8 | |||
9 | {{ if need_new_kbranch == "y" and qemuarch == "arm": }} | ||
10 | {{ input type:"choicelist" name:"new_kbranch" nameappend:"arm" gen:"bsp.kernel.all_branches" branches_base:"standard/tiny" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/tiny/base" }} | ||
11 | |||
12 | {{ if need_new_kbranch == "n" and qemuarch == "arm": }} | ||
13 | {{ input type:"choicelist" name:"existing_kbranch" nameappend:"arm" gen:"bsp.kernel.all_branches" branches_base:"standard/tiny" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/tiny/base" }} | ||
14 | |||
15 | {{ if need_new_kbranch == "y" and qemuarch == "powerpc": }} | ||
16 | {{ input type:"choicelist" name:"new_kbranch" nameappend:"powerpc" gen:"bsp.kernel.all_branches" branches_base:"standard/tiny" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/tiny/base" }} | ||
17 | |||
18 | {{ if need_new_kbranch == "n" and qemuarch == "powerpc": }} | ||
19 | {{ input type:"choicelist" name:"existing_kbranch" nameappend:"powerpc" gen:"bsp.kernel.all_branches" branches_base:"standard/tiny" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/tiny/base" }} | ||
20 | |||
21 | {{ if need_new_kbranch == "y" and qemuarch == "i386": }} | ||
22 | {{ input type:"choicelist" name:"new_kbranch" nameappend:"i386" gen:"bsp.kernel.all_branches" branches_base:"standard/tiny" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/tiny/base" }} | ||
23 | |||
24 | {{ if need_new_kbranch == "n" and qemuarch == "i386": }} | ||
25 | {{ input type:"choicelist" name:"existing_kbranch" nameappend:"i386" gen:"bsp.kernel.all_branches" branches_base:"standard/tiny" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/tiny/common-pc" }} | ||
26 | |||
27 | {{ if need_new_kbranch == "y" and qemuarch == "x86_64": }} | ||
28 | {{ input type:"choicelist" name:"new_kbranch" nameappend:"x86_64" gen:"bsp.kernel.all_branches" branches_base:"standard/tiny" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/tiny/base" }} | ||
29 | |||
30 | {{ if need_new_kbranch == "n" and qemuarch == "x86_64": }} | ||
31 | {{ input type:"choicelist" name:"existing_kbranch" nameappend:"x86_64" gen:"bsp.kernel.all_branches" branches_base:"standard/tiny" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/tiny/base" }} | ||
32 | |||
33 | {{ if need_new_kbranch == "y" and qemuarch == "mips": }} | ||
34 | {{ input type:"choicelist" name:"new_kbranch" nameappend:"mips" gen:"bsp.kernel.all_branches" branches_base:"standard/tiny" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/tiny/base" }} | ||
35 | |||
36 | {{ if need_new_kbranch == "n" and qemuarch == "mips": }} | ||
37 | {{ input type:"choicelist" name:"existing_kbranch" nameappend:"mips" gen:"bsp.kernel.all_branches" branches_base:"standard/tiny" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/tiny/base" }} | ||
38 | |||
39 | {{ if need_new_kbranch == "y" and qemuarch == "mips64": }} | ||
40 | {{ input type:"choicelist" name:"new_kbranch" nameappend:"mips64" gen:"bsp.kernel.all_branches" branches_base:"standard/tiny" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/tiny/base" }} | ||
41 | |||
42 | {{ if need_new_kbranch == "n" and qemuarch == "mips64": }} | ||
43 | {{ input type:"choicelist" name:"existing_kbranch" nameappend:"mips64" gen:"bsp.kernel.all_branches" branches_base:"standard/tiny" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/tiny/base" }} | ||
44 | |||
45 | {{ if need_new_kbranch == "n": }} | ||
46 | KBRANCH_{{=machine}} = "{{=existing_kbranch}}" | ||
47 | |||
48 | {{ if qemuarch != "arm": }} | ||
49 | {{ input type:"boolean" name:"smp" prio:"30" msg:"Do you need SMP support? (y/n)" default:"y"}} | ||
50 | {{ if smp == "y": }} | ||
51 | KERNEL_FEATURES_append_{{=machine}} += " cfg/smp.scc" | ||
52 | |||
53 | SRC_URI += "file://{{=machine}}.scc \ | ||
54 | file://{{=machine}}.cfg \ | ||
55 | file://{{=machine}}-tiny.scc \ | ||
56 | file://{{=machine}}-user-config.cfg \ | ||
57 | file://{{=machine}}-user-patches.scc \ | ||
58 | file://{{=machine}}-user-features.scc \ | ||
59 | " | ||
60 | |||
61 | # replace these SRCREVs with the real commit ids once you've had | ||
62 | # the appropriate changes committed to the upstream linux-yocto repo | ||
63 | SRCREV_machine_pn-linux-yocto-tiny_{{=machine}} ?= "${AUTOREV}" | ||
64 | SRCREV_meta_pn-linux-yocto-tiny_{{=machine}} ?= "${AUTOREV}" | ||
65 | #LINUX_VERSION = "4.10" | ||
66 | #Remove the following line once AUTOREV is locked to a certain SRCREV | ||
67 | KERNEL_VERSION_SANITY_SKIP = "1" | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/qemu/recipes-kernel/linux/linux-yocto-tiny_4.4.bbappend b/scripts/lib/bsp/substrate/target/arch/qemu/recipes-kernel/linux/linux-yocto-tiny_4.4.bbappend deleted file mode 100644 index 22abc230bf..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/qemu/recipes-kernel/linux/linux-yocto-tiny_4.4.bbappend +++ /dev/null | |||
@@ -1,67 +0,0 @@ | |||
1 | # yocto-bsp-filename {{ if kernel_choice == "linux-yocto-tiny_4.4": }} this | ||
2 | FILESEXTRAPATHS_prepend := "${THISDIR}/files:" | ||
3 | |||
4 | PR := "${PR}.1" | ||
5 | |||
6 | COMPATIBLE_MACHINE_{{=machine}} = "{{=machine}}" | ||
7 | {{ input type:"boolean" name:"need_new_kbranch" prio:"20" msg:"Do you need a new machine branch for this BSP (the alternative is to re-use an existing branch)? [y/n]" default:"y" }} | ||
8 | |||
9 | {{ if need_new_kbranch == "y" and qemuarch == "arm": }} | ||
10 | {{ input type:"choicelist" name:"new_kbranch" nameappend:"arm" gen:"bsp.kernel.all_branches" branches_base:"standard/tiny" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/tiny/base" }} | ||
11 | |||
12 | {{ if need_new_kbranch == "n" and qemuarch == "arm": }} | ||
13 | {{ input type:"choicelist" name:"existing_kbranch" nameappend:"arm" gen:"bsp.kernel.all_branches" branches_base:"standard/tiny" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/tiny/base" }} | ||
14 | |||
15 | {{ if need_new_kbranch == "y" and qemuarch == "powerpc": }} | ||
16 | {{ input type:"choicelist" name:"new_kbranch" nameappend:"powerpc" gen:"bsp.kernel.all_branches" branches_base:"standard/tiny" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/tiny/base" }} | ||
17 | |||
18 | {{ if need_new_kbranch == "n" and qemuarch == "powerpc": }} | ||
19 | {{ input type:"choicelist" name:"existing_kbranch" nameappend:"powerpc" gen:"bsp.kernel.all_branches" branches_base:"standard/tiny" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/tiny/base" }} | ||
20 | |||
21 | {{ if need_new_kbranch == "y" and qemuarch == "i386": }} | ||
22 | {{ input type:"choicelist" name:"new_kbranch" nameappend:"i386" gen:"bsp.kernel.all_branches" branches_base:"standard/tiny" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/tiny/base" }} | ||
23 | |||
24 | {{ if need_new_kbranch == "n" and qemuarch == "i386": }} | ||
25 | {{ input type:"choicelist" name:"existing_kbranch" nameappend:"i386" gen:"bsp.kernel.all_branches" branches_base:"standard/tiny" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/tiny/common-pc" }} | ||
26 | |||
27 | {{ if need_new_kbranch == "y" and qemuarch == "x86_64": }} | ||
28 | {{ input type:"choicelist" name:"new_kbranch" nameappend:"x86_64" gen:"bsp.kernel.all_branches" branches_base:"standard/tiny" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/tiny/base" }} | ||
29 | |||
30 | {{ if need_new_kbranch == "n" and qemuarch == "x86_64": }} | ||
31 | {{ input type:"choicelist" name:"existing_kbranch" nameappend:"x86_64" gen:"bsp.kernel.all_branches" branches_base:"standard/tiny" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/tiny/base" }} | ||
32 | |||
33 | {{ if need_new_kbranch == "y" and qemuarch == "mips": }} | ||
34 | {{ input type:"choicelist" name:"new_kbranch" nameappend:"mips" gen:"bsp.kernel.all_branches" branches_base:"standard/tiny" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/tiny/base" }} | ||
35 | |||
36 | {{ if need_new_kbranch == "n" and qemuarch == "mips": }} | ||
37 | {{ input type:"choicelist" name:"existing_kbranch" nameappend:"mips" gen:"bsp.kernel.all_branches" branches_base:"standard/tiny" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/tiny/base" }} | ||
38 | |||
39 | {{ if need_new_kbranch == "y" and qemuarch == "mips64": }} | ||
40 | {{ input type:"choicelist" name:"new_kbranch" nameappend:"mips64" gen:"bsp.kernel.all_branches" branches_base:"standard/tiny" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/tiny/base" }} | ||
41 | |||
42 | {{ if need_new_kbranch == "n" and qemuarch == "mips64": }} | ||
43 | {{ input type:"choicelist" name:"existing_kbranch" nameappend:"mips64" gen:"bsp.kernel.all_branches" branches_base:"standard/tiny" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/tiny/base" }} | ||
44 | |||
45 | {{ if need_new_kbranch == "n": }} | ||
46 | KBRANCH_{{=machine}} = "{{=existing_kbranch}}" | ||
47 | |||
48 | {{ if qemuarch != "arm": }} | ||
49 | {{ input type:"boolean" name:"smp" prio:"30" msg:"Do you need SMP support? (y/n)" default:"y"}} | ||
50 | {{ if smp == "y": }} | ||
51 | KERNEL_FEATURES_append_{{=machine}} += " cfg/smp.scc" | ||
52 | |||
53 | SRC_URI += "file://{{=machine}}.scc \ | ||
54 | file://{{=machine}}.cfg \ | ||
55 | file://{{=machine}}-tiny.scc \ | ||
56 | file://{{=machine}}-user-config.cfg \ | ||
57 | file://{{=machine}}-user-patches.scc \ | ||
58 | file://{{=machine}}-user-features.scc \ | ||
59 | " | ||
60 | |||
61 | # replace these SRCREVs with the real commit ids once you've had | ||
62 | # the appropriate changes committed to the upstream linux-yocto repo | ||
63 | SRCREV_machine_pn-linux-yocto-tiny_{{=machine}} ?= "${AUTOREV}" | ||
64 | SRCREV_meta_pn-linux-yocto-tiny_{{=machine}} ?= "${AUTOREV}" | ||
65 | #LINUX_VERSION = "4.4" | ||
66 | #Remove the following line once AUTOREV is locked to a certain SRCREV | ||
67 | KERNEL_VERSION_SANITY_SKIP = "1" | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/qemu/recipes-kernel/linux/linux-yocto_4.10.bbappend b/scripts/lib/bsp/substrate/target/arch/qemu/recipes-kernel/linux/linux-yocto_4.10.bbappend deleted file mode 100644 index 851d96c375..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/qemu/recipes-kernel/linux/linux-yocto_4.10.bbappend +++ /dev/null | |||
@@ -1,67 +0,0 @@ | |||
1 | # yocto-bsp-filename {{ if kernel_choice == "linux-yocto_4.10": }} this | ||
2 | FILESEXTRAPATHS_prepend := "${THISDIR}/files:" | ||
3 | |||
4 | PR := "${PR}.1" | ||
5 | |||
6 | COMPATIBLE_MACHINE_{{=machine}} = "{{=machine}}" | ||
7 | {{ input type:"boolean" name:"need_new_kbranch" prio:"20" msg:"Do you need a new machine branch for this BSP (the alternative is to re-use an existing branch)? [y/n]" default:"y" }} | ||
8 | |||
9 | {{ if need_new_kbranch == "y" and qemuarch == "arm": }} | ||
10 | {{ input type:"choicelist" name:"new_kbranch" gen:"bsp.kernel.all_branches" branches_base:"standard" prio:"20" msg:"Please choose a machine branch to base your new BSP branch on:" default:"standard/base" }} | ||
11 | |||
12 | {{ if need_new_kbranch == "n" and qemuarch == "arm": }} | ||
13 | {{ input type:"choicelist" name:"existing_kbranch" gen:"bsp.kernel.all_branches" branches_base:"standard" prio:"20" msg:"Please choose an existing machine branch to use for this BSP:" default:"standard/arm-versatile-926ejs" }} | ||
14 | |||
15 | {{ if need_new_kbranch == "y" and qemuarch == "powerpc": }} | ||
16 | {{ input type:"choicelist" name:"new_kbranch" nameappend:"powerpc" gen:"bsp.kernel.all_branches" branches_base:"standard" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/base" }} | ||
17 | |||
18 | {{ if need_new_kbranch == "n" and qemuarch == "powerpc": }} | ||
19 | {{ input type:"choicelist" name:"existing_kbranch" nameappend:"powerpc" gen:"bsp.kernel.all_branches" branches_base:"standard" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/qemuppc" }} | ||
20 | |||
21 | {{ if need_new_kbranch == "y" and qemuarch == "i386": }} | ||
22 | {{ input type:"choicelist" name:"new_kbranch" nameappend:"i386" gen:"bsp.kernel.all_branches" branches_base:"standard" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/base" }} | ||
23 | |||
24 | {{ if need_new_kbranch == "n" and qemuarch == "i386": }} | ||
25 | {{ input type:"choicelist" name:"existing_kbranch" nameappend:"i386" gen:"bsp.kernel.all_branches" branches_base:"standard" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/base" }} | ||
26 | |||
27 | {{ if need_new_kbranch == "y" and qemuarch == "x86_64": }} | ||
28 | {{ input type:"choicelist" name:"new_kbranch" nameappend:"x86_64" gen:"bsp.kernel.all_branches" branches_base:"standard" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/base" }} | ||
29 | |||
30 | {{ if need_new_kbranch == "n" and qemuarch == "x86_64": }} | ||
31 | {{ input type:"choicelist" name:"existing_kbranch" nameappend:"x86_64" gen:"bsp.kernel.all_branches" branches_base:"standard" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/base" }} | ||
32 | |||
33 | {{ if need_new_kbranch == "n" and qemuarch == "mips": }} | ||
34 | {{ input type:"choicelist" name:"existing_kbranch" nameappend:"mips" gen:"bsp.kernel.all_branches" branches_base:"standard" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/mti-malta32" }} | ||
35 | |||
36 | {{ if need_new_kbranch == "n" and qemuarch == "mips64": }} | ||
37 | {{ input type:"choicelist" name:"existing_kbranch" nameappend:"mips64" gen:"bsp.kernel.all_branches" branches_base:"standard" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/mti-malta64" }} | ||
38 | |||
39 | {{ if need_new_kbranch == "y" and qemuarch == "mips": }} | ||
40 | {{ input type:"choicelist" name:"new_kbranch" nameappend:"mips" gen:"bsp.kernel.all_branches" branches_base:"standard" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/base" }} | ||
41 | |||
42 | {{ if need_new_kbranch == "y" and qemuarch == "mips64": }} | ||
43 | {{ input type:"choicelist" name:"new_kbranch" nameappend:"mips64" gen:"bsp.kernel.all_branches" branches_base:"standard" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/base" }} | ||
44 | |||
45 | {{ if need_new_kbranch == "n": }} | ||
46 | KBRANCH_{{=machine}} = "{{=existing_kbranch}}" | ||
47 | |||
48 | {{ if qemuarch != "arm": }} | ||
49 | {{ input type:"boolean" name:"smp" prio:"30" msg:"Would you like SMP support? (y/n)" default:"y"}} | ||
50 | {{ if smp == "y": }} | ||
51 | KERNEL_FEATURES_append_{{=machine}} += " cfg/smp.scc" | ||
52 | |||
53 | SRC_URI += "file://{{=machine}}.scc \ | ||
54 | file://{{=machine}}.cfg \ | ||
55 | file://{{=machine}}-standard.scc \ | ||
56 | file://{{=machine}}-user-config.cfg \ | ||
57 | file://{{=machine}}-user-features.scc \ | ||
58 | file://{{=machine}}-user-patches.scc \ | ||
59 | " | ||
60 | |||
61 | # replace these SRCREVs with the real commit ids once you've had | ||
62 | # the appropriate changes committed to the upstream linux-yocto repo | ||
63 | SRCREV_machine_pn-linux-yocto_{{=machine}} ?= "${AUTOREV}" | ||
64 | SRCREV_meta_pn-linux-yocto_{{=machine}} ?= "${AUTOREV}" | ||
65 | #LINUX_VERSION = "4.10" | ||
66 | #Remove the following line once AUTOREV is locked to a certain SRCREV | ||
67 | KERNEL_VERSION_SANITY_SKIP = "1" | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/qemu/recipes-kernel/linux/linux-yocto_4.12.bbappend b/scripts/lib/bsp/substrate/target/arch/qemu/recipes-kernel/linux/linux-yocto_4.12.bbappend deleted file mode 100644 index d7ce37e239..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/qemu/recipes-kernel/linux/linux-yocto_4.12.bbappend +++ /dev/null | |||
@@ -1,67 +0,0 @@ | |||
1 | # yocto-bsp-filename {{ if kernel_choice == "linux-yocto_4.12": }} this | ||
2 | FILESEXTRAPATHS_prepend := "${THISDIR}/files:" | ||
3 | |||
4 | PR := "${PR}.1" | ||
5 | |||
6 | COMPATIBLE_MACHINE_{{=machine}} = "{{=machine}}" | ||
7 | {{ input type:"boolean" name:"need_new_kbranch" prio:"20" msg:"Do you need a new machine branch for this BSP (the alternative is to re-use an existing branch)? [y/n]" default:"y" }} | ||
8 | |||
9 | {{ if need_new_kbranch == "y" and qemuarch == "arm": }} | ||
10 | {{ input type:"choicelist" name:"new_kbranch" gen:"bsp.kernel.all_branches" branches_base:"standard" prio:"20" msg:"Please choose a machine branch to base your new BSP branch on:" default:"standard/base" }} | ||
11 | |||
12 | {{ if need_new_kbranch == "n" and qemuarch == "arm": }} | ||
13 | {{ input type:"choicelist" name:"existing_kbranch" gen:"bsp.kernel.all_branches" branches_base:"standard" prio:"20" msg:"Please choose an existing machine branch to use for this BSP:" default:"standard/arm-versatile-926ejs" }} | ||
14 | |||
15 | {{ if need_new_kbranch == "y" and qemuarch == "powerpc": }} | ||
16 | {{ input type:"choicelist" name:"new_kbranch" nameappend:"powerpc" gen:"bsp.kernel.all_branches" branches_base:"standard" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/base" }} | ||
17 | |||
18 | {{ if need_new_kbranch == "n" and qemuarch == "powerpc": }} | ||
19 | {{ input type:"choicelist" name:"existing_kbranch" nameappend:"powerpc" gen:"bsp.kernel.all_branches" branches_base:"standard" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/qemuppc" }} | ||
20 | |||
21 | {{ if need_new_kbranch == "y" and qemuarch == "i386": }} | ||
22 | {{ input type:"choicelist" name:"new_kbranch" nameappend:"i386" gen:"bsp.kernel.all_branches" branches_base:"standard" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/base" }} | ||
23 | |||
24 | {{ if need_new_kbranch == "n" and qemuarch == "i386": }} | ||
25 | {{ input type:"choicelist" name:"existing_kbranch" nameappend:"i386" gen:"bsp.kernel.all_branches" branches_base:"standard" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/base" }} | ||
26 | |||
27 | {{ if need_new_kbranch == "y" and qemuarch == "x86_64": }} | ||
28 | {{ input type:"choicelist" name:"new_kbranch" nameappend:"x86_64" gen:"bsp.kernel.all_branches" branches_base:"standard" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/base" }} | ||
29 | |||
30 | {{ if need_new_kbranch == "n" and qemuarch == "x86_64": }} | ||
31 | {{ input type:"choicelist" name:"existing_kbranch" nameappend:"x86_64" gen:"bsp.kernel.all_branches" branches_base:"standard" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/base" }} | ||
32 | |||
33 | {{ if need_new_kbranch == "n" and qemuarch == "mips": }} | ||
34 | {{ input type:"choicelist" name:"existing_kbranch" nameappend:"mips" gen:"bsp.kernel.all_branches" branches_base:"standard" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/mti-malta32" }} | ||
35 | |||
36 | {{ if need_new_kbranch == "n" and qemuarch == "mips64": }} | ||
37 | {{ input type:"choicelist" name:"existing_kbranch" nameappend:"mips64" gen:"bsp.kernel.all_branches" branches_base:"standard" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/mti-malta64" }} | ||
38 | |||
39 | {{ if need_new_kbranch == "y" and qemuarch == "mips": }} | ||
40 | {{ input type:"choicelist" name:"new_kbranch" nameappend:"mips" gen:"bsp.kernel.all_branches" branches_base:"standard" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/base" }} | ||
41 | |||
42 | {{ if need_new_kbranch == "y" and qemuarch == "mips64": }} | ||
43 | {{ input type:"choicelist" name:"new_kbranch" nameappend:"mips64" gen:"bsp.kernel.all_branches" branches_base:"standard" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/base" }} | ||
44 | |||
45 | {{ if need_new_kbranch == "n": }} | ||
46 | KBRANCH_{{=machine}} = "{{=existing_kbranch}}" | ||
47 | |||
48 | {{ if qemuarch != "arm": }} | ||
49 | {{ input type:"boolean" name:"smp" prio:"30" msg:"Would you like SMP support? (y/n)" default:"y"}} | ||
50 | {{ if smp == "y": }} | ||
51 | KERNEL_FEATURES_append_{{=machine}} += " cfg/smp.scc" | ||
52 | |||
53 | SRC_URI += "file://{{=machine}}.scc \ | ||
54 | file://{{=machine}}.cfg \ | ||
55 | file://{{=machine}}-standard.scc \ | ||
56 | file://{{=machine}}-user-config.cfg \ | ||
57 | file://{{=machine}}-user-features.scc \ | ||
58 | file://{{=machine}}-user-patches.scc \ | ||
59 | " | ||
60 | |||
61 | # replace these SRCREVs with the real commit ids once you've had | ||
62 | # the appropriate changes committed to the upstream linux-yocto repo | ||
63 | SRCREV_machine_pn-linux-yocto_{{=machine}} ?= "${AUTOREV}" | ||
64 | SRCREV_meta_pn-linux-yocto_{{=machine}} ?= "${AUTOREV}" | ||
65 | #LINUX_VERSION = "4.10" | ||
66 | #Remove the following line once AUTOREV is locked to a certain SRCREV | ||
67 | KERNEL_VERSION_SANITY_SKIP = "1" | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/qemu/recipes-kernel/linux/linux-yocto_4.4.bbappend b/scripts/lib/bsp/substrate/target/arch/qemu/recipes-kernel/linux/linux-yocto_4.4.bbappend deleted file mode 100644 index 71be913bb0..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/qemu/recipes-kernel/linux/linux-yocto_4.4.bbappend +++ /dev/null | |||
@@ -1,67 +0,0 @@ | |||
1 | # yocto-bsp-filename {{ if kernel_choice == "linux-yocto_4.4": }} this | ||
2 | FILESEXTRAPATHS_prepend := "${THISDIR}/files:" | ||
3 | |||
4 | PR := "${PR}.1" | ||
5 | |||
6 | COMPATIBLE_MACHINE_{{=machine}} = "{{=machine}}" | ||
7 | {{ input type:"boolean" name:"need_new_kbranch" prio:"20" msg:"Do you need a new machine branch for this BSP (the alternative is to re-use an existing branch)? [y/n]" default:"y" }} | ||
8 | |||
9 | {{ if need_new_kbranch == "y" and qemuarch == "arm": }} | ||
10 | {{ input type:"choicelist" name:"new_kbranch" gen:"bsp.kernel.all_branches" branches_base:"standard" prio:"20" msg:"Please choose a machine branch to base your new BSP branch on:" default:"standard/base" }} | ||
11 | |||
12 | {{ if need_new_kbranch == "n" and qemuarch == "arm": }} | ||
13 | {{ input type:"choicelist" name:"existing_kbranch" gen:"bsp.kernel.all_branches" branches_base:"standard" prio:"20" msg:"Please choose an existing machine branch to use for this BSP:" default:"standard/arm-versatile-926ejs" }} | ||
14 | |||
15 | {{ if need_new_kbranch == "y" and qemuarch == "powerpc": }} | ||
16 | {{ input type:"choicelist" name:"new_kbranch" nameappend:"powerpc" gen:"bsp.kernel.all_branches" branches_base:"standard" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/base" }} | ||
17 | |||
18 | {{ if need_new_kbranch == "n" and qemuarch == "powerpc": }} | ||
19 | {{ input type:"choicelist" name:"existing_kbranch" nameappend:"powerpc" gen:"bsp.kernel.all_branches" branches_base:"standard" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/qemuppc" }} | ||
20 | |||
21 | {{ if need_new_kbranch == "y" and qemuarch == "i386": }} | ||
22 | {{ input type:"choicelist" name:"new_kbranch" nameappend:"i386" gen:"bsp.kernel.all_branches" branches_base:"standard" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/base" }} | ||
23 | |||
24 | {{ if need_new_kbranch == "n" and qemuarch == "i386": }} | ||
25 | {{ input type:"choicelist" name:"existing_kbranch" nameappend:"i386" gen:"bsp.kernel.all_branches" branches_base:"standard" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/base" }} | ||
26 | |||
27 | {{ if need_new_kbranch == "y" and qemuarch == "x86_64": }} | ||
28 | {{ input type:"choicelist" name:"new_kbranch" nameappend:"x86_64" gen:"bsp.kernel.all_branches" branches_base:"standard" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/base" }} | ||
29 | |||
30 | {{ if need_new_kbranch == "n" and qemuarch == "x86_64": }} | ||
31 | {{ input type:"choicelist" name:"existing_kbranch" nameappend:"x86_64" gen:"bsp.kernel.all_branches" branches_base:"standard" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/base" }} | ||
32 | |||
33 | {{ if need_new_kbranch == "n" and qemuarch == "mips": }} | ||
34 | {{ input type:"choicelist" name:"existing_kbranch" nameappend:"mips" gen:"bsp.kernel.all_branches" branches_base:"standard" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/mti-malta32" }} | ||
35 | |||
36 | {{ if need_new_kbranch == "n" and qemuarch == "mips64": }} | ||
37 | {{ input type:"choicelist" name:"existing_kbranch" nameappend:"mips64" gen:"bsp.kernel.all_branches" branches_base:"standard" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/mti-malta64" }} | ||
38 | |||
39 | {{ if need_new_kbranch == "y" and qemuarch == "mips": }} | ||
40 | {{ input type:"choicelist" name:"new_kbranch" nameappend:"mips" gen:"bsp.kernel.all_branches" branches_base:"standard" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/base" }} | ||
41 | |||
42 | {{ if need_new_kbranch == "y" and qemuarch == "mips64": }} | ||
43 | {{ input type:"choicelist" name:"new_kbranch" nameappend:"mips64" gen:"bsp.kernel.all_branches" branches_base:"standard" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/base" }} | ||
44 | |||
45 | {{ if need_new_kbranch == "n": }} | ||
46 | KBRANCH_{{=machine}} = "{{=existing_kbranch}}" | ||
47 | |||
48 | {{ if qemuarch != "arm": }} | ||
49 | {{ input type:"boolean" name:"smp" prio:"30" msg:"Would you like SMP support? (y/n)" default:"y"}} | ||
50 | {{ if smp == "y": }} | ||
51 | KERNEL_FEATURES_append_{{=machine}} += " cfg/smp.scc" | ||
52 | |||
53 | SRC_URI += "file://{{=machine}}.scc \ | ||
54 | file://{{=machine}}.cfg \ | ||
55 | file://{{=machine}}-standard.scc \ | ||
56 | file://{{=machine}}-user-config.cfg \ | ||
57 | file://{{=machine}}-user-features.scc \ | ||
58 | file://{{=machine}}-user-patches.scc \ | ||
59 | " | ||
60 | |||
61 | # replace these SRCREVs with the real commit ids once you've had | ||
62 | # the appropriate changes committed to the upstream linux-yocto repo | ||
63 | SRCREV_machine_pn-linux-yocto_{{=machine}} ?= "${AUTOREV}" | ||
64 | SRCREV_meta_pn-linux-yocto_{{=machine}} ?= "${AUTOREV}" | ||
65 | #LINUX_VERSION = "4.4" | ||
66 | #Remove the following line once AUTOREV is locked to a certain SRCREV | ||
67 | KERNEL_VERSION_SANITY_SKIP = "1" | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/x86_64/.gitignore b/scripts/lib/bsp/substrate/target/arch/x86_64/.gitignore deleted file mode 100644 index e69de29bb2..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/x86_64/.gitignore +++ /dev/null | |||
diff --git a/scripts/lib/bsp/substrate/target/arch/x86_64/conf/machine/machine.conf b/scripts/lib/bsp/substrate/target/arch/x86_64/conf/machine/machine.conf deleted file mode 100644 index e4b825104f..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/x86_64/conf/machine/machine.conf +++ /dev/null | |||
@@ -1,65 +0,0 @@ | |||
1 | # yocto-bsp-filename {{=machine}}.conf | ||
2 | #@TYPE: Machine | ||
3 | #@NAME: {{=machine}} | ||
4 | |||
5 | #@DESCRIPTION: Machine configuration for {{=machine}} systems | ||
6 | |||
7 | {{ if kernel_choice == "custom": preferred_kernel = "linux-yocto-custom" }} | ||
8 | {{ if kernel_choice == "linux-yocto-dev": preferred_kernel = "linux-yocto-dev" }} | ||
9 | {{ if kernel_choice == "custom" or kernel_choice == "linux-yocto-dev" : }} | ||
10 | PREFERRED_PROVIDER_virtual/kernel ?= "{{=preferred_kernel}}" | ||
11 | |||
12 | {{ if kernel_choice != "custom" and kernel_choice != "linux-yocto-dev": preferred_kernel = kernel_choice.split('_')[0] }} | ||
13 | {{ if kernel_choice != "custom" and kernel_choice != "linux-yocto-dev": preferred_kernel_version = kernel_choice.split('_')[1] }} | ||
14 | {{ if kernel_choice != "custom" and kernel_choice != "linux-yocto-dev": }} | ||
15 | PREFERRED_PROVIDER_virtual/kernel ?= "{{=preferred_kernel}}" | ||
16 | PREFERRED_VERSION_{{=preferred_kernel}} ?= "{{=preferred_kernel_version}}%" | ||
17 | |||
18 | {{ input type:"choicelist" name:"tunefile" prio:"40" msg:"Which machine tuning would you like to use?" default:"tune_core2" }} | ||
19 | {{ input type:"choice" val:"tune_core2" msg:"Core2 tuning optimizations" }} | ||
20 | {{ input type:"choice" val:"tune_corei7" msg:"Corei7 tuning optimizations" }} | ||
21 | {{ if tunefile == "tune_core2": }} | ||
22 | DEFAULTTUNE ?= "core2-64" | ||
23 | require conf/machine/include/tune-core2.inc | ||
24 | {{ if tunefile == "tune_corei7": }} | ||
25 | DEFAULTTUNE ?= "corei7-64" | ||
26 | require conf/machine/include/tune-corei7.inc | ||
27 | |||
28 | require conf/machine/include/x86-base.inc | ||
29 | |||
30 | MACHINE_FEATURES += "wifi efi pcbios" | ||
31 | |||
32 | {{ input type:"boolean" name:"xserver" prio:"50" msg:"Do you need support for X? (y/n)" default:"y" }} | ||
33 | |||
34 | {{ if xserver == "y": }} | ||
35 | {{ input type:"choicelist" name:"xserver_choice" prio:"50" msg:"Please select an xserver for this machine:" default:"xserver_i915" }} | ||
36 | |||
37 | {{ input type:"choice" val:"xserver_vesa" msg:"VESA xserver support" }} | ||
38 | {{ input type:"choice" val:"xserver_i915" msg:"i915 xserver support" }} | ||
39 | {{ input type:"choice" val:"xserver_i965" msg:"i965 xserver support" }} | ||
40 | {{ input type:"choice" val:"xserver_fbdev" msg:"fbdev xserver support" }} | ||
41 | {{ input type:"choice" val:"xserver_modesetting" msg:"modesetting xserver support" }} | ||
42 | {{ if xserver == "y": }} | ||
43 | XSERVER ?= "${XSERVER_X86_BASE} \ | ||
44 | ${XSERVER_X86_EXT} \ | ||
45 | {{ if xserver == "y" and xserver_choice == "xserver_vesa": }} | ||
46 | ${XSERVER_X86_VESA} \ | ||
47 | {{ if xserver == "y" and xserver_choice == "xserver_i915": }} | ||
48 | ${XSERVER_X86_I915} \ | ||
49 | {{ if xserver == "y" and xserver_choice == "xserver_i965": }} | ||
50 | ${XSERVER_X86_I965} \ | ||
51 | {{ if xserver == "y" and xserver_choice == "xserver_fbdev": }} | ||
52 | ${XSERVER_X86_FBDEV} \ | ||
53 | {{ if xserver == "y" and xserver_choice == "xserver_modesetting": }} | ||
54 | ${XSERVER_X86_MODESETTING} \ | ||
55 | {{ if xserver == "y": }} | ||
56 | " | ||
57 | |||
58 | MACHINE_EXTRA_RRECOMMENDS += "linux-firmware v86d eee-acpi-scripts" | ||
59 | |||
60 | EXTRA_OECONF_append_pn-matchbox-panel-2 = " --with-battery=acpi" | ||
61 | |||
62 | GLIBC_ADDONS = "nptl" | ||
63 | |||
64 | {{ if xserver == "y" and xserver_choice == "xserver_vesa": }} | ||
65 | APPEND += "video=vesafb vga=0x318" | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/x86_64/recipes-graphics/xorg-xserver/xserver-xf86-config/machine.noinstall b/scripts/lib/bsp/substrate/target/arch/x86_64/recipes-graphics/xorg-xserver/xserver-xf86-config/machine.noinstall deleted file mode 100644 index b442d02d57..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/x86_64/recipes-graphics/xorg-xserver/xserver-xf86-config/machine.noinstall +++ /dev/null | |||
@@ -1 +0,0 @@ | |||
1 | # yocto-bsp-dirname {{=machine}} | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/x86_64/recipes-graphics/xorg-xserver/xserver-xf86-config/machine/xorg.conf b/scripts/lib/bsp/substrate/target/arch/x86_64/recipes-graphics/xorg-xserver/xserver-xf86-config/machine/xorg.conf deleted file mode 100644 index ac9a0f1bb0..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/x86_64/recipes-graphics/xorg-xserver/xserver-xf86-config/machine/xorg.conf +++ /dev/null | |||
@@ -1 +0,0 @@ | |||
1 | # yocto-bsp-filename {{ if xserver == "y": }} this | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/x86_64/recipes-graphics/xorg-xserver/xserver-xf86-config_0.1.bbappend b/scripts/lib/bsp/substrate/target/arch/x86_64/recipes-graphics/xorg-xserver/xserver-xf86-config_0.1.bbappend deleted file mode 100644 index 30830031ed..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/x86_64/recipes-graphics/xorg-xserver/xserver-xf86-config_0.1.bbappend +++ /dev/null | |||
@@ -1,2 +0,0 @@ | |||
1 | # yocto-bsp-filename {{ if xserver == "y": }} this | ||
2 | FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/x86_64/recipes-kernel/linux/files.noinstall b/scripts/lib/bsp/substrate/target/arch/x86_64/recipes-kernel/linux/files.noinstall deleted file mode 100644 index 1e0d92c55c..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/x86_64/recipes-kernel/linux/files.noinstall +++ /dev/null | |||
@@ -1 +0,0 @@ | |||
1 | # yocto-bsp-dirname {{ if kernel_choice != "custom": }} files | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/x86_64/recipes-kernel/linux/files/machine-preempt-rt.scc b/scripts/lib/bsp/substrate/target/arch/x86_64/recipes-kernel/linux/files/machine-preempt-rt.scc deleted file mode 100644 index bbeeecd6be..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/x86_64/recipes-kernel/linux/files/machine-preempt-rt.scc +++ /dev/null | |||
@@ -1,17 +0,0 @@ | |||
1 | # yocto-bsp-filename {{=machine}}-preempt-rt.scc | ||
2 | define KMACHINE {{=machine}} | ||
3 | |||
4 | define KARCH x86_64 | ||
5 | |||
6 | include {{=map_preempt_rt_kbranch(need_new_kbranch, new_kbranch, existing_kbranch)}} | ||
7 | {{ if need_new_kbranch == "y": }} | ||
8 | define KTYPE {{=new_kbranch}} | ||
9 | branch {{=machine}} | ||
10 | |||
11 | include {{=machine}}.scc | ||
12 | |||
13 | # default policy for preempt-rt kernels | ||
14 | include cfg/usb-mass-storage.scc | ||
15 | include cfg/boot-live.scc | ||
16 | include features/latencytop/latencytop.scc | ||
17 | include features/profiling/profiling.scc | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/x86_64/recipes-kernel/linux/files/machine-standard.scc b/scripts/lib/bsp/substrate/target/arch/x86_64/recipes-kernel/linux/files/machine-standard.scc deleted file mode 100644 index a2b2910851..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/x86_64/recipes-kernel/linux/files/machine-standard.scc +++ /dev/null | |||
@@ -1,17 +0,0 @@ | |||
1 | # yocto-bsp-filename {{=machine}}-standard.scc | ||
2 | define KMACHINE {{=machine}} | ||
3 | |||
4 | define KARCH x86_64 | ||
5 | |||
6 | include {{=map_standard_kbranch(need_new_kbranch, new_kbranch, existing_kbranch)}} nopatch | ||
7 | {{ if need_new_kbranch == "y": }} | ||
8 | define KTYPE {{=new_kbranch}} | ||
9 | branch {{=machine}} | ||
10 | |||
11 | include {{=machine}}.scc | ||
12 | |||
13 | # default policy for standard kernels | ||
14 | include cfg/usb-mass-storage.scc | ||
15 | include cfg/boot-live.scc | ||
16 | include features/latencytop/latencytop.scc | ||
17 | include features/profiling/profiling.scc | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/x86_64/recipes-kernel/linux/files/machine-tiny.scc b/scripts/lib/bsp/substrate/target/arch/x86_64/recipes-kernel/linux/files/machine-tiny.scc deleted file mode 100644 index b53706f8c8..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/x86_64/recipes-kernel/linux/files/machine-tiny.scc +++ /dev/null | |||
@@ -1,11 +0,0 @@ | |||
1 | # yocto-bsp-filename {{=machine}}-tiny.scc | ||
2 | define KMACHINE {{=machine}} | ||
3 | |||
4 | define KARCH x86_64 | ||
5 | |||
6 | include {{=map_tiny_kbranch(need_new_kbranch, new_kbranch, existing_kbranch)}} | ||
7 | {{ if need_new_kbranch == "y": }} | ||
8 | define KTYPE {{=new_kbranch}} | ||
9 | branch {{=machine}} | ||
10 | |||
11 | include {{=machine}}.scc | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/x86_64/recipes-kernel/linux/files/machine-user-config.cfg b/scripts/lib/bsp/substrate/target/arch/x86_64/recipes-kernel/linux/files/machine-user-config.cfg deleted file mode 100644 index 47489e44e9..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/x86_64/recipes-kernel/linux/files/machine-user-config.cfg +++ /dev/null | |||
@@ -1 +0,0 @@ | |||
1 | # yocto-bsp-filename {{=machine}}-user-config.cfg | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/x86_64/recipes-kernel/linux/files/machine-user-features.scc b/scripts/lib/bsp/substrate/target/arch/x86_64/recipes-kernel/linux/files/machine-user-features.scc deleted file mode 100644 index 582759e612..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/x86_64/recipes-kernel/linux/files/machine-user-features.scc +++ /dev/null | |||
@@ -1 +0,0 @@ | |||
1 | # yocto-bsp-filename {{=machine}}-user-features.scc | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/x86_64/recipes-kernel/linux/files/machine-user-patches.scc b/scripts/lib/bsp/substrate/target/arch/x86_64/recipes-kernel/linux/files/machine-user-patches.scc deleted file mode 100644 index 97f747fa07..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/x86_64/recipes-kernel/linux/files/machine-user-patches.scc +++ /dev/null | |||
@@ -1 +0,0 @@ | |||
1 | # yocto-bsp-filename {{=machine}}-user-patches.scc | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/x86_64/recipes-kernel/linux/files/machine.cfg b/scripts/lib/bsp/substrate/target/arch/x86_64/recipes-kernel/linux/files/machine.cfg deleted file mode 100644 index 3290ddefe7..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/x86_64/recipes-kernel/linux/files/machine.cfg +++ /dev/null | |||
@@ -1,48 +0,0 @@ | |||
1 | # yocto-bsp-filename {{=machine}}.cfg | ||
2 | CONFIG_PRINTK=y | ||
3 | |||
4 | # Basic hardware support for the box - network, USB, PCI, sound | ||
5 | CONFIG_NETDEVICES=y | ||
6 | CONFIG_ATA=y | ||
7 | CONFIG_ATA_GENERIC=y | ||
8 | CONFIG_ATA_SFF=y | ||
9 | CONFIG_PCI=y | ||
10 | CONFIG_MMC=y | ||
11 | CONFIG_MMC_SDHCI=y | ||
12 | CONFIG_USB_SUPPORT=y | ||
13 | CONFIG_USB=y | ||
14 | CONFIG_USB_ARCH_HAS_EHCI=y | ||
15 | CONFIG_R8169=y | ||
16 | CONFIG_PATA_SCH=y | ||
17 | CONFIG_MMC_SDHCI_PCI=y | ||
18 | CONFIG_USB_EHCI_HCD=y | ||
19 | CONFIG_PCIEPORTBUS=y | ||
20 | CONFIG_NET=y | ||
21 | CONFIG_USB_UHCI_HCD=y | ||
22 | CONFIG_BLK_DEV_SD=y | ||
23 | CONFIG_CHR_DEV_SG=y | ||
24 | CONFIG_SOUND=y | ||
25 | CONFIG_SND=y | ||
26 | CONFIG_SND_HDA_INTEL=y | ||
27 | |||
28 | # Make sure these are on, otherwise the bootup won't be fun | ||
29 | CONFIG_EXT3_FS=y | ||
30 | CONFIG_UNIX=y | ||
31 | CONFIG_INET=y | ||
32 | CONFIG_MODULES=y | ||
33 | CONFIG_SHMEM=y | ||
34 | CONFIG_TMPFS=y | ||
35 | CONFIG_PACKET=y | ||
36 | |||
37 | CONFIG_I2C=y | ||
38 | CONFIG_AGP=y | ||
39 | CONFIG_PM=y | ||
40 | CONFIG_ACPI=y | ||
41 | CONFIG_INPUT=y | ||
42 | |||
43 | # Needed for booting (and using) USB memory sticks | ||
44 | CONFIG_BLK_DEV_LOOP=y | ||
45 | CONFIG_NLS_CODEPAGE_437=y | ||
46 | CONFIG_NLS_ISO8859_1=y | ||
47 | |||
48 | CONFIG_RD_GZIP=y | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/x86_64/recipes-kernel/linux/files/machine.scc b/scripts/lib/bsp/substrate/target/arch/x86_64/recipes-kernel/linux/files/machine.scc deleted file mode 100644 index 9d20d199b2..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/x86_64/recipes-kernel/linux/files/machine.scc +++ /dev/null | |||
@@ -1,12 +0,0 @@ | |||
1 | # yocto-bsp-filename {{=machine}}.scc | ||
2 | kconf hardware {{=machine}}.cfg | ||
3 | |||
4 | include features/serial/8250.scc | ||
5 | {{ if xserver == "y" and xserver_choice == "xserver_vesa": }} | ||
6 | include cfg/vesafb.scc | ||
7 | {{ if xserver == "y" and xserver_choice == "xserver_i915" or xserver_choice == "xserver_i965": }} | ||
8 | include features/i915/i915.scc | ||
9 | |||
10 | include cfg/usb-mass-storage.scc | ||
11 | include features/power/intel.scc | ||
12 | |||
diff --git a/scripts/lib/bsp/substrate/target/arch/x86_64/recipes-kernel/linux/kernel-list.noinstall b/scripts/lib/bsp/substrate/target/arch/x86_64/recipes-kernel/linux/kernel-list.noinstall deleted file mode 100644 index 917f0e2207..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/x86_64/recipes-kernel/linux/kernel-list.noinstall +++ /dev/null | |||
@@ -1,5 +0,0 @@ | |||
1 | {{ if kernel_choice != "custom": }} | ||
2 | {{ input type:"boolean" name:"use_default_kernel" prio:"10" msg:"Would you like to use the default (4.12) kernel? (y/n)" default:"y"}} | ||
3 | |||
4 | {{ if kernel_choice != "custom" and use_default_kernel == "n": }} | ||
5 | {{ input type:"choicelist" name:"kernel_choice" gen:"bsp.kernel.kernels" prio:"10" msg:"Please choose the kernel to use in this BSP:" default:"linux-yocto_4.12"}} | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/x86_64/recipes-kernel/linux/linux-yocto-dev.bbappend b/scripts/lib/bsp/substrate/target/arch/x86_64/recipes-kernel/linux/linux-yocto-dev.bbappend deleted file mode 100644 index 22ed273811..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/x86_64/recipes-kernel/linux/linux-yocto-dev.bbappend +++ /dev/null | |||
@@ -1,28 +0,0 @@ | |||
1 | # yocto-bsp-filename {{ if kernel_choice == "linux-yocto-dev": }} this | ||
2 | FILESEXTRAPATHS_prepend := "${THISDIR}/files:" | ||
3 | |||
4 | PR := "${PR}.1" | ||
5 | |||
6 | COMPATIBLE_MACHINE_{{=machine}} = "{{=machine}}" | ||
7 | {{ input type:"boolean" name:"need_new_kbranch" prio:"20" msg:"Do you need a new machine branch for this BSP (the alternative is to re-use an existing branch)? [y/n]" default:"y" }} | ||
8 | |||
9 | {{ if need_new_kbranch == "y": }} | ||
10 | {{ input type:"choicelist" name:"new_kbranch" nameappend:"i386" gen:"bsp.kernel.all_branches" branches_base:"standard" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/base" }} | ||
11 | |||
12 | {{ if need_new_kbranch == "n": }} | ||
13 | {{ input type:"choicelist" name:"existing_kbranch" nameappend:"i386" gen:"bsp.kernel.all_branches" branches_base:"standard" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/base" }} | ||
14 | |||
15 | {{ if need_new_kbranch == "n": }} | ||
16 | KBRANCH_{{=machine}} = "{{=existing_kbranch}}" | ||
17 | |||
18 | {{ input type:"boolean" name:"smp" prio:"30" msg:"Would you like SMP support? (y/n)" default:"y"}} | ||
19 | {{ if smp == "y": }} | ||
20 | KERNEL_FEATURES_append_{{=machine}} += " cfg/smp.scc" | ||
21 | |||
22 | SRC_URI += "file://{{=machine}}.scc \ | ||
23 | file://{{=machine}}.cfg \ | ||
24 | file://{{=machine}}-standard.scc \ | ||
25 | file://{{=machine}}-user-config.cfg \ | ||
26 | file://{{=machine}}-user-features.scc \ | ||
27 | file://{{=machine}}-user-patches.scc \ | ||
28 | " | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/x86_64/recipes-kernel/linux/linux-yocto-tiny_4.10.bbappend b/scripts/lib/bsp/substrate/target/arch/x86_64/recipes-kernel/linux/linux-yocto-tiny_4.10.bbappend deleted file mode 100644 index bae943ea1e..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/x86_64/recipes-kernel/linux/linux-yocto-tiny_4.10.bbappend +++ /dev/null | |||
@@ -1,37 +0,0 @@ | |||
1 | # yocto-bsp-filename {{ if kernel_choice == "linux-yocto-tiny_4.10": }} this | ||
2 | FILESEXTRAPATHS_prepend := "${THISDIR}/files:" | ||
3 | |||
4 | PR := "${PR}.1" | ||
5 | |||
6 | COMPATIBLE_MACHINE_{{=machine}} = "{{=machine}}" | ||
7 | |||
8 | {{ input type:"boolean" name:"need_new_kbranch" prio:"20" msg:"Do you need a new machine branch for this BSP (the alternative is to re-use an existing branch)? [y/n]" default:"y" }} | ||
9 | |||
10 | {{ if need_new_kbranch == "y": }} | ||
11 | {{ input type:"choicelist" name:"new_kbranch" gen:"bsp.kernel.all_branches" branches_base:"standard/tiny" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/tiny/base" }} | ||
12 | |||
13 | {{ if need_new_kbranch == "n": }} | ||
14 | {{ input type:"choicelist" name:"existing_kbranch" gen:"bsp.kernel.all_branches" branches_base:"standard/tiny" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/tiny/base" }} | ||
15 | |||
16 | {{ if need_new_kbranch == "n": }} | ||
17 | KBRANCH_{{=machine}} = "{{=existing_kbranch}}" | ||
18 | |||
19 | {{ input type:"boolean" name:"smp" prio:"30" msg:"Do you need SMP support? (y/n)" default:"y"}} | ||
20 | {{ if smp == "y": }} | ||
21 | KERNEL_FEATURES_append_{{=machine}} += " cfg/smp.scc" | ||
22 | |||
23 | SRC_URI += "file://{{=machine}}.scc \ | ||
24 | file://{{=machine}}.cfg \ | ||
25 | file://{{=machine}}-tiny.scc \ | ||
26 | file://{{=machine}}-user-config.cfg \ | ||
27 | file://{{=machine}}-user-patches.scc \ | ||
28 | file://{{=machine}}-user-features.scc \ | ||
29 | " | ||
30 | |||
31 | # replace these SRCREVs with the real commit ids once you've had | ||
32 | # the appropriate changes committed to the upstream linux-yocto repo | ||
33 | SRCREV_machine_pn-linux-yocto-tiny_{{=machine}} ?= "${AUTOREV}" | ||
34 | SRCREV_meta_pn-linux-yocto-tiny_{{=machine}} ?= "${AUTOREV}" | ||
35 | #LINUX_VERSION = "4.10" | ||
36 | #Remove the following line once AUTOREV is locked to a certain SRCREV | ||
37 | KERNEL_VERSION_SANITY_SKIP = "1" | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/x86_64/recipes-kernel/linux/linux-yocto-tiny_4.12.bbappend b/scripts/lib/bsp/substrate/target/arch/x86_64/recipes-kernel/linux/linux-yocto-tiny_4.12.bbappend deleted file mode 100644 index 6f3e104c66..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/x86_64/recipes-kernel/linux/linux-yocto-tiny_4.12.bbappend +++ /dev/null | |||
@@ -1,37 +0,0 @@ | |||
1 | # yocto-bsp-filename {{ if kernel_choice == "linux-yocto-tiny_4.12": }} this | ||
2 | FILESEXTRAPATHS_prepend := "${THISDIR}/files:" | ||
3 | |||
4 | PR := "${PR}.1" | ||
5 | |||
6 | COMPATIBLE_MACHINE_{{=machine}} = "{{=machine}}" | ||
7 | |||
8 | {{ input type:"boolean" name:"need_new_kbranch" prio:"20" msg:"Do you need a new machine branch for this BSP (the alternative is to re-use an existing branch)? [y/n]" default:"y" }} | ||
9 | |||
10 | {{ if need_new_kbranch == "y": }} | ||
11 | {{ input type:"choicelist" name:"new_kbranch" gen:"bsp.kernel.all_branches" branches_base:"standard/tiny" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/tiny/base" }} | ||
12 | |||
13 | {{ if need_new_kbranch == "n": }} | ||
14 | {{ input type:"choicelist" name:"existing_kbranch" gen:"bsp.kernel.all_branches" branches_base:"standard/tiny" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/tiny/base" }} | ||
15 | |||
16 | {{ if need_new_kbranch == "n": }} | ||
17 | KBRANCH_{{=machine}} = "{{=existing_kbranch}}" | ||
18 | |||
19 | {{ input type:"boolean" name:"smp" prio:"30" msg:"Do you need SMP support? (y/n)" default:"y"}} | ||
20 | {{ if smp == "y": }} | ||
21 | KERNEL_FEATURES_append_{{=machine}} += " cfg/smp.scc" | ||
22 | |||
23 | SRC_URI += "file://{{=machine}}.scc \ | ||
24 | file://{{=machine}}.cfg \ | ||
25 | file://{{=machine}}-tiny.scc \ | ||
26 | file://{{=machine}}-user-config.cfg \ | ||
27 | file://{{=machine}}-user-patches.scc \ | ||
28 | file://{{=machine}}-user-features.scc \ | ||
29 | " | ||
30 | |||
31 | # replace these SRCREVs with the real commit ids once you've had | ||
32 | # the appropriate changes committed to the upstream linux-yocto repo | ||
33 | SRCREV_machine_pn-linux-yocto-tiny_{{=machine}} ?= "${AUTOREV}" | ||
34 | SRCREV_meta_pn-linux-yocto-tiny_{{=machine}} ?= "${AUTOREV}" | ||
35 | #LINUX_VERSION = "4.10" | ||
36 | #Remove the following line once AUTOREV is locked to a certain SRCREV | ||
37 | KERNEL_VERSION_SANITY_SKIP = "1" | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/x86_64/recipes-kernel/linux/linux-yocto-tiny_4.4.bbappend b/scripts/lib/bsp/substrate/target/arch/x86_64/recipes-kernel/linux/linux-yocto-tiny_4.4.bbappend deleted file mode 100644 index 62d1817f22..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/x86_64/recipes-kernel/linux/linux-yocto-tiny_4.4.bbappend +++ /dev/null | |||
@@ -1,37 +0,0 @@ | |||
1 | # yocto-bsp-filename {{ if kernel_choice == "linux-yocto-tiny_4.4": }} this | ||
2 | FILESEXTRAPATHS_prepend := "${THISDIR}/files:" | ||
3 | |||
4 | PR := "${PR}.1" | ||
5 | |||
6 | COMPATIBLE_MACHINE_{{=machine}} = "{{=machine}}" | ||
7 | |||
8 | {{ input type:"boolean" name:"need_new_kbranch" prio:"20" msg:"Do you need a new machine branch for this BSP (the alternative is to re-use an existing branch)? [y/n]" default:"y" }} | ||
9 | |||
10 | {{ if need_new_kbranch == "y": }} | ||
11 | {{ input type:"choicelist" name:"new_kbranch" gen:"bsp.kernel.all_branches" branches_base:"standard/tiny" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/tiny/base" }} | ||
12 | |||
13 | {{ if need_new_kbranch == "n": }} | ||
14 | {{ input type:"choicelist" name:"existing_kbranch" gen:"bsp.kernel.all_branches" branches_base:"standard/tiny" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/tiny/base" }} | ||
15 | |||
16 | {{ if need_new_kbranch == "n": }} | ||
17 | KBRANCH_{{=machine}} = "{{=existing_kbranch}}" | ||
18 | |||
19 | {{ input type:"boolean" name:"smp" prio:"30" msg:"Do you need SMP support? (y/n)" default:"y"}} | ||
20 | {{ if smp == "y": }} | ||
21 | KERNEL_FEATURES_append_{{=machine}} += " cfg/smp.scc" | ||
22 | |||
23 | SRC_URI += "file://{{=machine}}.scc \ | ||
24 | file://{{=machine}}.cfg \ | ||
25 | file://{{=machine}}-tiny.scc \ | ||
26 | file://{{=machine}}-user-config.cfg \ | ||
27 | file://{{=machine}}-user-patches.scc \ | ||
28 | file://{{=machine}}-user-features.scc \ | ||
29 | " | ||
30 | |||
31 | # replace these SRCREVs with the real commit ids once you've had | ||
32 | # the appropriate changes committed to the upstream linux-yocto repo | ||
33 | SRCREV_machine_pn-linux-yocto-tiny_{{=machine}} ?= "${AUTOREV}" | ||
34 | SRCREV_meta_pn-linux-yocto-tiny_{{=machine}} ?= "${AUTOREV}" | ||
35 | #LINUX_VERSION = "4.4" | ||
36 | #Remove the following line once AUTOREV is locked to a certain SRCREV | ||
37 | KERNEL_VERSION_SANITY_SKIP = "1" | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/x86_64/recipes-kernel/linux/linux-yocto_4.10.bbappend b/scripts/lib/bsp/substrate/target/arch/x86_64/recipes-kernel/linux/linux-yocto_4.10.bbappend deleted file mode 100644 index dfbecb5337..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/x86_64/recipes-kernel/linux/linux-yocto_4.10.bbappend +++ /dev/null | |||
@@ -1,37 +0,0 @@ | |||
1 | # yocto-bsp-filename {{ if kernel_choice == "linux-yocto_4.10": }} this | ||
2 | FILESEXTRAPATHS_prepend := "${THISDIR}/files:" | ||
3 | |||
4 | PR := "${PR}.1" | ||
5 | |||
6 | COMPATIBLE_MACHINE_{{=machine}} = "{{=machine}}" | ||
7 | |||
8 | {{ input type:"boolean" name:"need_new_kbranch" prio:"20" msg:"Do you need a new machine branch for this BSP (the alternative is to re-use an existing branch)? [y/n]" default:"y" }} | ||
9 | |||
10 | {{ if need_new_kbranch == "y": }} | ||
11 | {{ input type:"choicelist" name:"new_kbranch" gen:"bsp.kernel.all_branches" branches_base:"standard" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/base" }} | ||
12 | |||
13 | {{ if need_new_kbranch == "n": }} | ||
14 | {{ input type:"choicelist" name:"existing_kbranch" gen:"bsp.kernel.all_branches" branches_base:"standard" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/base" }} | ||
15 | |||
16 | {{ if need_new_kbranch == "n": }} | ||
17 | KBRANCH_{{=machine}} = "{{=existing_kbranch}}" | ||
18 | |||
19 | {{ input type:"boolean" name:"smp" prio:"30" msg:"Do you need SMP support? (y/n)" default:"y"}} | ||
20 | {{ if smp == "y": }} | ||
21 | KERNEL_FEATURES_append_{{=machine}} += " cfg/smp.scc" | ||
22 | |||
23 | SRC_URI += "file://{{=machine}}.scc \ | ||
24 | file://{{=machine}}.cfg \ | ||
25 | file://{{=machine}}-standard.scc \ | ||
26 | file://{{=machine}}-user-config.cfg \ | ||
27 | file://{{=machine}}-user-features.scc \ | ||
28 | file://{{=machine}}-user-patches.scc \ | ||
29 | " | ||
30 | |||
31 | # replace these SRCREVs with the real commit ids once you've had | ||
32 | # the appropriate changes committed to the upstream linux-yocto repo | ||
33 | SRCREV_machine_pn-linux-yocto_{{=machine}} ?= "${AUTOREV}" | ||
34 | SRCREV_meta_pn-linux-yocto_{{=machine}} ?= "${AUTOREV}" | ||
35 | #LINUX_VERSION = "4.10" | ||
36 | #Remove the following line once AUTOREV is locked to a certain SRCREV | ||
37 | KERNEL_VERSION_SANITY_SKIP = "1" | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/x86_64/recipes-kernel/linux/linux-yocto_4.12.bbappend b/scripts/lib/bsp/substrate/target/arch/x86_64/recipes-kernel/linux/linux-yocto_4.12.bbappend deleted file mode 100644 index e874c9e45f..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/x86_64/recipes-kernel/linux/linux-yocto_4.12.bbappend +++ /dev/null | |||
@@ -1,37 +0,0 @@ | |||
1 | # yocto-bsp-filename {{ if kernel_choice == "linux-yocto_4.12": }} this | ||
2 | FILESEXTRAPATHS_prepend := "${THISDIR}/files:" | ||
3 | |||
4 | PR := "${PR}.1" | ||
5 | |||
6 | COMPATIBLE_MACHINE_{{=machine}} = "{{=machine}}" | ||
7 | |||
8 | {{ input type:"boolean" name:"need_new_kbranch" prio:"20" msg:"Do you need a new machine branch for this BSP (the alternative is to re-use an existing branch)? [y/n]" default:"y" }} | ||
9 | |||
10 | {{ if need_new_kbranch == "y": }} | ||
11 | {{ input type:"choicelist" name:"new_kbranch" gen:"bsp.kernel.all_branches" branches_base:"standard" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/base" }} | ||
12 | |||
13 | {{ if need_new_kbranch == "n": }} | ||
14 | {{ input type:"choicelist" name:"existing_kbranch" gen:"bsp.kernel.all_branches" branches_base:"standard" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/base" }} | ||
15 | |||
16 | {{ if need_new_kbranch == "n": }} | ||
17 | KBRANCH_{{=machine}} = "{{=existing_kbranch}}" | ||
18 | |||
19 | {{ input type:"boolean" name:"smp" prio:"30" msg:"Do you need SMP support? (y/n)" default:"y"}} | ||
20 | {{ if smp == "y": }} | ||
21 | KERNEL_FEATURES_append_{{=machine}} += " cfg/smp.scc" | ||
22 | |||
23 | SRC_URI += "file://{{=machine}}.scc \ | ||
24 | file://{{=machine}}.cfg \ | ||
25 | file://{{=machine}}-standard.scc \ | ||
26 | file://{{=machine}}-user-config.cfg \ | ||
27 | file://{{=machine}}-user-features.scc \ | ||
28 | file://{{=machine}}-user-patches.scc \ | ||
29 | " | ||
30 | |||
31 | # replace these SRCREVs with the real commit ids once you've had | ||
32 | # the appropriate changes committed to the upstream linux-yocto repo | ||
33 | SRCREV_machine_pn-linux-yocto_{{=machine}} ?= "${AUTOREV}" | ||
34 | SRCREV_meta_pn-linux-yocto_{{=machine}} ?= "${AUTOREV}" | ||
35 | #LINUX_VERSION = "4.10" | ||
36 | #Remove the following line once AUTOREV is locked to a certain SRCREV | ||
37 | KERNEL_VERSION_SANITY_SKIP = "1" | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/x86_64/recipes-kernel/linux/linux-yocto_4.4.bbappend b/scripts/lib/bsp/substrate/target/arch/x86_64/recipes-kernel/linux/linux-yocto_4.4.bbappend deleted file mode 100644 index a809c7600a..0000000000 --- a/scripts/lib/bsp/substrate/target/arch/x86_64/recipes-kernel/linux/linux-yocto_4.4.bbappend +++ /dev/null | |||
@@ -1,37 +0,0 @@ | |||
1 | # yocto-bsp-filename {{ if kernel_choice == "linux-yocto_4.4": }} this | ||
2 | FILESEXTRAPATHS_prepend := "${THISDIR}/files:" | ||
3 | |||
4 | PR := "${PR}.1" | ||
5 | |||
6 | COMPATIBLE_MACHINE_{{=machine}} = "{{=machine}}" | ||
7 | |||
8 | {{ input type:"boolean" name:"need_new_kbranch" prio:"20" msg:"Do you need a new machine branch for this BSP (the alternative is to re-use an existing branch)? [y/n]" default:"y" }} | ||
9 | |||
10 | {{ if need_new_kbranch == "y": }} | ||
11 | {{ input type:"choicelist" name:"new_kbranch" gen:"bsp.kernel.all_branches" branches_base:"standard" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/base" }} | ||
12 | |||
13 | {{ if need_new_kbranch == "n": }} | ||
14 | {{ input type:"choicelist" name:"existing_kbranch" gen:"bsp.kernel.all_branches" branches_base:"standard" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/base" }} | ||
15 | |||
16 | {{ if need_new_kbranch == "n": }} | ||
17 | KBRANCH_{{=machine}} = "{{=existing_kbranch}}" | ||
18 | |||
19 | {{ input type:"boolean" name:"smp" prio:"30" msg:"Do you need SMP support? (y/n)" default:"y"}} | ||
20 | {{ if smp == "y": }} | ||
21 | KERNEL_FEATURES_append_{{=machine}} += " cfg/smp.scc" | ||
22 | |||
23 | SRC_URI += "file://{{=machine}}.scc \ | ||
24 | file://{{=machine}}.cfg \ | ||
25 | file://{{=machine}}-standard.scc \ | ||
26 | file://{{=machine}}-user-config.cfg \ | ||
27 | file://{{=machine}}-user-features.scc \ | ||
28 | file://{{=machine}}-user-patches.scc \ | ||
29 | " | ||
30 | |||
31 | # replace these SRCREVs with the real commit ids once you've had | ||
32 | # the appropriate changes committed to the upstream linux-yocto repo | ||
33 | SRCREV_machine_pn-linux-yocto_{{=machine}} ?= "${AUTOREV}" | ||
34 | SRCREV_meta_pn-linux-yocto_{{=machine}} ?= "${AUTOREV}" | ||
35 | #LINUX_VERSION = "4.4" | ||
36 | #Remove the following line once AUTOREV is locked to a certain SRCREV | ||
37 | KERNEL_VERSION_SANITY_SKIP = "1" | ||
diff --git a/scripts/lib/bsp/tags.py b/scripts/lib/bsp/tags.py deleted file mode 100644 index 3719427884..0000000000 --- a/scripts/lib/bsp/tags.py +++ /dev/null | |||
@@ -1,49 +0,0 @@ | |||
1 | # ex:ts=4:sw=4:sts=4:et | ||
2 | # -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- | ||
3 | # | ||
4 | # Copyright (c) 2012, Intel Corporation. | ||
5 | # All rights reserved. | ||
6 | # | ||
7 | # This program is free software; you can redistribute it and/or modify | ||
8 | # it under the terms of the GNU General Public License version 2 as | ||
9 | # published by the Free Software Foundation. | ||
10 | # | ||
11 | # This program is distributed in the hope that it will be useful, | ||
12 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
13 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
14 | # GNU General Public License for more details. | ||
15 | # | ||
16 | # You should have received a copy of the GNU General Public License along | ||
17 | # with this program; if not, write to the Free Software Foundation, Inc., | ||
18 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. | ||
19 | # | ||
20 | # DESCRIPTION | ||
21 | # This module provides a place to define common constants for the | ||
22 | # Yocto BSP Tools. | ||
23 | # | ||
24 | # AUTHORS | ||
25 | # Tom Zanussi <tom.zanussi (at] intel.com> | ||
26 | # | ||
27 | |||
28 | OPEN_TAG = "{{" | ||
29 | CLOSE_TAG = "}}" | ||
30 | ASSIGN_TAG = "{{=" | ||
31 | INPUT_TAG = "input" | ||
32 | IF_TAG = "if" | ||
33 | FILENAME_TAG = "yocto-bsp-filename" | ||
34 | DIRNAME_TAG = "yocto-bsp-dirname" | ||
35 | |||
36 | INDENT_STR = " " | ||
37 | |||
38 | BLANKLINE_STR = "of.write(\"\\n\")" | ||
39 | NORMAL_START = "of.write" | ||
40 | OPEN_START = "current_file =" | ||
41 | |||
42 | INPUT_TYPE_PROPERTY = "type" | ||
43 | |||
44 | SRC_URI_FILE = "file://" | ||
45 | |||
46 | GIT_CHECK_URI = "git://git.yoctoproject.org/linux-yocto-dev.git" | ||
47 | |||
48 | |||
49 | |||