于 14-1-26 下午4:54, wenzong....@windriver.com 写道:
> From: Wenzong Fan <wenzong....@windriver.com>
> 
> It includes build host path, this does not work on target.
> 
> Signed-off-by: Wenzong Fan <wenzong....@windriver.com>
> ---
>   recipes-security/refpolicy/refpolicy_common.inc |    4 ++++
>   1 file changed, 4 insertions(+)
> 
> diff --git a/recipes-security/refpolicy/refpolicy_common.inc 
> b/recipes-security/refpolicy/refpolicy_common.inc
> index a71c5dd..6bf7830 100644
> --- a/recipes-security/refpolicy/refpolicy_common.inc
> +++ b/recipes-security/refpolicy/refpolicy_common.inc
> @@ -109,4 +109,8 @@ EOF
>   
>       # install policy headers
>       oe_runmake install-headers DESTDIR=${D}
> +
> +     # Fix symbol link policy.kern
> +     link_path=`readlink -f 
> ${D}${sysconfdir}/selinux/${POLICY_NAME}/modules/active/policy.kern`
> +     ln -sf ../../policy/`basename $link_path` 
> ${D}${sysconfdir}/selinux/${POLICY_NAME}/modules/active/policy.kern
>   }
> 

Change you commit message to:

    refpolicy: fix new symlink for policy.kern

    New 2.2 release of libsemanage removes policy.kern and replace with
    symlink from Dan Walsh. It is a host path while cross-compiling, so
    fix this path.

And merge. Thanks:)

-- 
- Pascal
_______________________________________________
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto

Reply via email to