make clobber的功能是把上一次make命令生成的文件或目录清除掉
$ make clobber
------------------
$ fastboot devices
// list devices
---------------------------------------------------------------------------------------------
$ fastboot oem unlock
$ adb reboot bootloader
$ lunch
//then choose device
$ make -j2
// a long time to finish make
$ fastboot flashall -w
//flash rom and reboot automatically
error: neither -p product specified nor ANDROID_PRODUCT_OUT set
$ export ANDROID_PRODUCT_OUT= ..../out/target/product/< dir >
// check ..../out/target/product/< dir >
---------------------------------------------
如果不指定branch的话,下载30G往上。 这里用的是2.3.6, 最后WORK_DIR 14G
$ repo init -u https://android.googlesource.com/platform/manifest -b android-2.3.6_r1
-----------------------------------------------------------------
启动emulator 错误,指定参数即可
sahwn@EP43:~/workdir$ emulator
emulator: ERROR: bad workspace: cannot find prebuilt kernel in: /home/sahwn/workdir/prebuilts/qemu-kernel/arm/kernel-qemu
sahwn@EP43:~/workdir$ emulator -kernel prebuilt/android-a