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

Zheng, Ruoqin zhengrq.fnst at cn.fujitsu.com
Mon Aug 12 03:26:01 UTC 2019


Hi

Sorry, I have missed the previous mail. So please ignore this mail. I will think about a new way to fix this problem.

--------------------------------------------------
Zheng Ruoqin
Nanjing Fujitsu Nanda Software Tech. Co., Ltd.(FNST)
ADDR.: No.6 Wenzhu Road, Software Avenue,
       Nanjing, 210012, China
MAIL : zhengrq.fnst at cn.fujistu.com


> -----Original Message-----
> From: Zheng, Ruoqin/郑 若钦
> Sent: Monday, August 12, 2019 11:15 AM
> To: openembedded-core at lists.openembedded.org
> Cc: Zheng, Ruoqin/郑 若钦 <zhengrq.fnst at cn.fujitsu.com>
> Subject: [OE-core][PATCH v2] toolchain-scripts: make rpm work in toolchain
> 
> Rpm need to read the arch info, but $script did not provide it, so add it.
> 
> Signed-off-by: Zheng Ruoqin <zhengrq.fnst at cn.fujitsu.com>
> ---
>  meta/classes/toolchain-scripts.bbclass | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/meta/classes/toolchain-scripts.bbclass b/meta/classes/toolchain-
> scripts.bbclass
> index 1a2ec4f3b2..de50b7ec69 100644
> --- a/meta/classes/toolchain-scripts.bbclass
> +++ 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
>  	echo 'export ARCH=${ARCH}' >> $script
>  	echo 'export CROSS_COMPILE=${TARGET_PREFIX}' >> $script
> --
> 2.17.1





More information about the Openembedded-core mailing list