最終更新:2015-08-26 (水) 21:23:49 (3165d)  

AOSP/build/envsetup.sh
Top / AOSP / build / envsetup.sh

Invoke ". build/envsetup.sh" from your shell to add the following functions to your environment:

  • シェルスクリプトの関数が幾つか定義されている。

追加されるコマンド

  • croot? - Androidのソースコードのトップディレクトリに移動する
  • m - ツリー構造の先頭からMakeを実行する
  • mm - カレントディレクトリのモジュールをすべてビルドする
  • mmm? - 引数で与えたディレクトリのモジュールをすべてビルドする
  • cgrep? - C/C++ファイルに対してgrepを行う
  • jgrep? - Javaファイルに対してgrepを行う
  • resgrep? - res/*.xmlファイルに対してgrepを行う
  • godir? - 該当するファイルが含まれているディレクトリに移動する

その他

メモ

  • sourceで読み込んでからhelpすると関数一覧が表示される。
  • Look at the source to view more functions. The complete list is:

vendorsetup.sh

# Execute the contents of any vendorsetup.sh files we can find.
for f in `/bin/ls vendor/*/vendorsetup.sh vendor/*/*/vendorsetup.sh device/*/*/vendorsetup.sh 2> /dev/null`
do
    echo "including $f"
    . $f
done

android-5.1.1_r1

  • including
    • AOSP/device/htc/flounder/vendorsetup.sh?
    • AOSP/device/generic/mini-emulator-x86_64/vendorsetup.sh?
    • AOSP/device/generic/mini-emulator-armv7-a-neon/vendorsetup.sh?
    • AOSP/device/generic/mini-emulator-mips/vendorsetup.sh?
    • AOSP/device/generic/mini-emulator-x86/vendorsetup.sh?
    • AOSP/device/generic/mini-emulator-arm64/vendorsetup.sh?
    • AOSP/device/moto/shamu/vendorsetup.sh?
    • AOSP/device/asus/fugu/vendorsetup.sh?
    • AOSP/device/asus/flo/vendorsetup.sh?
    • AOSP/device/asus/deb/vendorsetup.sh?
    • AOSP/device/asus/tilapia/vendorsetup.sh?
    • AOSP/device/asus/grouper/vendorsetup.sh?
    • AOSP/device/lge/mako/vendorsetup.sh?
    • AOSP/device/lge/hammerhead/vendorsetup.sh?
    • AOSP/device/samsung/manta/vendorsetup.sh?
    • AOSP/sdk/bash_completion/adb.bash?

関連

参考