diff options
author | Alejandro Hernandez Samaniego <alejandro@enedino.org> | 2022-08-23 15:31:24 -0600 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-08-31 10:40:07 +0100 |
commit | 4d756897a47f3f93393fccf3d937e499d1a0333d (patch) | |
tree | 49c3d6e57f0909428e35a4a7b00571c9c80c8e09 /meta/classes-recipe/baremetal-image.bbclass | |
parent | a090aea9a7ac79e9bfc4510f15c88f05d7ef8e42 (diff) | |
download | poky-4d756897a47f3f93393fccf3d937e499d1a0333d.tar.gz |
baremetal-image.bbclass: Emulate image.bbclass to handle new classes scope
The new classes scope implemented on commit 7bd328f9d
made testimage.bbclass (and perhaps others) stop working
for baremetal-images, the expected way to run testimage
is no longer to use INHERIT but to use IMAGE_CLASSES
instead, however this functionality was not implemented in the
baremetal-image class until now.
Emulate image.bbclass allowing the baremetal-image class to
use IMAGE_CLASSES to fix this issue.
Set defaults for IMAGE_FEATURES to allow bitbake checks to
pass properly.
(From OE-Core rev: bf083929ecd69a144fedeef5a8725775f632a16c)
Signed-off-by: Alejandro Enedino Hernandez Samaniego <alejandro@enedino.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes-recipe/baremetal-image.bbclass')
-rw-r--r-- | meta/classes-recipe/baremetal-image.bbclass | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/meta/classes-recipe/baremetal-image.bbclass b/meta/classes-recipe/baremetal-image.bbclass index 3a979f2ed1..d3377a92fa 100644 --- a/meta/classes-recipe/baremetal-image.bbclass +++ b/meta/classes-recipe/baremetal-image.bbclass | |||
@@ -15,6 +15,15 @@ | |||
15 | # | 15 | # |
16 | # See meta-skeleton for a working example. | 16 | # See meta-skeleton for a working example. |
17 | 17 | ||
18 | ## Emulate image.bbclass | ||
19 | # Handle inherits of any of the image classes we need | ||
20 | IMAGE_CLASSES ??= "" | ||
21 | IMGCLASSES = " ${IMAGE_CLASSES}" | ||
22 | inherit ${IMGCLASSES} | ||
23 | # Set defaults to satisfy IMAGE_FEATURES check | ||
24 | IMAGE_FEATURES ?= "" | ||
25 | IMAGE_FEATURES[type] = "list" | ||
26 | IMAGE_FEATURES[validitems] += "" | ||
18 | 27 | ||
19 | # Toolchain should be baremetal or newlib based. | 28 | # Toolchain should be baremetal or newlib based. |
20 | # TCLIBC="baremetal" or TCLIBC="newlib" | 29 | # TCLIBC="baremetal" or TCLIBC="newlib" |