タグ

2012年3月9日のブックマーク (2件)

  • Building for devices | Android Open Source

    Building for devices This page complements the main page about Building with information that is specific to individual devices. The only supported devices are Nexus S, a.k.a. "crespo", and Nexus S 4G, a.k.a. "crespo4g". Nexus S is the recommended device to use with the Android Open-Source Project. Nexus One a.k.a. "passion" is experimentatal and unsupported. Android Developer Phones (ADP1 and ADP

    cknbstr
    cknbstr 2012/03/09
    ubuntu10.11のサンプル Galaxy nexus (product target: maguro) # bootloader起動(VolKey同時押し+電源ボタン 起動でも可) $ sudo adb reboot bootloader # 自前でビルドしたイメージに差し替え $ sudo env ANDROID_PRODUCT_OUT=/path/to/src/out/target/product/maguro fastboot -w
  • 普通のpatchコマンドで取り込めるdiffファイルをgitで作成する - kanonji’s diary

    まとめ $ git diff --no-prefix HEAD~ > thisis.patch $ patch --dry-run -p0 < thisis.patch $ patch -p0 < thisis.patch git diffに--no-prefixをつける事で、普通のpatchで当てられるパッチファイルを出力できます。この例ではHEADの1個前*1からHEAD*2までのパッチです。 普通のpatchコマンドのほうの知識があまり無くて-p0がいまいちよく分からないんですが、git diff --no-prefixで作成したパッチファイルを当てるには必要みたいです。--dry-runは、実際には当てないけど当てた場合の結果を出力します。なので、まずは--dry-runで確認して、問題が無ければ実際にパッチを当てます。 エントリー書いた後に教えてもらった補足 patch -p1の

    普通のpatchコマンドで取り込めるdiffファイルをgitで作成する - kanonji’s diary
    cknbstr
    cknbstr 2012/03/09
    $ git diff --no-prefix HEAD~ > thisis.patch $ patch --dry-run -p0 < thisis.patch $ patch -p0 < thisis.patch