《yocto》 repo 上传原厂代码

一:简介:

repo是管理代码的工具,通过xml文件管理一个项目中的所有git,下面介绍一下怎么传原厂代码到自己服务器。分为四个方面:
1.nxp原厂代码下载
2.上传repo中git到服务器
3.上传管理git xml文件
4.拉取上传代码,编译验证

注意:下面以nxp 代码为例,区分不同代码需要更改revision:项目名-系统-日期-原厂版本区分(revision: imx8mini-yocto-20211209-imx-5.10.9-1.0.0)

二:nxp原厂代码下载

$ repo init -u https://source.codeaurora.org/external/imx/imx-manifest
-b imx-linux-gatesgarth -m imx-5.10.9-1.0.0.xml
在这里插入图片描述
repo sync -c -j10 检出代码,可以看到检出764个git

三:上传repo中git到服务器

1>准备:

cp imx-5.10.9-1.0.0.xml imx-5.10.9-1.0.0.xml-bak
sed -i ‘s/upstream="(.)"//g’ imx-5.10.9-1.0.0.xml
sed -i 's/revision="(.
)"//g’ imx-5.

### Yocto Project Git Repository Overview The Yocto Project utilizes a series of repositories hosted on the official website, which can be accessed through specific URLs provided by the community[^1]. For developers interested in contributing or exploring the source code, these resources are invaluable. To access the main Yocto Project Git repository: - Visit `git://git.yoctoproject.org/poky` for Poky, which serves as the reference system used within the Yocto Project. - Additional layers and tools reside at `git://git.openembedded.org/openembedded-core`. ### Cloning the Yocto Project Repositories For those wishing to clone any of the available repositories locally, executing commands similar to the following would suffice: ```bash git clone git://git.yoctoproject.org/poky cd poky source oe-init-build-env ``` These instructions set up an environment suitable for building images using BitBake recipes found inside the cloned directory structure. ### Code Operation Guide When working with the Yocto Project's Git repositories, several best practices should be observed: - Always ensure that branches match between different components when performing builds. - Regularly update local copies from remote servers via pull requests. - Utilize tags effectively to track stable releases over time. By adhering closely to established conventions regarding branch management and updates, users minimize potential conflicts during development activities while maximizing compatibility across various versions of software packages involved in their projects.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值