그냥 작업하다 에러가 발생해서 삽질 결과 올립니다.
에러1
build/core/Makefile:19: warning: ignoring old commands for target `out/target/product/sholes/system/etc/gps.conf'
No private recovery resources for TARGET_DEVICE
해결
$ make clean
$ make ota package
$ make
에러 2
private static <T extends android.app.Activity & PassFailActivity>
해결 1
openSDK를 사용중일 경우 sunSDK를 새로 다운받으면 해결.
기본적으로 Ubuntu에 설치되어있는 SDK는 OpenSDK를 사용하고 있으니 새로 받으라고 하네요.
해결 2
위의 방법으로 안될경우 아래 부분을 주석처리하면 됩니다.
// android/cts/Android.mk
#include cts/CtsTestCoverage.mk
#include $(call all-subdir-makefiles)
.
에러1번은 잘 모르겠는데, 에러2는 환경설정 문제인것 같네요.
http://source.android.com/source/initializing.html에 보면
JDK 6 if you wish to build Gingerbread or newer; JDK 5 for Froyo or older. You can download both from java.sun.com.
이라고 나와있네요.