inheirt multi bbclass using variable
I'm trying to inherit multi bbclass using variable:
IMAGE_EXTRA_CLASSES = "image-timezone image-clearboot image-prd" inherit ${IMAGE_EXTRA_CLASSES}
and got error:
ERROR: Could not inherit file classes/image-timezone image-clearboot image-prd.bbclass
why it treat the variable as a single class?
how to resolve the problem?
thanks!
Signature · 3 lines
Yi Qingliang [email protected] https://niqingliang2003.wordpress.com
Quoted 11 lines · Ni Qingliang
I'm trying to inherit multi bbclass using variable:
IMAGE_EXTRA_CLASSES= "image-timezone image-clearboot image-prd" inherit ${IMAGE_EXTRA_CLASSES}and got error:
ERROR: Could not inherit file classes/image-timezone image-clearboot image-prd.bbclasswhy it treat the variable as a single class?
how to resolve the problem?
There are some issues with inherit. I've seen a similar issue with:
IMAGE_EXTRA_CLASSES = ""
inherit ${IMAGE_EXTRA_CLASSES}
ERROR: Could not inherit file classes/.bbclass
I'd suggest filing a bug against bitbake unless someone else has some advice here.
-M
Quoted 13 lines · On Sun, Dec 11, 2011 at 4:45 PM, McClintock Matthew-B29882…
Quoted 11 lines · Ni Qingliang
I'm trying to inherit multi bbclass using variable:
IMAGE_EXTRA_CLASSES= "image-timezone image-clearboot image-prd" inherit ${IMAGE_EXTRA_CLASSES}and got error:
ERROR: Could not inherit file classes/image-timezone image-clearboot image-prd.bbclasswhy it treat the variable as a single class?
how to resolve the problem?
Quoted 6 lines
There are some issues with inherit. I've seen a similar issue with:
IMAGE_EXTRA_CLASSES= ""
inherit ${IMAGE_EXTRA_CLASSES}ERROR: Could not inherit file classes/.bbclass
To be fair, in this case, it's doing exactly what you told it to do -- inherit an empty string.
Signature · 1 line
Christopher Larson
Quoted 9 lines · Chris Larson
Quoted 6 lines
There are some issues with inherit. I've seen a similar issue with:
IMAGE_EXTRA_CLASSES= ""
inherit ${IMAGE_EXTRA_CLASSES}ERROR: Could not inherit file classes/.bbclass
To be fair, in this case, it's doing exactly what you told it to do -- inherit an empty string.
To clarify, my case was more like this:
IMAGE_EXTRA_CLASSES = "${SOME_CFG_VAR}"
inherit some_class.bbclass ${IMAGE_EXTRA_CLASSES}
-M
Quoted 5 lines · On Sun, Dec 11, 2011 at 4:13 PM, McClintock Matthew-B29882…
To clarify, my case was more like this:
IMAGE_EXTRA_CLASSES= "${SOME_CFG_VAR}"
inherit some_class.bbclass ${IMAGE_EXTRA_CLASSES}
I think you are expecting C like behavour where variables/macros are expanded before keywords
Quoted 7 lines · Khem Raj
Quoted 4 lines
To clarify, my case was more like this:
IMAGE_EXTRA_CLASSES= "${SOME_CFG_VAR}"
inherit some_class.bbclass ${IMAGE_EXTRA_CLASSES}I think you are expecting C like behavour where variables/macros are expanded before keywords
Does that mean this would work:
IMAGE_EXTRA_CLASSES := "${SOME_CFG_VAR}"
inherit some_class.bbclass ${IMAGE_EXTRA_CLASSES}
I just assumed if ${IMAGE_EXTRA_CLASSES} was blank the above inherit would work.
-M