mirror of
https://git.yoctoproject.org/poky
synced 2026-09-13 09:49:32 +02:00
bitbake: toaster: All machines add a column to link back to machine conf
Add a column with the "path" to the machine file and add a link back to the vcs web to view the machine configuration file. (Bitbake rev: c1462c0530fe6c34ffef87bcde7a363995b503c9) Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
87074af8ce
commit
479338cc7b
@@ -538,6 +538,11 @@ class Machine(models.Model):
|
||||
name = models.CharField(max_length=255)
|
||||
description = models.CharField(max_length=255)
|
||||
|
||||
def get_vcs_machine_file_link_url(self):
|
||||
path = 'conf/machine/'+self.name+'.conf'
|
||||
|
||||
return self.layer_version.get_vcs_file_link_url(path)
|
||||
|
||||
def __unicode__(self):
|
||||
return "Machine " + self.name + "(" + self.description + ")"
|
||||
|
||||
@@ -901,7 +906,7 @@ class Layer_Version(models.Model):
|
||||
|
||||
# code lifted, with adaptations, from the layerindex-web application https://git.yoctoproject.org/cgit/cgit.cgi/layerindex-web/
|
||||
def _handle_url_path(self, base_url, path):
|
||||
import re
|
||||
import re, posixpath
|
||||
if base_url:
|
||||
if self.dirpath:
|
||||
if path:
|
||||
|
||||
Reference in New Issue
Block a user