Starting from scratch with a fresh 9.10 Ubuntu build I follow the
instructions at:
http://source.android.com/download
for 32 bit Linux.
If I repo init with no -b tag, and get to the make step and "sudo
make" the build is successful and the BUILD_ID=Donut.
It starts out like:
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=1.6
TARGET_PRODUCT=generic
TARGET_BUILD_VARIANT=eng
TARGET_SIMULATOR=
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm
HOST_ARCH=x86
HOST_OS=linux
HOST_BUILD_TYPE=release
BUILD_ID=Donut
============================================
This is all good and dandy, but I want to build cupcake, not donut.
From this group and other internet resources I understand I should:
$ repo init ... -b cupcake
I have tried this with multiple clean builds of my machine, following
all the steps in the download page above and always end with the same
problem. I can substitute android-1.5 for cupcake and get the same
result.
After the repo sync (hours of downloading) completes successfully, I
run:
$ sudo make
This gets me:
build/core/
product_config.mk:261: WARNING: adding test OTA key
============================================
TARGET_PRODUCT=generic
TARGET_BUILD_VARIANT=eng
TARGET_SIMULATOR=
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm
HOST_ARCH=x86
HOST_OS=linux
HOST_BUILD_TYPE=release
BUILD_ID=
============================================
frameworks/policies/base/PolicyConfig.mk:22: *** No module defined for
the given PRODUCT_POLICY (android.policy_phone). Stop.
The most obvious thing to me is that the BUILD_ID is blank. I also
see something about an OTA key and PRODUCT_POLICY. Since the same
exact environment works when I don't use -b in my repo init command I
am unsure why these are showing. Help?
I would be very appreciative if someone could help me figure out how
to build 1.5.
Do I have to get the master then do some repo or git commands to
switch to the 1.5 branch then build? Why doesn't the -b tag seem to
work when later build steps are run?
Thanks in advance for your time helping me get the source for and
building 1.5 on my Ubuntu machine.