How to use externalsrc in S32G BSP44

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

How to use externalsrc in S32G BSP44

跳至解决方案
186 次查看
GG0712
Contributor III

Hi NXP team,

 

When using externalsrc , how do I include the configs and patches from meta-alb-bsp?

 

I want to build u-boot and Linux from local sources, rather than using the upstream BSP44 sources.

I created my own Yocto metalayer and added bbappend files for u-boot and Linux.

linux-s32_6.6.bbappend

inherit externalsrc EXTERNALsrc="${TOPDIR}/../sources/project/linux" EXTERNALSRC_BUILD = "${B}" # Our custom defconfig FILESEXTRAPATHS:prepend := "${THISDIR}/linux-s32:"

DELTA_KERNEL_DEFCONFIG:append:s32g = "${@bb.utils.contains('DISTRO_FEATURES', 'custom', ' custom.cfg', '', d)}"

The configs or patchs in meta-alb-bsp will not include during building

Below are Yocto externalsrc explanation (link)

5.36 externalsrc
The externalsrc class supports building software from source code that is external to the OpenEmbedded build system.
Building software from an external source tree means that the build system’s normal fetch, unpack, and patch process is not used.

 

Thanks

0 项奖励
回复
1 解答
161 次查看
Joey_z
NXP Employee
NXP Employee

Hi,GG0712

Thank you for contacting us.

We suggest that you refer to the S32Gx_LinuxBSP_44.0_User_Manual.pdf manual for development.

If you use externalsrc, you can try to incorporate the relevant patches from meta-alb-bsp into your local source code.

BR

Joey

在原帖中查看解决方案

0 项奖励
回复
1 回复
162 次查看
Joey_z
NXP Employee
NXP Employee

Hi,GG0712

Thank you for contacting us.

We suggest that you refer to the S32Gx_LinuxBSP_44.0_User_Manual.pdf manual for development.

If you use externalsrc, you can try to incorporate the relevant patches from meta-alb-bsp into your local source code.

BR

Joey

0 项奖励
回复