Android Build

http://elinux.org/Android_Build_System
http://hashspeaks.wordpress.com/2010/01/27/android-mk-documentation/

FAQ

https://groups.google.com/forum/#!msg/android-building/qzJDZ5PkLsI/V2thpWNpZ1YJ

android aosp build

emulator avd

android build analysis

http://www.ibm.com/developerworks/cn/opensource/os-cn-android-build/

add busybox

http://benno.id.au/blog/2007/11/14/android-busybox

http://omappedia.org/wiki/Android_Installing_Busybox_Command_Line_Tools

build

ro.hardware=grouper

ro.product.name: <— software nakasig
ro.product.board: <— hardware grouper
ro.product.brand: google
ro.product.model: nexus 7
ro.product.build: hardware grouper ???

ro.build.version.release: 5.0

ro.build.characteristics=tablet,nosdcard
ro.build.tags=dev-keys
ro.build.type=userdebug

ro.build.product: tilapia
ro.build.fingerprint: brand/software/build-product:release, google/nakasig/tilapia:4.4

https://source.android.com/source/building-devices.html
https://plus.sandbox.google.com/+TenchiLoh/posts/ff6jAPY5LJd

build specific package

— mm: Builds all of the modules in the current directory.
— mmm: Builds all of the modules in the supplied directories.

check the LOCAL_MODULE line in Android.mk file
then make module_name

You can also get the list of the modules available in the build
system with the make modules target

http://stackoverflow.com/questions/13139394/building-a-particular-module-in-the-android-source-code
http://www.jayway.com/2012/10/24/a-practical-approach-to-the-aosp-build-system/
http://elinux.org/Android_Build_System

make file

http://blog.csdn.net/askeyes/article/details/6006660
http://www.ibm.com/developerworks/cn/opensource/os-cn-android-build/

standard makefile

https://github.com/toolchainX/emacs_config/blob/master/Notes/GNU-make-note.org
http://www.tutorialspoint.com/makefile/makefile_macros.htm
http://www.gnu.org/software/make/manual/html_node/Functions.html#Functions

http://intijk.com/notes/linux-%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0/makefile-%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0.html
http://c4fun.cn/blog/2014/01/23/gnu-make-study02/

print information:

输出信息的方法是:$(warning xxxxx)或者$(error xxxxx)
输出变量方式为:$(warning $(XXX))
$(warning " JNI_H_INCLUDE = $(JNI_H_INCLUDE)")

Android编译顺序小结

http://blog.csdn.net/linux_eve/article/details/5445791

ndk makefile

http://www.netmite.com/android/mydroid/1.6/development/ndk/docs/ANDROID-MK.TXT

android makefile 编译分析及 android.mk分析

http://my.oschina.net/kangchunhui/blog/77517

sample

http://blog.ready4go.com/blog/2013/05/20/write-local-src-files-in-android-dot-mk-ultimate-skills/

build prop

http://varun-anand.com/and_propsys.html

android build/core/Makefile defines INSTALLED_BUILD_PROP_TARGET, which is generated by:

BUILDINFO_SH := build/tools/buildinfo.sh
$(INSTALLED_BUILD_PROP_TARGET):
   ...
   TARGET_DEVICE="$(TARGET_DEVICE)" \      <-- export environment variable 
    ... 
   bash $(BUILDINFO_SH) >> $@   <---- re-direct the output into build.prop file

BUILDINFO_SH=build/tools/buildinfo.sh, it has the following content:

    ....
   echo "ro.product.device=$TARGET_DEVICE"   <-- echo a line 's content
   ...

how to create a zip file:

http://fokke.org/site/content/howto-create-android-updatezip-package

http://forum.xda-developers.com/galaxy-nexus/themes-apps/tutorial-making-flashable-zips-edify-t1611615

http://www.kandroid.org/online-pdk/guide/release_keys.html

release

http://jhshi.me/2014/11/09/aosp-release-tools/
http://jhshi.me/2013/12/02/how-to-create-and-sign-ota-package/
http://jhshi.me/2014/08/28/sign-issues-related-to-ota-update/
http://jhshi.me/2013/12/13/how-to-apply-downloaded-ota-package/

ota mechanism

http://shriduttkothari.blogspot.com/2013/08/fota-in-android-mechanism.html
http://wenku.baidu.com/view/fa374f1414791711cc79172d
http://blog.csdn.net/tangmin0719/article/details/8916417

https://wiki.linaro.org/CategoryAndroidTips
http://forums.androidcentral.com/general-help-how/144804-how-compile-ics-aosp-4-0-3-xoom-gnex-nexus-s.html

http://nosemaj.org/howto-build-android-kitkat-nexus-5

http://hamer-blog.logdown.com/posts/168376-android-how-to-copy-files-to-install-image
http://hamer-blog.logdown.com/posts/158563-android-how-to-allow-to-generate-and-analyze-coredump-file

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License