diff options
author | Otavio Salvador <otavio@ossystems.com.br> | 2014-04-24 15:59:20 -0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-04-25 17:19:19 +0100 |
commit | 4c14b094985216c433d330fb3d9532d4b6c91fcf (patch) | |
tree | 6970f383436ca29450779bd98c378aae89f2e079 /meta/classes/bootimg.bbclass | |
parent | 08a38a7865c41ec60f4b993b964f8d477ea0f680 (diff) | |
download | poky-4c14b094985216c433d330fb3d9532d4b6c91fcf.tar.gz |
Globally replace 'base_contains' calls with 'bb.utils.contains'
The base_contains is kept as a compatibility method and we ought to
not use it in OE-Core so we can remove it from base metadata in
future.
(From OE-Core rev: d83b16dbf0862be387f84228710cb165c6d2b03b)
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/bootimg.bbclass')
-rw-r--r-- | meta/classes/bootimg.bbclass | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/meta/classes/bootimg.bbclass b/meta/classes/bootimg.bbclass index b13eef965d..7678567600 100644 --- a/meta/classes/bootimg.bbclass +++ b/meta/classes/bootimg.bbclass | |||
@@ -41,17 +41,17 @@ COMPRESSISO ?= "0" | |||
41 | BOOTIMG_VOLUME_ID ?= "boot" | 41 | BOOTIMG_VOLUME_ID ?= "boot" |
42 | BOOTIMG_EXTRA_SPACE ?= "512" | 42 | BOOTIMG_EXTRA_SPACE ?= "512" |
43 | 43 | ||
44 | EFI = "${@base_contains("MACHINE_FEATURES", "efi", "1", "0", d)}" | 44 | EFI = "${@bb.utils.contains("MACHINE_FEATURES", "efi", "1", "0", d)}" |
45 | EFI_PROVIDER ?= "grub-efi" | 45 | EFI_PROVIDER ?= "grub-efi" |
46 | EFI_CLASS = "${@base_contains("MACHINE_FEATURES", "efi", "${EFI_PROVIDER}", "", d)}" | 46 | EFI_CLASS = "${@bb.utils.contains("MACHINE_FEATURES", "efi", "${EFI_PROVIDER}", "", d)}" |
47 | 47 | ||
48 | # Include legacy boot if MACHINE_FEATURES includes "pcbios" or if it does not | 48 | # Include legacy boot if MACHINE_FEATURES includes "pcbios" or if it does not |
49 | # contain "efi". This way legacy is supported by default if neither is | 49 | # contain "efi". This way legacy is supported by default if neither is |
50 | # specified, maintaining the original behavior. | 50 | # specified, maintaining the original behavior. |
51 | def pcbios(d): | 51 | def pcbios(d): |
52 | pcbios = base_contains("MACHINE_FEATURES", "pcbios", "1", "0", d) | 52 | pcbios = bb.utils.contains("MACHINE_FEATURES", "pcbios", "1", "0", d) |
53 | if pcbios == "0": | 53 | if pcbios == "0": |
54 | pcbios = base_contains("MACHINE_FEATURES", "efi", "0", "1", d) | 54 | pcbios = bb.utils.contains("MACHINE_FEATURES", "efi", "0", "1", d) |
55 | return pcbios | 55 | return pcbios |
56 | 56 | ||
57 | PCBIOS = "${@pcbios(d)}" | 57 | PCBIOS = "${@pcbios(d)}" |