如何将补丁应用到 Buildroot 中的包? [英] How to apply patches to a package in Buildroot?

查看:28
本文介绍了如何将补丁应用到 Buildroot 中的包?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个嵌入式系统,该系统使用 buildroot 作为构建内核和根文件系统的工具.我想给这个内核源代码树打一些补丁,有人能告诉我 buildroot 是怎么打补丁的吗?

I am working on an embedded system that uses buildroot as a tool for building the kernel and the root filesystem. I want to apply some patches to this kernel source tree, Can somebody tell me how buildroot apply patches?

推荐答案

在研究了 buildroot 架构后,我开始知道 buildroot 使用 quilt 工具来应用补丁.quilt 跟踪名为series"的文件中的所有补丁,该文件位于patches"目录中.您必须将补丁保存在此目录中.并按照您希望应用补丁的顺序在系列文件中添加您的补丁条目,将首先应用的补丁保持在顶部.

After studying the buildroot architecture, I came to know that buildroot uses quilt tool for applying the patches. quilt keeps track of all the patches in the a file named "series" which is present in the "patches" directory. You have to keep your patches in this directory. And add your entry of patches in the series file in the order in which you want the patches to be applied keeping the patch to be applied first at the top.

这样当您运行 buildroot 生成文件时,它会自动应用系列文件中列出的补丁.

This way when you will run the buildroot makefile, it will automatically apply the patches listed in the series file.

这篇关于如何将补丁应用到 Buildroot 中的包?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆