Chinaunix首页 | 论坛 | 博客
  • 博客访问: 78395
  • 博文数量: 9
  • 博客积分: 295
  • 博客等级: 一等列兵
  • 技术积分: 222
  • 用 户 组: 普通用户
  • 注册时间: 2012-07-14 08:30
文章分类
文章存档

2013年(1)

2012年(8)

我的朋友

分类: LINUX

2012-08-04 16:01:19

$ git am ../kernel_imx.git/0044-ENGR00162593-1-MX53-RTC-fix-alarm-can-t-wake-up-syst.patch
Applying: ENGR00162593-1 MX53 RTC: fix alarm can't wake up system
error: patch failed: drivers/mfd/da9052-core.c:310
error: drivers/mfd/da9052-core.c: patch does not apply
Patch failed at 0001 ENGR00162593-1 MX53 RTC: fix alarm can't wake up system
When you have resolved this problem run "git am --resolved".
If you would prefer to skip this patch, instead run "git am --skip".
To restore the original branch and stop patching run "git am --abort".

$ git apply --reject ../kernel_imx.git/0044-ENGR00162593-1-MX53-RTC-fix-alarm-can-t-wake-up-syst.patch
Checking patch drivers/mfd/da9052-core.c...
error: while searching for:
}

/* Collect all events */
for (cnt = 0; cnt < 4; cnt++)
events_sts |= (eve_data[cnt].data << (8 * cnt));

/* Check if we really got any event */
if (events_sts == 0) {

error: patch failed: drivers/mfd/da9052-core.c:310
Checking patch drivers/rtc/rtc-da9052.c...
Applying patch drivers/mfd/da9052-core.c with 1 rejects...
Hunk #1 applied cleanly.
Rejected hunk #2.
Applied patch drivers/rtc/rtc-da9052.c cleanly.


$ git status
# On branch fsl
# Your branch is ahead of 'origin/lanke' by 43 commits.
#
# Changed but not updated:
#   (use "git add ..." to update what will be committed)
#   (use "git checkout -- ..." to discard changes in working directory)
#
# modified:   drivers/mfd/da9052-core.c
# modified:   drivers/rtc/rtc-da9052.c
#
# Untracked files:
#   (use "git add ..." to include in what will be committed)
#
# drivers/mfd/da9052-core.c.rej
no changes added to commit (use "git add" and/or "git commit -a")


根据drivers/mfd/da9052-core.c.rej手动解决冲突的代码。
然后git add 修改好的代码,执行git am --resolved完成


生成patch:

git format-patch origin/fsl..fsl -o 生成patch所放的目录

阅读(2761) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~