aboutsummaryrefslogtreecommitdiffstats
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:29 -0300
commita7ebc41be1137593f0d4b6fccf799d8a8dec5e48 (patch)
treeff7108179ec2603da553cbb8fcb3e23cd80d6d99
parent8f852169f3dbd82b269726d830cda46f5330fc9e (diff)
downloadmeta-freescale-a7ebc41be1137593f0d4b6fccf799d8a8dec5e48.tar.gz
meta-freescale-a7ebc41be1137593f0d4b6fccf799d8a8dec5e48.tar.bz2
meta-freescale-a7ebc41be1137593f0d4b6fccf799d8a8dec5e48.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)
-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()