2011年11月3日 星期四

Build Android with Pandaboard


1. repo init -u git://android.git.linaro.org/platform/manifest.git -b linaro_android_2.3.5

2. Build Instructions:
PATH=$PWD/gcc/bin:$PATH make -j2 TARGET_PRODUCT=pandaboard TARGET_TOOLS_PREFIX=./gcc/bin/arm-eabi- boottarball systemtarball userdatatarball

Issues :
- Problem with GCC4.6.X :
error: "_FORTIFY_SOURCE" redefined [-Werror]
* Solution:
build/core/combo/HOST_linux-x86.mk :      -HOST_GLOBAL_CFLAGS += -D_FORTIFY_SOURCE=0     +HOST_GLOBAL_CFLAGS += -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0
3. create media
linaro-android-media-create --mmc /dev/mmcblk0 --dev panda --system out/target/product/pandaboard/system.tar.bz2 --userdata out/target/product/pandaboard/userdata.tar.bz2 --boot out/target/product/pandaboard/boot.tar.bz2

沒有留言: