[meta-freescale] [meta-fsl-ppc 12/42] cryptodev: skip arch QA since kernel might not match for 64-bit kernels on 32-bit rfs
McClintock Matthew-B29882
B29882 at freescale.com
Wed Jan 30 14:58:56 PST 2013
Applied to master.
-M
On Wed, Jan 30, 2013 at 2:51 AM, Zhenhua Luo <zhenhua.luo at freescale.com> wrote:
> From: Yashpal Dutta <yashpal.dutta at freescale.com>
>
> Signed-off-by: Yashpal Dutta <yashpal.dutta at freescale.com>
> ---
> recipes-kernel/cryptodev/cryptodev_1.5.bb | 18 ++++++++++++++++++
> 1 file changed, 18 insertions(+)
>
> diff --git a/recipes-kernel/cryptodev/cryptodev_1.5.bb b/recipes-kernel/cryptodev/cryptodev_1.5.bb
> index 0696e2a..636bb54 100644
> --- a/recipes-kernel/cryptodev/cryptodev_1.5.bb
> +++ b/recipes-kernel/cryptodev/cryptodev_1.5.bb
> @@ -15,3 +15,21 @@ SRC_URI = "git://repo.or.cz/cryptodev-linux.git;protocol=git \
> EXTRA_OEMAKE='KERNEL_DIR="${STAGING_KERNEL_DIR}" PREFIX="${D}"'
>
> S = "${WORKDIR}/git"
> +python () {
> + ma = d.getVar("DISTRO_FEATURES", True)
> + arch = d.getVar("OVERRIDES", True)
> +
> + # the : after the arch is to skip the message on 64b
> + if not "multiarch" in ma and ("e5500:" in arch or "e6500:" in arch):
> + raise bb.parse.SkipPackage("Building the kernel for this arch requires multiarch to be in DISTRO_FEATURES")
> +
> + promote_kernel = d.getVar('BUILD_64BIT_KERNEL')
> +
> + if promote_kernel == "1":
> + d.setVar('KERNEL_CC_append', ' -m64')
> + d.setVar('KERNEL_LD_append', ' -melf64ppc')
> +
> + error_qa = d.getVar('ERROR_QA', True)
> + if 'arch' in error_qa:
> + d.setVar('ERROR_QA', error_qa.replace(' arch', ''))
> +}
> --
> 1.7.9.5
>
>
> _______________________________________________
> meta-freescale mailing list
> meta-freescale at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/meta-freescale
More information about the meta-freescale
mailing list