diff options
author | Hashcode <hashcode0f@gmail.com> | 2013-01-20 21:18:50 -0800 |
---|---|---|
committer | Hashcode <hashcode0f@gmail.com> | 2013-01-20 21:28:48 -0800 |
commit | a1c078bd69103c62754f6ead655f1afec4b72179 (patch) | |
tree | a044de696a8519b97ef5d11733d317bf7a848ac9 | |
parent | 60c8c252813375efcb9276dbef25220d0ae2bee2 (diff) | |
download | hardware_ti_omap4xxx-a1c078bd69103c62754f6ead655f1afec4b72179.zip hardware_ti_omap4xxx-a1c078bd69103c62754f6ead655f1afec4b72179.tar.gz hardware_ti_omap4xxx-a1c078bd69103c62754f6ead655f1afec4b72179.tar.bz2 |
[1/3] omap4xxx: Allow custom DOMX source instead of Google DOMX default
Part 1 of 3 patches: To allow omap4 devices to use custom "domx" source
via a new BoardConfig.mk item:
TI_CUSTOM_DOMX_PATH := device/<manufacturer>/<device-name>/domx
This setting provides for 3 changes during the build:
1. In hardware/ti/omap4xxx this settings stops standard Google domx
source from being built and changes the domx reference for tiutils.
2. In frameworks/base it changes the default openmax references for
frameworks/base/media/jni/mediaeditor/Android.mk to the new location
3. In frameworks/av changes the openmax references in 5 places, and adds
new includes in ACodec.cpp, CameraSource.cpp and OMXCodec.cpp
This commit for hardware/ti/omap4xxx is based on this cherry-pick from
omapzoom (with a more descriptive BoardConfig setting name):
http://www.omapzoom.org/?p=platform/hardware/ti/omap4xxx.git;a=commitdiff;h=040534d546dbcfcff16ff1afff15c01c2822dfcc
Change-Id: I32bf75073278639dc9e4442168c7b35295beb495
Signed-off-by: Hashcode <hashcode0f@gmail.com>
-rw-r--r-- | domx/Android.mk | 4 | ||||
-rw-r--r-- | libtiutils/Android.mk | 12 |
2 files changed, 13 insertions, 3 deletions
diff --git a/domx/Android.mk b/domx/Android.mk index 6571161..f2f9b7f 100644 --- a/domx/Android.mk +++ b/domx/Android.mk @@ -1 +1,3 @@ -include $(all-subdir-makefiles) +ifeq ($(TI_CUSTOM_DOMX_PATH),) + include $(all-subdir-makefiles) +endif diff --git a/libtiutils/Android.mk b/libtiutils/Android.mk index e15eba9..40596b7 100644 --- a/libtiutils/Android.mk +++ b/libtiutils/Android.mk @@ -20,8 +20,16 @@ LOCAL_SHARED_LIBRARIES:= \ LOCAL_C_INCLUDES += \ bionic/libc/include \ - hardware/ti/omap4xxx/domx/omx_core/inc \ - hardware/ti/omap4xxx/domx/mm_osal/inc + +ifneq ($(TI_CUSTOM_DOMX_PATH),) +LOCAL_C_INCLUDES += \ + $(TI_CUSTOM_DOMX_PATH)/omx_core/inc \ + $(TI_CUSTOM_DOMX_PATH)/mm_osal/inc +else +LOCAL_C_INCLUDES += \ + hardware/ti/omap4xxx/domx/omx_core/inc \ + hardware/ti/omap4xxx/domx/mm_osal/inc +endif LOCAL_CFLAGS += -fno-short-enums |