summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorMichael Wood <michael.g.wood@intel.com>2015-02-12 15:08:24 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-02-17 14:38:32 +0000
commitc5ba5eccba58f8480e028eec729c5f67834066ac (patch)
tree273b8363088612a6c64a8b027a8e700dbadf3cc9 /bitbake
parent82d2c502c22ffe48e31363a894a98bf6a2cddd12 (diff)
downloadpoky-c5ba5eccba58f8480e028eec729c5f67834066ac.tar.gz
bitbake: toaster: Remove Layer source from machines, layers and targets
From the bug: The layer source reveals too much of the implementation model, without explaining what is going on behind the scenes. It will confuse more than inform, so let's get rid of it. [YOCTO #7302] (Bitbake rev: 7fee378849c9518a4560aa5be65fca9644c03048) Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/toaster/toastergui/templates/layers.html1
-rw-r--r--bitbake/lib/toaster/toastergui/templates/machines.html1
-rw-r--r--bitbake/lib/toaster/toastergui/templates/targets.html1
-rwxr-xr-xbitbake/lib/toaster/toastergui/views.py37
4 files changed, 0 insertions, 40 deletions
diff --git a/bitbake/lib/toaster/toastergui/templates/layers.html b/bitbake/lib/toaster/toastergui/templates/layers.html
index 0943c39fde..5cfda5b526 100644
--- a/bitbake/lib/toaster/toastergui/templates/layers.html
+++ b/bitbake/lib/toaster/toastergui/templates/layers.html
@@ -41,7 +41,6 @@
41 <tr class="data"> 41 <tr class="data">
42 <td class="layer"><a href="{% url 'layerdetails' o.id %}">{{o.layer.name}}</a></td> 42 <td class="layer"><a href="{% url 'layerdetails' o.id %}">{{o.layer.name}}</a></td>
43 <td class="description">{% if o.layer.summary %}{{o.layer.summary}}{%endif%}</td> 43 <td class="description">{% if o.layer.summary %}{{o.layer.summary}}{%endif%}</td>
44 <td class="source"><a href="{% url 'layerdetails' o.pk %}">{{o.layer_source.name}}</a></td>
45 <td class="git-repo"><a href="{% url 'layerdetails' o.pk %}"><code>{{o.layer.vcs_url}}</code></a> 44 <td class="git-repo"><a href="{% url 'layerdetails' o.pk %}"><code>{{o.layer.vcs_url}}</code></a>
46 {% if o.get_vcs_link_url %} 45 {% if o.get_vcs_link_url %}
47 <a target="_blank" href="{{ o.get_vcs_link_url }}"><i class="icon-share get-info"></i></a> 46 <a target="_blank" href="{{ o.get_vcs_link_url }}"><i class="icon-share get-info"></i></a>
diff --git a/bitbake/lib/toaster/toastergui/templates/machines.html b/bitbake/lib/toaster/toastergui/templates/machines.html
index 2089c26493..9b2a540f31 100644
--- a/bitbake/lib/toaster/toastergui/templates/machines.html
+++ b/bitbake/lib/toaster/toastergui/templates/machines.html
@@ -64,7 +64,6 @@
64 <td class="machine">{{o.name}}</td> 64 <td class="machine">{{o.name}}</td>
65 <td class="description">{{o.description}}</td> 65 <td class="description">{{o.description}}</td>
66 <td class="layer"><a href="{%url "layerdetails" o.layer_version.id %}">{{o.layer_version.layer.name}}</a></td> 66 <td class="layer"><a href="{%url "layerdetails" o.layer_version.id %}">{{o.layer_version.layer.name}}</a></td>
67 <td class="source">{{o.layer_source.name}}</td>
68 <td class="branch">{{o.layer_version.get_vcs_reference}}</td> 67 <td class="branch">{{o.layer_version.get_vcs_reference}}</td>
69 <td class="machinefile"><code>/machine/conf/{{o.name}}.conf</code><a href="{{o.get_vcs_machine_file_link_url}}" target="_blank"><i class="icon-share get-info"></i></a></td> 68 <td class="machinefile"><code>/machine/conf/{{o.name}}.conf</code><a href="{{o.get_vcs_machine_file_link_url}}" target="_blank"><i class="icon-share get-info"></i></a></td>
70 <td class="select-or-add"> 69 <td class="select-or-add">
diff --git a/bitbake/lib/toaster/toastergui/templates/targets.html b/bitbake/lib/toaster/toastergui/templates/targets.html
index 32c67ea881..6cd9391323 100644
--- a/bitbake/lib/toaster/toastergui/templates/targets.html
+++ b/bitbake/lib/toaster/toastergui/templates/targets.html
@@ -53,7 +53,6 @@
53 <td class="target-section">{{o.section}}</td> 53 <td class="target-section">{{o.section}}</td>
54 <td class="license">{{o.license}}</td> 54 <td class="license">{{o.license}}</td>
55 <td class="layer"><a href="{% url 'layerdetails' o.preffered_layerversion.id%}">{{o.preffered_layerversion.layer.name}}</a></td> 55 <td class="layer"><a href="{% url 'layerdetails' o.preffered_layerversion.id%}">{{o.preffered_layerversion.layer.name}}</a></td>
56 <td class="source">{{o.preffered_layerversion.layer_source.name}}</td>
57 <td class="branch"> 56 <td class="branch">
58 {% if o.preffered_layerversion.up_branch %} 57 {% if o.preffered_layerversion.up_branch %}
59 {{o.preffered_layerversion.up_branch.name}} 58 {{o.preffered_layerversion.up_branch.name}}
diff --git a/bitbake/lib/toaster/toastergui/views.py b/bitbake/lib/toaster/toastergui/views.py
index 4a1cdec5a8..7bfedb46b1 100755
--- a/bitbake/lib/toaster/toastergui/views.py
+++ b/bitbake/lib/toaster/toastergui/views.py
@@ -2565,18 +2565,6 @@ if toastermain.settings.MANAGED:
2565 'dclass': 'span4', 2565 'dclass': 'span4',
2566 'clclass': 'description', 2566 'clclass': 'description',
2567 }, 2567 },
2568 { 'name': 'Layer source',
2569 'clclass': 'source',
2570 'qhelp': "Where the layer is coming from, for example, if it's part of the OpenEmbedded collection of layers or if it's a layer you have imported",
2571 'orderfield': _get_toggle_order(request, "layer_source__name"),
2572 'ordericon': _get_toggle_order_icon(request, "layer_source__name"),
2573 'orderkey' : "layer_source__name",
2574 'filter': {
2575 'class': 'layer',
2576 'label': 'Show:',
2577 'options': map(lambda x: (x.name + " layers", 'layer_source__pk:' + str(x.id), queryset_all.filter(layer_source__pk = x.id).count() ), LayerSource.objects.all()),
2578 }
2579 },
2580 { 'name': 'Git repository URL', 2568 { 'name': 'Git repository URL',
2581 'dclass': 'span6', 2569 'dclass': 'span6',
2582 'clclass': 'git-repo', 'hidden': 1, 2570 'clclass': 'git-repo', 'hidden': 1,
@@ -2741,18 +2729,6 @@ if toastermain.settings.MANAGED:
2741 'ordericon': _get_toggle_order_icon(request, "layer_version__layer__name"), 2729 'ordericon': _get_toggle_order_icon(request, "layer_version__layer__name"),
2742 'orderkey': "layer_version__layer__name", 2730 'orderkey': "layer_version__layer__name",
2743 }, 2731 },
2744 { 'name': 'Layer source',
2745 'clclass': 'source',
2746 'qhelp': "Where the target is coming from, for example, if it's part of the OpenEmbedded collection of targets or if it's a target you have imported",
2747 'orderfield': _get_toggle_order(request, "layer_source__name"),
2748 'ordericon': _get_toggle_order_icon(request, "layer_source__name"),
2749 'orderkey': "layer_source__name",
2750 'filter': {
2751 'class': 'target',
2752 'label': 'Show:',
2753 'options': map(lambda x: ("Targets provided by " + x.name + " layers", 'layer_source__pk:' + str(x.id), queryset_with_search.filter(layer_source__pk = x.id).count() ), LayerSource.objects.all()),
2754 }
2755 },
2756 { 'name': 'Revision', 2732 { 'name': 'Revision',
2757 'clclass': 'branch', 2733 'clclass': 'branch',
2758 'qhelp': "The Git branch, tag or commit. For the layers from the OpenEmbedded layer source, the revision is always the branch compatible with the Yocto Project version you selected for this project.", 2734 'qhelp': "The Git branch, tag or commit. For the layers from the OpenEmbedded layer source, the revision is always the branch compatible with the Yocto Project version you selected for this project.",
@@ -2802,7 +2778,6 @@ if toastermain.settings.MANAGED:
2802 2778
2803 queryset_all = Machine.objects.all() 2779 queryset_all = Machine.objects.all()
2804 queryset_all = queryset_all.prefetch_related('layer_version') 2780 queryset_all = queryset_all.prefetch_related('layer_version')
2805 queryset_all = queryset_all.prefetch_related('layer_source')
2806 2781
2807 prj = Project.objects.get(pk = request.session['project_id']) 2782 prj = Project.objects.get(pk = request.session['project_id'])
2808 compatible_layers = prj.compatible_layerversions() 2783 compatible_layers = prj.compatible_layerversions()
@@ -2870,18 +2845,6 @@ if toastermain.settings.MANAGED:
2870 'ordericon' : _get_toggle_order_icon(request, "layer_version__layer__name"), 2845 'ordericon' : _get_toggle_order_icon(request, "layer_version__layer__name"),
2871 'orderkey' : "layer_version__layer__name", 2846 'orderkey' : "layer_version__layer__name",
2872 }, 2847 },
2873 { 'name': 'Layer source',
2874 'clclass': 'source',
2875 'qhelp': "Where the machine is coming from, for example, if it's part of the OpenEmbedded collection of machines or if it's a machine you have imported",
2876 'orderfield': _get_toggle_order(request, "layer_source__name"),
2877 'ordericon': _get_toggle_order_icon(request, "layer_source__name"),
2878 'orderkey': "layer_source__name",
2879 'filter': {
2880 'class': 'machine',
2881 'label': 'Show:',
2882 'options': map(lambda x: (x.name, 'layer_source__pk:' + str(x.id), queryset.filter(layer_source__pk = x.id).count() ), LayerSource.objects.all()),
2883 }
2884 },
2885 { 'name': 'Revision', 2848 { 'name': 'Revision',
2886 'clclass': 'branch', 2849 'clclass': 'branch',
2887 'qhelp' : "The Git branch, tag or commit. For the layers from the OpenEmbedded layer source, the revision is always the branch compatible with the Yocto Project version you selected for this project", 2850 'qhelp' : "The Git branch, tag or commit. For the layers from the OpenEmbedded layer source, the revision is always the branch compatible with the Yocto Project version you selected for this project",