Showing posts with label Builder. Show all posts
Showing posts with label Builder. Show all posts

4.23.2009

compile android & kernel

* build android
If you just want to force the generation of the systemimage without
rebuilding anything, you should just be able to do
make snod
(snod == systemimage-nodeps)

清除之前make 習
make clean

*build kernel
(1)
.config 要從模擬器上的kernel 拿

cd \tools
adb pull /proc/config.gz pulldata\config.gz

下完config.gz 就會在\tools\pulldata\裡
config.gz 就是.config,將它解壓並copy 到你要 build 的kernel 目錄下
其中有個flag CONFIG_MODULE 要設成y ,才可手動載入module

(2)
make mrproper (clean)
make msm_defconfig ARCH=arm
make ARCH=arm CROSS_COMPILE=../prebuilt/linux-x86/toolchain/arm-eabi-4.2.1/bin/arm-eabi-

(3)載入映像檔到模擬器中:
映像檔位置: (1) 依照android官方網頁的說明,映像檔是放在lib/images下,在我的電腦(os: xp)上是位於

C:\WT\SoftWare\eclipse\android-sdk-windows-1.1_r1\tools\lib\images。

用指令來指定image的方式如下:

emulator -image system.img -data userdata.img -ramdisk ramdisk.img

如果要重載kernel的image則如下:

emulator -kernel /zImage


如果直接把image檔覆蓋掉在lib/images的檔案也能正常執行。如果使用指令則會啟動模擬器並載入參數路徑所指的映像檔,如下,其實上原本存在於lib/images的映像檔並沒有被參數載入的覆蓋掉!

emulator -image backup\system.img




這裡有講到如何build image for emulator

編譯android原始碼到模擬器上執行
http://www.cookbus.com/show-85-1.html

7.22.2008

Build code hanging

to Build All the code, the builder stoped and poped the results as below:

"Microsoft (R) Program Maintenance Utility Version Test Version
Copyright
(C) Microsoft Corporation. All rights reserved.

Windows CE Version
(Release) (Built on Mar 1 2004 21:46:39)
makefile.def: Invoked with
predefined settings:
TARGETNAME: dummy
TARGETTYPE: dummy
RELEASETYPE:
TARGETLIBS:
SOURCELIBS:
makefile.def: Including
D:\WM612_AKU1.2_19958\public\common\oak\misc\Sources.default
makefile.def:
BUILDROOT is D:\WM612_AKU1.2_19958\public\ossvcs\cesysgen
0 Please add
_COMMONPUBROOT and __PROJROOT to your tree's cesysgen\sources file.
makefile.def: Including .\sources.
makefile.def: Including
D:\WM612_AKU1.2_19958\public\common\oak\misc\Sources.CE
makefile.def:
Including D:\WM612_AKU1.2_19958public\wpc\oak\misc\makefile.inc
Directory:
D:\WM612_AKU1.2_19958\PUBLIC\OSSVCS\CESYSGEN
TARGETNAME: dummy
RELEASETYPE is not defined. Using DEFAULT.
makefile.def: Including
D:\WM612_AKU1.2_19958\public\common\oak\misc\sources.ReleaseType_DEFAULT
輸入錯誤: 副檔名".js" 沒有對應的 Script 引擎。
NMAKE : fatal error U1077: 'cscript' :
return code '0x1'
Stop."

the problem is cuased from UltraEdit. It sets the Script file for UltraEdit using and change the seting of builder.

Solution is from Sammy.

Understanding Makefile is useful.