[OE-core] [PATCH 33/33] kernel.bbclass: Add PACKAGE_WRITE_DEPS for postinst

Robert Yang liezhi.yang at windriver.com
Thu Feb 16 08:04:37 UTC 2017


On 01/20/2017 06:53 AM, Richard Purdie wrote:
> From: Jussi Kukkonen <jussi.kukkonen at intel.com>
>
> The depmodwrapper dependency is not actually used by the class but
> anyone using pkg_postinst_kernel-base() will need it.
>
> Signed-off-by: Jussi Kukkonen <jussi.kukkonen at intel.com>
> ---
>  meta/classes/kernel.bbclass | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
> index 3630042..f462b2f 100644
> --- a/meta/classes/kernel.bbclass
> +++ b/meta/classes/kernel.bbclass
> @@ -1,7 +1,8 @@
>  inherit linux-kernel-base kernel-module-split
>
>  PROVIDES += "virtual/kernel"
> -DEPENDS += "virtual/${TARGET_PREFIX}binutils virtual/${TARGET_PREFIX}gcc kmod-native depmodwrapper-cross bc-native lzop-native"
> +DEPENDS += "virtual/${TARGET_PREFIX}binutils virtual/${TARGET_PREFIX}gcc kmod-native bc-native lzop-native"
> +PACKAGE_WRITE_DEPS += "depmodwrapper-cross virtual/update-alternatives-native"

do_deploy depends depmodwrapper-cross, so this patch may cause do_deploy failed:

run.do_deploy.27809: line 155: depmodwrapper: command not found

I will send a patch to fix the issue.

// Robert

>
>  S = "${STAGING_KERNEL_DIR}"
>  B = "${WORKDIR}/build"
>



More information about the Openembedded-core mailing list