[meta-ti] [PATCH] linux-ti-staging: Work around to avoid race condition with external module

Stefan Müller-Klieser s.mueller-klieser at phytec.de
Mon Dec 14 04:06:38 PST 2015


Hi,

this work around introduces another race condition, as you have to make
sure every external module recipe depends on do_compile_kernelmodules, 
and not shared_workdir.

Regards,
Stefan


On 14.12.2015 12:47, Sam Nelson wrote:
> - Currently there is an issue with compiling external kernel module
> which depends on symbols from another kernel module which is part of the
> list of modules configured to be built as modules in the default config.
> - This work around allows to avoid the issue by copying the module
> symbols to the kernel directory after making the kernel modules build.
> - This issue is already fixed in oe-core: master branch as of date
> - This is just work around before updating to latest oe-core
>
> Signed-off-by: Sam Nelson <sam.nelson at ti.com>
> ---
>   recipes-kernel/linux/linux-ti-staging_3.14.bb | 4 ++++
>   1 file changed, 4 insertions(+)
>
> diff --git a/recipes-kernel/linux/linux-ti-staging_3.14.bb b/recipes-kernel/linux/linux-ti-staging_3.14.bb
> index 54530e4..88950ae 100644
> --- a/recipes-kernel/linux/linux-ti-staging_3.14.bb
> +++ b/recipes-kernel/linux/linux-ti-staging_3.14.bb
> @@ -65,3 +65,7 @@ KERNEL_GIT_PROTOCOL = "git"
>   SRC_URI += "${KERNEL_GIT_URI};protocol=${KERNEL_GIT_PROTOCOL};branch=${BRANCH} \
>               file://defconfig \
>              "
> +
> +do_compile_kernelmodules_append() {
> +	cp Module.symvers ${STAGING_KERNEL_BUILDDIR}/
> +}
>


More information about the meta-ti mailing list