[yocto] running task only for native but not target?
Koehler, Yannick (HP Networking)
yannick.koehler at hp.com
Fri Mar 13 04:46:20 PDT 2015
Hi Paul,
Thanks, yes that is likely to work, I will try it. I was looking for a more Yocto-like solution using the overriding stuff but it seems the overriding doesn't apply in this particular situation.
Yannick Koehler
-----Message d'origine-----
De : Paul Eggleton [mailto:paul.eggleton at linux.intel.com]
Envoyé : March-13-15 5:02 AM
À : Koehler, Yannick (HP Networking)
Cc : yocto at yoctoproject.org
Objet : Re: [yocto] running task only for native but not target?
Hi Yannick,
On Thursday 12 March 2015 19:05:13 Koehler, Yannick wrote:
> I have a package that produce a binary that I need for native, and an
> C header file that I need for target.
>
> I put the following do_install function to install appropriately the
> bin or header according to the class:
>
> do_install_append_class-target () {
> install -d ${D}${includedir}
> install -m 0755 ${S}/ifrpc.h ${D}${includedir}
> }
>
> do_install_append_class-native() {
> install -d ${D}${bindir}
> install -m 0755 ${S}/ifrpcgen ${D}${bindir}
> }
>
> but is there a way for me to disable do_patch/do_configure/do_compile
> only when building for the target? I have tried the following without success:
>
> do_configure_class-target[noexec] = "1"
> do_patch_class-target[noexec] = "1"
> do_compile_class-target[noexec] = "1"
>
> It appears the OVERRIDES do not apply here, any hint on how I can
> achieve this?
Probably the easiest way would be to just null out the tasks just for the target class i.e.
do_configure_class-target () {
:
}
Cheers,
Paul
--
Paul Eggleton
Intel Open Source Technology Centre
More information about the yocto
mailing list