aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-kernel/linux/linux-mfgtool.inc
diff options
context:
space:
mode:
authorOtavio Salvador <otavio@ossystems.com.br>2018-08-22 21:58:39 -0300
committerOtavio Salvador <otavio@ossystems.com.br>2018-08-22 22:03:16 -0300
commit1771ffdaec3c2ff8602d7896690abd9f0ac250da (patch)
tree28cc0e8ed5166e7247893fb7f699fd16b955bada /recipes-kernel/linux/linux-mfgtool.inc
parent2c6f7ae9a89508a22a4b6010733e678b48ae5c1a (diff)
downloadmeta-freescale-1771ffdaec3c2ff8602d7896690abd9f0ac250da.tar.gz
meta-freescale-1771ffdaec3c2ff8602d7896690abd9f0ac250da.tar.bz2
meta-freescale-1771ffdaec3c2ff8602d7896690abd9f0ac250da.zip
linux-mfgtool.inc: This reduce the extender class
This removes duplicated code from the extender class and instead calls the parent's code. Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> (cherry picked from commit 801658c710e3a59ce9dc8d5fa892f1865071fc94)
Diffstat (limited to 'recipes-kernel/linux/linux-mfgtool.inc')
-rw-r--r--recipes-kernel/linux/linux-mfgtool.inc13
1 files changed, 2 insertions, 11 deletions
diff --git a/recipes-kernel/linux/linux-mfgtool.inc b/recipes-kernel/linux/linux-mfgtool.inc
index 915090dc..dc06c541 100644
--- a/recipes-kernel/linux/linux-mfgtool.inc
+++ b/recipes-kernel/linux/linux-mfgtool.inc
@@ -52,18 +52,9 @@ python () {
class LinuxMfgToolExtender(ClassExtender):
def extend_name(self, name):
- if name.startswith("rtld"):
- return name
- if name.endswith("-" + self.extname):
- name = name.replace("-" + self.extname, "")
- if name.startswith("virtual/"):
- subs = name.split("/", 1)[1]
- if not subs.startswith(self.extname):
- return "virtual/" + self.extname + "-" + subs
- return name
- if not name.startswith(self.extname):
+ if name.startswith("kernel-"):
return self.extname + "-" + name
- return name
+ return super().extend_name(name)
clsextend = LinuxMfgToolExtender("mfgtool", d)
clsextend.rename_packages()