[OE-core] [PATCH] rpm: make rpm work in toolchain.

Alexander Kanavin alex.kanavin at gmail.com
Tue Sep 10 13:18:08 UTC 2019


On Tue, 10 Sep 2019 at 13:56, Zheng, Ruoqin <zhengrq.fnst at cn.fujitsu.com>
wrote:

> 3. Actually, my first plan  is to write ${MACHINE_ARCH} in toolchain, but
> it was rejected
>
> +++ b/meta/classes/toolchain-scripts.bbclass
>
> @@ -101,6 +101,7 @@ toolchain_shared_env_script () {
>
>         echo 'export CPPFLAGS="${TARGET_CPPFLAGS}"' >> $script
>
>         echo 'export KCFLAGS="--sysroot=$SDKTARGETSYSROOT"' >> $script
>
>         echo 'export OECORE_DISTRO_VERSION="${DISTRO_VERSION}"' >> $script
>
> +       echo 'export MACHINE_ARCH=${MACHINE_ARCH}' >> $script
>
>         echo 'export OECORE_SDK_VERSION="${SDK_VERSION}"' >> $script
>
>
>
> I guess if it can work, maybe post-relocate-setup.d/ facility will be
> usefull.
>

What I would like to avoid is placing rpm-specific things into SDK recipes
that have nothing to do with rpm. So please investigate
post-relocate-setup.d/, and if it is not good enough, we can perhaps extend
it.

Alex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20190910/447353bc/attachment.html>


More information about the Openembedded-core mailing list