On Tue, 10 Sep 2019 at 13:56, Zheng, Ruoqin <[email protected]>
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
--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core