]> code.ossystems Code Review - openembedded-core.git/commitdiff
bootimg: Remove now unnecessary dummy inherit usage
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 6 Dec 2012 11:36:39 +0000 (11:36 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 7 Dec 2012 17:09:23 +0000 (17:09 +0000)
bitbake now supports empty expansions for inherit usage so we can simplify
these statements.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/bootimg.bbclass
meta/classes/dummy.bbclass [deleted file]

index 11a29cdf2bc42d1cb7b5c0cb567fe4908f124a38..17c329a142eea6876db4f2bb5ebeeb08e5b58e97 100644 (file)
@@ -36,7 +36,7 @@ BOOTIMG_VOLUME_ID   ?= "boot"
 BOOTIMG_EXTRA_SPACE ?= "512"
 
 EFI = "${@base_contains("MACHINE_FEATURES", "efi", "1", "0", d)}"
-EFI_CLASS = "${@base_contains("MACHINE_FEATURES", "efi", "grub-efi", "dummy", d)}"
+EFI_CLASS = "${@base_contains("MACHINE_FEATURES", "efi", "grub-efi", "", d)}"
 
 # Include legacy boot if MACHINE_FEATURES includes "pcbios" or if it does not
 # contain "efi". This way legacy is supported by default if neither is
@@ -50,7 +50,7 @@ def pcbios(d):
 def pcbios_class(d):
     if d.getVar("PCBIOS", True) == "1":
         return "syslinux"
-    return "dummy"
+    return ""
 
 PCBIOS = "${@pcbios(d)}"
 PCBIOS_CLASS = "${@pcbios_class(d)}"
diff --git a/meta/classes/dummy.bbclass b/meta/classes/dummy.bbclass
deleted file mode 100644 (file)
index 8c30071..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-# An empty bbclass to facilitate dynamic inherit, include,
-# and require statements.