打android的patch
16lz
2021-01-23
How to download the android kernel
由于目前从android网站git后的源代码中不包括kernel,所以需要单独下载
android kernel,生成使用的补丁,下面是我使用的方法,供大家参考;
Here is a way of extracting raw Android patches at a certain point in
time, though this may be dated
[email protected]:/data/android/android-kernel$
git clone git://android.git.kernel.org/kernel/common.git android-kernel
[email protected]:/data/android/android-kernel$
cd android-kernel
[email protected]:/data/android/android-kernel$
git checkout --track -b android-2.6.32 origin/android-2.6.32
[email protected]:/data/android/android-kernel$
git fetch --tags
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-2.6.32.y.git
[email protected]:/data/android/android-kernel$
git shortlog v2.6.32.9..HEAD
[email protected]:/data/android/android-kernel$
git format-patch v2.6.32.9..HEAD
使用这个cmd后,所以的patch都在kernel目录下,我个人觉得这个管理不太好。
同理也可以打android-2.6.29的patch
git checkout android-2.6.29
git fetch --tags
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-2.6.29.y.git
git shortlog v2.6.29.6..HEAD
git format-patch v2.6.29.6..HEAD
由于目前从android网站git后的源代码中不包括kernel,所以需要单独下载
android kernel,生成使用的补丁,下面是我使用的方法,供大家参考;
Here is a way of extracting raw Android patches at a certain point in
time, though this may be dated
[email protected]:/data/android/android-kernel$
git clone git://android.git.kernel.org/kernel/common.git android-kernel
[email protected]:/data/android/android-kernel$
cd android-kernel
[email protected]:/data/android/android-kernel$
git checkout --track -b android-2.6.32 origin/android-2.6.32
[email protected]:/data/android/android-kernel$
git fetch --tags
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-2.6.32.y.git
[email protected]:/data/android/android-kernel$
git shortlog v2.6.32.9..HEAD
[email protected]:/data/android/android-kernel$
git format-patch v2.6.32.9..HEAD
使用这个cmd后,所以的patch都在kernel目录下,我个人觉得这个管理不太好。
同理也可以打android-2.6.29的patch
git checkout android-2.6.29
git fetch --tags
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-2.6.29.y.git
git shortlog v2.6.29.6..HEAD
git format-patch v2.6.29.6..HEAD
更多相关文章
- Android 5.1源代码与Nexus设备工厂镜像下载
- Android 自音乐播放器源代码
- [1] Android主要源代码组成
- Android 实例子源代码文件下载地址380个合集
- Android 近百个项目的源代码,覆盖Android开发的每个领域
- Android 源代码结构
- android系统中“关于设备”中android版本和android安全补丁信息
- [置顶] Android 各类功能效果源代码集合