Back to 2006/開発環境
- linux kernel をgit clone
- linaro gcc binary をget & extract
- $ sudo apt-get install ia32-libs
- $ sudo apt-get install u-boot-tools
- $ apt-get install ccache
- 環境変数設定
export ARCH=arm export CROSS_COMPILE=/cross/gcc-linaro-arm-linux-gnueabihf-4.7-2013.01-20130125_linux/bin/arm-linux-gnueabihf-
- $ make armadillo800eva_defconfig
- $ make menuconfig
- $ make clean && time make -j8 uImage
real | user | sys | |
-j | 0m52.987s | 6m2.603s | 0m17.509s |
-j16 | 0m53.024s | 6m1.191s | 0m17.549s |
-j12 | 0m52.659s | 5m55.978s | 0m17.877s |
-j8 | 0m52.541s | 5m52.658s | 0m18.377s |
-j4 | 1m6.417s | 3m48.670s | 0m12.225s |
-j2 | 1m55.397s | 3m23.221s | 0m10.681s |
-j1 | 3m59.001s | 3m27.217s | 0m17.801s |
- 環境変数設定
export ARCH=arm export CROSS_COMPILE="ccache /cross/gcc-linaro-arm-linux-gnueabihf-4.7-2013.01-20130125_linux/bin/arm-linux-gnueabihf-"
- $ make armadillo800eva_defconfig
- $ make menuconfig
- $ make clean && time make -j8 uImage
real | user | sys | |
-j | 0m7.306s | 0m17.777s | 0m5.264s |
-j8 | 0m7.398s | 0m17.697s | 0m5.100s |
-j4 | 0m9.134s | 0m12.789s | 0m3.440s |
-j2 | 0m15.354s | 0m13.533s | 0m4.200s |
-j1 | 0m31.617s | 0m15.865s | 0m5.340s |
$ ccache -s cache hit (direct) 4380 cache hit (preprocessed) 15 cache miss 885 called for link 1230 called for preprocessing 12 unsupported source language 342 no input file 1261 files in cache 2663 cache size 30.8 Mbytes max cache size 5.0 Gbytes
- mirror
~/aosp/mirror$ repo init -u https://android.googlesource.com/mirror/manifest --mirror
- ICSとJB
tag | note | |
ICS | android-4.0.4_r2.1 | |
JB | android-4.2.1_r1.2 |
- ICS
~/aosp/ICS$ repo init -u ../mirror/platform/manifest.git -b android-4.0.4_r2.1
- JB
~/aosp/JB$ repo init -u ../mirror/platform/manifest.git -b android-4.2.1_r1.2
~/aosp/ICS$ export USE_CCACHE= ~/aosp/ICS$ prebuilt/linux-x86/ccache/ccache -M 50G ~/aosp/ICS$ prebuilt/linux-x86/ccache/ccache -c -C -z ~/aosp/ICS$ source build/envsetup.sh ~/aosp/ICS$ lunch full-eng ~/aosp/ICS$ prebuilt/linux-x86/ccache/ccache -s cache hit 0 cache miss 0 files in cache 0 cache size 0 Kbytes max cache size 50.0 Gbytes ~/aosp/ICS$ make clean && time make -j4 Install system fs image: out/target/product/generic/system.img real 48m38.602s user 187m11.182s sys 7m24.208s ~/aosp/ICS$ prebuilt/linux-x86/ccache/ccache -s cache hit 0 cache miss 0 files in cache 0 cache size 0 Kbytes max cache size 50.0 Gbytes ~/aosp/ICS$
~/aosp/ICS$ export USE_CCACHE=1 ~/aosp/ICS$ prebuilt/linux-x86/ccache/ccache -M 50G ~/aosp/ICS$ prebuilt/linux-x86/ccache/ccache -c -C -z ~/aosp/ICS$ source build/envsetup.sh ~/aosp/ICS$ lunch full-eng ~/aosp/ICS$ prebuilt/linux-x86/ccache/ccache -s cache hit 0 cache miss 0 files in cache 0 cache size 0 Kbytes max cache size 50.0 Gbytes ~/aosp/ICS$ make clean && time make -j4 Install system fs image: out/target/product/generic/system.img real 51m17.155s user 187m5.310s sys 7m51.761s ~/aosp/ICS$ prebuilt/linux-x86/ccache/ccache -s cache hit 893 cache miss 14046 called for link 609 not a C/C++ file 373 unsupported compiler option 76 files in cache 28092 cache size 3.1 Gbytes max cache size 50.0 Gbytes
~/aosp/ICS$ make clean && time make -j4 Install system fs image: out/target/product/generic/system.img real 23m49.014s user 84m9.364s sys 3m40.274s ~/aosp/ICS$ prebuilt/linux-x86/ccache/ccache -s cache hit 15814 cache miss 14064 called for link 1218 not a C/C++ file 746 unsupported compiler option 152 files in cache 28128 cache size 3.1 Gbytes max cache size 50.0 Gbytes
かすりもしていない,,,なぜ?
~/aosp/JB$ prebuilts/misc/linux-x86/ccache/ccache -s cache hit 15814 cache miss 14064 called for link 1218 not a C/C++ file 746 unsupported compiler option 152 files in cache 28128 cache size 3.1 Gbytes max cache size 50.0 Gbytes ~/aosp/JB$ make clean && time make -j4 Install system fs image: out/target/product/generic/system.img real 64m17.609s user 222m29.842s sys 10m31.447s ~/aosp/JB$ prebuilts/misc/linux-x86/ccache/ccache -s cache hit 15814 cache miss 32019 called for link 1942 not a C/C++ file 1140 unsupported compiler option 279 files in cache 64038 cache size 7.4 Gbytes max cache size 50.0 Gbytes
Running: mkyaffs2image -f out/target/product/generic/system out/target/product/generic/obj/PACKAGING/systemimage_intermediates/system.img Install system fs image: out/target/product/generic/system.img real 27m43.585s user 83m16.136s sys 4m31.169s ~/aosp/JB$ prebuilts/misc/linux-x86/ccache/ccache -s cache hit 33735 cache miss 32053 called for link 2666 not a C/C++ file 1534 unsupported compiler option 406 files in cache 64106 cache size 7.4 Gbytes max cache size 50.0 Gbytes
コメントをかく