Thursday, December 22, 2011

Build ICS

OS:Ubuntu 11.10 x86
CPU:Core2Duo
Mem:2.0GB
shell:zsh

download repo utility.
$ curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo
$ chmod a+x ~/bin/repo
Create directory and initialize git repository.
$ mkdir android-ics
$ cd andorid-ics
$ repo init -u https://android.googlesource.com/platform/manifest -b android-4.0.1_r1
$ repo sync

$ bash
$ source ./build/envsetup.sh
$ lunch full-eng
$ time make -j2 2>&1 |tee make.log
That method will be to the error on Ubuntu 11.10(x86).
$ emacs -nw build/core/combo/HOST_linux-x86.mk
-HOST_GLOBAL_CFLAGS += -D_FORTIFY_SOURCE=0
+HOST_GLOBAL_CFLAGS += -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0

$ emacs -nw external/gtest/include/gtest/internal/gtest-param-util.h
 #include 
+#include   // 40 line
 #include 

$ emacs -nw external/oprofile/libpp/format_output.h
 -               mutable counts_t & counts;
 +               counts_t & counts;  // 94 line

$ emacs -nw frameworks/compile/slang/Android.mk
-local_cflags_for_slang := -Wno-sign-promo -Wall -Wno-unused-parameter -Werror
+local_cflags_for_slang := -Wno-sign-promo -Wall -Wno-unused-parameter  # 22line

$ emacs -nw external/llvm/lib/Support/Mutex.cpp
 #include "llvm/Config/config.h"
 #include "llvm/Support/Mutex.h"
+#undef ENABLE_THREADS  // 16 line
+#undef HAVE_PTHREAD_H

$ emacs -nw external/llvm/lib/Support/Signals.cpp
 }

+#undef HAVE_DLFCN_H  // 28 line

$ emacs -nw external/llvm/lib/Support/Threading.cpp
 #include "llvm/Support/Mutex.h"
 #include "llvm/Config/config.h"
 #include 
+#undef LLVM_MULTITHREADED  // 19 line

$ source build/envsetup.sh
$ lunch full-eng
$ make -j2
launch emulator
$ emulator
But.... I failed to display AndroidOS home screen, after I succeed to launch emulator.

2 comments:

  1. Hyundai Sonata AC Compressor
    Excellent blog& presentation. Keep writing more and more. I voted for your blog and suggested your blog to my friends also.

    ReplyDelete
  2. aisha, thank you for your comment.
    I should keep to write and technical presentation on this blog.
    If you know some good blogs, please tell me.

    ReplyDelete