How to build Module for Platform
- It is only for modules are needed to using Android build system.
- Please check its own install information under its folder for other module.
[Step to build]
- Get android open source.
: version info - Android jellybean
4.2.2_r1
( Download site : http://source.android.com )
- Copy module that you want to build - to original android open source If same module exist in android open source, you should replace it. (no overwrite)
- You should add module name to
PRODUCT_PACKAGES
inbuild\target\product\core.mk
as following case.
e2fsprog
: should adde2fsck
toPRODUCT_PACKAGES
libexifa
: should addlibexifa
toPRODUCT_PACKAGES
libjpega
: should addlibjpega
toPRODUCT_PACKAGES
KeyUtils
: should addlibkeyutils
toPRODUCT_PACKAGES
libasound
: should addlibasound
toPRODUCT_PACKAGES
audio\alsaplugin
: should addlibasound_module_pcm_bcmfilter
toPRODUCT_PACKAGES
ex.) build\target\product\core.mk
- add all module name for all follow cases at once
PRODUCT_PACKAGES += \
e2fsck \
libexifa \
libjpega \
libkeyutils \
libasound \
libasound_module_pcm_bcmfilter
- In case of
bluetooth
, you should add following text inbuild\target\board\generic\BoardConfig.m
OPENSOURCE_ALSA_AUDIO := true
BOARD_USES_ALSA_AUDIO := true
BRCM_ALSA_LIB_DIR=device/samsung/bcm_common/alsa-lib
- excute build command
./build.sh user