All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] distrooverrides.bbclass: use IMAGE_CLASSES
@ 2022-08-16  7:54 kai.kang
  2022-08-16 14:55 ` [OE-core] " Christopher Larson
  0 siblings, 1 reply; 4+ messages in thread
From: kai.kang @ 2022-08-16  7:54 UTC (permalink / raw)
  To: openembedded-core

From: Kai Kang <kai.kang@windriver.com>

Update comment in distrooverrides.bbclass to use IMAGE_CLASSES rather
than globally with INHERIT.

Signed-off-by: Kai Kang <kai.kang@windriver.com>
---
 meta/classes-recipe/distrooverrides.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/classes-recipe/distrooverrides.bbclass b/meta/classes-recipe/distrooverrides.bbclass
index 8d9d7cda7d..b5346b465e 100644
--- a/meta/classes-recipe/distrooverrides.bbclass
+++ b/meta/classes-recipe/distrooverrides.bbclass
@@ -17,7 +17,7 @@
 #
 # The class is meant to be used in a layer.conf or distro
 # .inc file with:
-# INHERIT += "distrooverrides"
+# IMAGE_CLASSES += "distrooverrides"
 # DISTRO_FEATURES_OVERRIDES += "my-feature"
 #
 # Beware that this part of OVERRIDES changes during parsing, so usage
-- 
2.17.1



^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [OE-core] [PATCH] distrooverrides.bbclass: use IMAGE_CLASSES
  2022-08-16  7:54 [PATCH] distrooverrides.bbclass: use IMAGE_CLASSES kai.kang
@ 2022-08-16 14:55 ` Christopher Larson
  2022-08-18  1:54   ` Kai
  0 siblings, 1 reply; 4+ messages in thread
From: Christopher Larson @ 2022-08-16 14:55 UTC (permalink / raw)
  To: kai; +Cc: Patches and discussions about the oe-core layer

[-- Attachment #1: Type: text/plain, Size: 1624 bytes --]

This class functionality isn't limited to images.

On Tue, Aug 16, 2022 at 12:54 AM kai <kai.kang@windriver.com> wrote:

> From: Kai Kang <kai.kang@windriver.com>
>
> Update comment in distrooverrides.bbclass to use IMAGE_CLASSES rather
> than globally with INHERIT.
>
> Signed-off-by: Kai Kang <kai.kang@windriver.com>
> ---
>  meta/classes-recipe/distrooverrides.bbclass | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/meta/classes-recipe/distrooverrides.bbclass
> b/meta/classes-recipe/distrooverrides.bbclass
> index 8d9d7cda7d..b5346b465e 100644
> --- a/meta/classes-recipe/distrooverrides.bbclass
> +++ b/meta/classes-recipe/distrooverrides.bbclass
> @@ -17,7 +17,7 @@
>  #
>  # The class is meant to be used in a layer.conf or distro
>  # .inc file with:
> -# INHERIT += "distrooverrides"
> +# IMAGE_CLASSES += "distrooverrides"
>  # DISTRO_FEATURES_OVERRIDES += "my-feature"
>  #
>  # Beware that this part of OVERRIDES changes during parsing, so usage
> --
> 2.17.1
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#169428):
> https://lists.openembedded.org/g/openembedded-core/message/169428
> Mute This Topic: https://lists.openembedded.org/mt/93054585/3617123
> Group Owner: openembedded-core+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [
> kergoth@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
>

-- 
Christopher Larson
chris_larson@mentor.com, chris.larson@siemens.com, kergoth@gmail.com
Principal Software Engineer, Embedded Linux Solutions, Siemens Digital
Industries Software

[-- Attachment #2: Type: text/html, Size: 2822 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [OE-core] [PATCH] distrooverrides.bbclass: use IMAGE_CLASSES
  2022-08-16 14:55 ` [OE-core] " Christopher Larson
@ 2022-08-18  1:54   ` Kai
  2022-08-18 13:26     ` Richard Purdie
  0 siblings, 1 reply; 4+ messages in thread
From: Kai @ 2022-08-18  1:54 UTC (permalink / raw)
  To: Christopher Larson; +Cc: Patches and discussions about the oe-core layer

[-- Attachment #1: Type: text/plain, Size: 2066 bytes --]

On 8/16/22 22:55, Christopher Larson wrote:
> This class functionality isn't limited to images.

If not, it may need to move to classes-global. Otherwise it fails to parse:

ERROR: ParseError in configuration INHERITs: Could not inherit file 
classes/distrooverrides.bbclass


>
> On Tue, Aug 16, 2022 at 12:54 AM kai <kai.kang@windriver.com> wrote:
>
>     From: Kai Kang <kai.kang@windriver.com>
>
>     Update comment in distrooverrides.bbclass to use IMAGE_CLASSES rather
>     than globally with INHERIT.
>
>     Signed-off-by: Kai Kang <kai.kang@windriver.com>
>     ---
>      meta/classes-recipe/distrooverrides.bbclass | 2 +-
>      1 file changed, 1 insertion(+), 1 deletion(-)
>
>     diff --git a/meta/classes-recipe/distrooverrides.bbclass
>     b/meta/classes-recipe/distrooverrides.bbclass
>     index 8d9d7cda7d..b5346b465e 100644
>     --- a/meta/classes-recipe/distrooverrides.bbclass
>     +++ b/meta/classes-recipe/distrooverrides.bbclass
>     @@ -17,7 +17,7 @@
>      #
>      # The class is meant to be used in a layer.conf or distro
>      # .inc file with:
>     -# INHERIT += "distrooverrides"
>     +# IMAGE_CLASSES += "distrooverrides"
>      # DISTRO_FEATURES_OVERRIDES += "my-feature"
>      #
>      # Beware that this part of OVERRIDES changes during parsing, so usage
>     -- 
>     2.17.1
>
>
>
>
>
>
> -- 
> Christopher Larson
> chris_larson@mentor.com, chris.larson@siemens.com, kergoth@gmail.com
> Principal Software Engineer, Embedded Linux Solutions, Siemens Digital 
> Industries Software
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#169439):https://lists.openembedded.org/g/openembedded-core/message/169439
> Mute This Topic:https://lists.openembedded.org/mt/93054585/3616933
> Group Owner:openembedded-core+owner@lists.openembedded.org
> Unsubscribe:https://lists.openembedded.org/g/openembedded-core/unsub  [kai.kang@windriver.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>

-- 
Kai Kang
Wind River Linux

[-- Attachment #2: Type: text/html, Size: 4525 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [OE-core] [PATCH] distrooverrides.bbclass: use IMAGE_CLASSES
  2022-08-18  1:54   ` Kai
@ 2022-08-18 13:26     ` Richard Purdie
  0 siblings, 0 replies; 4+ messages in thread
From: Richard Purdie @ 2022-08-18 13:26 UTC (permalink / raw)
  To: kai, Christopher Larson; +Cc: Patches and discussions about the oe-core layer

On Thu, 2022-08-18 at 09:54 +0800, kai wrote:
> On 8/16/22 22:55, Christopher Larson wrote:
>  
> > This class functionality isn't limited to images.
> If not, it may need to move to classes-global. Otherwise it fails to
> parse:
> ERROR: ParseError in configuration INHERITs: Could not inherit file
> classes/distrooverrides.bbclass
> 
>  

I've moved this back to the classes directory for now until we can
decide on how it should be used. It is one of those cases where either
can work.

Cheers,

Richard


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-08-18 13:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-16  7:54 [PATCH] distrooverrides.bbclass: use IMAGE_CLASSES kai.kang
2022-08-16 14:55 ` [OE-core] " Christopher Larson
2022-08-18  1:54   ` Kai
2022-08-18 13:26     ` Richard Purdie

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.