git apply 用法 - Linux

Hedwig avatar
By Hedwig
at 2015-06-09T21:33

Table of Contents

https://github.com/fenrus75/powertop

Build PowerTop for Android LollyPop
------------------------------------

1. Obtain pciutils and ncurses libraries.
Skip this step if they are already in the tree.

pciutils: Clone
https://github.com/trevd/android_external_pciutils
into external/pciutils

ncurses: Clone
https://github.com/cvpcs/android_external_libncurses
into external/ncurses

2. Run
./src/csstoh.sh src/powertop.css src/css.h
to generate the css.h header file.

3. Apply patches inside patches/Android

4. PowerTop can be built with top level make,
or by doing "mm".


我想編譯android 版本 powertop , 發現需要去 Apply patches

我使用 git apply update_androidmk.patch 不過沒改變裡面 diff 內容

請問要怎麼解決這問題?

謝謝

--
Tags: Linux

All Comments

Yuri avatar
By Yuri
at 2015-06-14T14:54
patch內容沒跟上專案的目錄結構與檔案內容之最新狀態
Todd Johnson avatar
By Todd Johnson
at 2015-06-19T07:40
你可能要看著patch內容手動一個一個改了 Orz...
Charlie avatar
By Charlie
at 2015-06-19T12:05
幫你改了patch,我只確定可以build過,給你參考一下:
Rae avatar
By Rae
at 2015-06-19T19:12
https://gist.github.com/
goldie-lin/ee1e656b2e31da85b444
Hardy avatar
By Hardy
at 2015-06-24T06:48
啊…請自行把連結接成一行= =|||

各位在 Linux 玩遊戲的方式

Leila avatar
By Leila
at 2015-06-09T16:47
這篇古文被我找到一些問題的解法了,所以來分享 原文吃部分 ※ 引述《willy69wu31 (小小吳)》之銘言: : 1. Steam on OpenSUSE 13.1 - Counter Strike: Source : 可執行,但是整個遊戲的所有物體全都是黑色貼圖。 : https://i.imgur ...

試問簡單、方便、快速的桌面環境

Mary avatar
By Mary
at 2015-06-09T03:14
小弟使用 Linux 大約 1 年左右 筆電環境:Debian Jessie + KDE 桌電環境:Debian Jessie + LXDE 用過的桌面環境只有 LXDE 、KDE 與 GNOME ( GNOME 沒用多久我就改用 KDE 了,因為朋友推薦,所以其實對 GNOME 沒什麼心得 ) ...

ffmpeg轉檔

Valerie avatar
By Valerie
at 2015-06-09T00:10
有兩個影片,A,B。 想把影片B的格式轉成跟A一樣,請問ffmpeg參數該如何下? 用mediainfo觀看A的各式如下: http://i.imgur.com/jRWX8zm.jpg B的mediainfo內容如下: http://i.imgur.com/FdX7X8X.jpg 感謝。 -- Sen ...

Chrome Bug 該如何解決?

Michael avatar
By Michael
at 2015-06-07T21:42
如題 當我執行當我執行Chrome時,都會出現: rootatslax:/# /opt/google/chrome/google-chrome [1:1:0607/213351:ERROR:nacl_fork_delegate_linux.cc(314)] Bad NaCl helper startup ac ...

ubuntu use entire disk 安裝lvm作raid

Una avatar
By Una
at 2015-06-07T19:39
不好意思,想請教一下各位板友 如果我在安裝ubuntu 14.04的時候是選擇 guided - use entire disk 現在需要用LVM作成軟體RAID的話 需要怎麼作呢? 有板友有這樣的經驗嗎? - ...