[OE-core] [PATCH][master&fido] image.bbclass: Disable USE_DEPMOD for the dummy kernel

Khem Raj raj.khem at gmail.com
Sun Aug 16 08:02:15 UTC 2015


> On Jun 23, 2015, at 12:22 PM, Saul Wold <sgw at linux.intel.com> wrote:
> 
> The image bbclass will try to find the kernel-abiversion file which is not part
> of the linux-dummy kernel since there is no actual kernel. In this case using
> depmod also does not make sense since there should not be any kernel module built.
> 
> [YOCTO #7884]
> 
> Signed-off-by: Saul Wold <sgw at linux.intel.com>
> ---
> meta/classes/image.bbclass | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass
> index 01f8b3f..be245e9 100644
> --- a/meta/classes/image.bbclass
> +++ b/meta/classes/image.bbclass
> @@ -66,7 +66,7 @@ PACKAGE_INSTALL_ATTEMPTONLY ?= "${FEATURE_INSTALL_OPTIONAL}"
> EXCLUDE_FROM_WORLD = "1"
> 
> USE_DEVFS ?= "1"
> -USE_DEPMOD ?= "1"
> +USE_DEPMOD ?= '${@oe.utils.conditional("PREFERRED_PROVIDER_virtual/kernel", "linux-dummy", "0", "1", d)}’
> 

this is an abstraction, it should work on more general metadata then just OE-Core,
using hardcoded recipe names doesn't sound right here. Richard’s suggestion on
finding the .ko’s is generic, which should be the better and generic solution.


> PID = "${@os.getpid()}"
> 
> --
> 2.1.0
> 
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core at lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 204 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20150816/d8850e9d/attachment-0002.sig>


More information about the Openembedded-core mailing list