Skip to content

Commit

Permalink
Merge tag 'android-7.1.2_r2' into cm-14.1
Browse files Browse the repository at this point in the history
Android 7.1.2 Release 2 (N2G47E)

Change-Id: Id0a45b1b3edb2e520f76a469e8dae0b4a4089c2a
  • Loading branch information
invisiblek committed Apr 5, 2017
2 parents c8a7605 + af7f1cd commit f55a6c6
Show file tree
Hide file tree
Showing 157 changed files with 4,103 additions and 1,030 deletions.
10 changes: 5 additions & 5 deletions Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ ifneq ($(TARGET_BOARD_AUTO),true)
ifneq ($(filter msm8996, $(TARGET_BOARD_PLATFORM)),)
QCOM_MEDIA_ROOT := $(call my-dir)/msm8996
endif
ifneq ($(filter msmcobalt, $(TARGET_BOARD_PLATFORM)),)
QCOM_MEDIA_ROOT := $(call my-dir)/msmcobalt
ifneq ($(filter msm8998, $(TARGET_BOARD_PLATFORM)),)
QCOM_MEDIA_ROOT := $(call my-dir)/msm8998
endif

ifneq ($(filter msm8610 msm8226 msm8974 msm8960 msm8660 msm7627a msm7630_surf msm8084 msm8952 msm8992 msm8994 msm8996 msmcobalt,$(TARGET_BOARD_PLATFORM)),)
ifneq ($(filter msm8610 msm8226 msm8974 msm8960 msm8660 msm7627a msm7630_surf msm8084 msm8952 msm8992 msm8994 msm8996 msm8998,$(TARGET_BOARD_PLATFORM)),)
include $(QCOM_MEDIA_ROOT)/mm-core/Android.mk
include $(QCOM_MEDIA_ROOT)/libstagefrighthw/Android.mk
endif
Expand All @@ -20,11 +20,11 @@ ifneq ($(TARGET_BOARD_AUTO),true)
include $(QCOM_MEDIA_ROOT)/mm-video-legacy/Android.mk
endif

ifneq ($(filter msm8610 msm8226 msm8974 msm8084 msm8952 msm8992 msm8994 msm8996 msmcobalt,$(TARGET_BOARD_PLATFORM)),)
ifneq ($(filter msm8610 msm8226 msm8974 msm8084 msm8952 msm8992 msm8994 msm8996 msm8998,$(TARGET_BOARD_PLATFORM)),)
include $(QCOM_MEDIA_ROOT)/mm-video-v4l2/Android.mk
endif

ifneq ($(filter msm8610 msm8226 msm8974 msm8960 msm8084 msm8952 msm8992 msm8994 msm8996 msmcobalt,$(TARGET_BOARD_PLATFORM)),)
ifneq ($(filter msm8610 msm8226 msm8974 msm8960 msm8084 msm8952 msm8992 msm8994 msm8996 msm8998,$(TARGET_BOARD_PLATFORM)),)
include $(QCOM_MEDIA_ROOT)/libc2dcolorconvert/Android.mk
endif
endif
Expand Down
File renamed without changes.
5 changes: 5 additions & 0 deletions msm8998/Makefile.am
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Makefile.am - Automake script for mm-omxvideo
#
ACLOCAL_AMFLAGS = -I m4

SUBDIRS = mm-core mm-video-v4l2
File renamed without changes.
File renamed without changes.
174 changes: 174 additions & 0 deletions msm8998/configure.ac
Original file line number Diff line number Diff line change
@@ -0,0 +1,174 @@
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.

# Requires autoconf tool later than 2.61
AC_PREREQ([2.61])
# Initialize the omxvideo package version 1.0.0
AC_INIT([omxvideo], 1.0.0)
# Does not strictly follow GNU Coding standards
AM_INIT_AUTOMAKE([gnu foreign subdir-objects])
AM_MAINTAINER_MODE
# defines some macros variable to be included by source
AC_CONFIG_HEADER([config.h])
AC_CONFIG_MACRO_DIR([m4])

# Checks for programs.
AM_PROG_AR
AC_PROG_CC
AC_PROG_CPP
AC_PROG_CXX
AM_PROG_CC_C_O
AC_PROG_LIBTOOL
AC_PROG_AWK
AC_PROG_INSTALL
AC_PROG_LN_S
AC_PROG_MAKE_SET

PKG_PROG_PKG_CONFIG

AC_ARG_ENABLE([target-msm8953],
AC_HELP_STRING([--enable-target-msm8953],
[Enable conditional compile for target msm8953 [default=no]]),
[target_msm8953="${enableval}"])

AC_ARG_ENABLE([target-msm8996],
AC_HELP_STRING([--enable-target-msm8996],
[Enable conditional compile for target msm8996 [default=no]]),
[target_msm8996="${enableval}"])

AC_ARG_ENABLE([target-msm8610],
AC_HELP_STRING([--enable-target-msm8610],
[Enable conditional compile for target msm8610 [default=no]]),
[target_msm8610="${enableval}"])

AC_ARG_ENABLE([target-msm8226],
AC_HELP_STRING([--enable-target-msm8226],
[Enable conditional compile for target msm8610 [default=no]]),
[target_msm8226="${enableval}"])

AC_ARG_ENABLE([is-ubwc-supported],
AC_HELP_STRING([--enable-ubwc-supported],
[Enable conditional compile for target msm8953 [default=no]]),
[targets_that_support_ubwc="${enableval}"])

AC_ARG_ENABLE([targets-that-support-pq],
AC_HELP_STRING([--enable-targets-that-support-pq],
[Enable conditional compile for target msm8953 [default=no]]),
[targets_that_support_pq="${enableval}"])

AC_ARG_ENABLE([target-uses-ion],
AC_HELP_STRING([--enable-target-uses-ion],
[Enable conditional compile for target target-uses-ion [default=no]]),
[target_uses_ion="${enableval}"])

AC_ARG_ENABLE([targets-that-use-flag-msm8226],
AC_HELP_STRING([--enable-targets-that-use-flag-msm8226],
[Enable conditional compile for target targets_that_use_flag_msm8226 [default=no]]),
[targets_that_use_flag_msm8226="${enableval}"])

AC_ARG_ENABLE([target-uses-media-extensions],
AC_HELP_STRING([--enable-target-uses-media-extensions],
[Enable conditional compile for target target_uses_media_extensions [default=no]]),
[target_uses_media_extensions="${enableval}"])

AC_ARG_ENABLE([master-side-cp-target-list],
AC_HELP_STRING([--enable-master-side-cp-target-list],
[Enable conditional compile for target master_side_cp_target_list [default=no]]),
[master_side_cp_target_list="${enableval}"])

AC_ARG_ENABLE([use-glib],
AC_HELP_STRING([--enable-use-glib],
[Enable conditional compile for use glib [default=no]]),
[use_glib="${enableval}"])

AC_ARG_WITH([sanitized-headers],
[AS_HELP_STRING([--with-sanitized-headers=DIR],[location of the sanitized Linux kernel headers])],
[CPPFLAGS="$CPPFLAGS -I $withval"])

AC_ARG_WITH([glib-headers],
[AS_HELP_STRING([--with-binder-inc=DIR],[location of common headers])],
[CPPFLAGS="$CPPFLAGS -I$withval"])

AC_ARG_WITH([utils-headers],
[AS_HELP_STRING([--with-utils-inc=DIR],[location of common headers])],
[CPPFLAGS="$CPPFLAGS -I$withval"])

AC_ARG_WITH([cutils-headers],
[AS_HELP_STRING([--with-cutils-inc=DIR],[location of common headers])],
[CPPFLAGS="$CPPFLAGS -I$withval"])

AC_ARG_WITH([kernel-headers],
[AS_HELP_STRING([--with-kernel-inc=DIR],[location of common headers])],
[CPPFLAGS="$CPPFLAGS -I$withval"])

AC_ARG_WITH([kernel-uapi-headers],
[AS_HELP_STRING([--with-kernel-uapi-inc=DIR],[location of common headers])],
[CPPFLAGS="$CPPFLAGS -I$withval"])

AC_ARG_WITH([adreno-headers],
[AS_HELP_STRING([--with-adreno-inc=DIR],[location of common headers])],
[CPPFLAGS="$CPPFLAGS -I$withval"])

AC_ARG_WITH([libgpustats-headers],
[AS_HELP_STRING([--with-libgpustats-headers=DIR],[location of common headers])],
[CPPFLAGS="$CPPFLAGS -I$withval"])

AC_ARG_WITH([ui-headers],
[AS_HELP_STRING([--with-ui-inc=DIR],[location of common headers])],
[CPPFLAGS="$CPPFLAGS -I$withval"])

AC_ARG_WITH([android-headers],
[AS_HELP_STRING([--with-gralloc-inc=DIR],[location of common headers])],
[CPPFLAGS="$CPPFLAGS -I$withval"])

AC_ARG_WITH([gralloc-headers],
[AS_HELP_STRING([--with-strcpyincludes-inc=DIR],[location of common headers])],
[CPPFLAGS="$CPPFLAGS -I$withval"])

AC_ARG_WITH([binder-headers],
[AS_HELP_STRING([--with-binder-inc=DIR],[location of common headers])],
[CPPFLAGS="$CPPFLAGS -I$withval"])

AC_ARG_WITH([display-headers],
[AS_HELP_STRING([--with-binder-inc=DIR],[location of common headers])],
[CPPFLAGS="$CPPFLAGS -I$withval"])

AC_ARG_WITH([glib-lib-dir],
[AS_HELP_STRING([--with-binder-inc=DIR],[location of common headers])],
[CPPFLAGS="$CPPFLAGS -I$withval"])

AM_CONDITIONAL(TARGET_MSM8953, [test "x$target_msm8953" = "xyes"])
AM_CONDITIONAL(TARGET_MSM8996, [test "x$target_msm8996" = "xyes"])
AM_CONDITIONAL(TARGET_MSM8610, [test "x$target_msm8610" = "xyes"])
AM_CONDITIONAL(TARGET_MSM8226, [test "x$target_msm8226" = "xyes"])
AM_CONDITIONAL(TARGETS_THAT_SUPPORT_UBWC, [test "x$targets_that_support_ubwc" = "xyes"])
AM_CONDITIONAL(TARGETS_THAT_SUPPORT_PQ, [test "x$targets_that_support_pq" = "xyes"])
AM_CONDITIONAL(TARGET_USES_ION, [test "x$target_uses_ion" = "xyes"])
AM_CONDITIONAL(TARGETS_THAT_USE_FLAG_MSM8226, [test "x$targets_that_use_flag_msm8226" = "xyes"])
AM_CONDITIONAL(TARGET_USES_MEDIA_EXTENSIONS, [test "x$target_uses_media_extensions" = "xyes"])
AM_CONDITIONAL(MASTER_SIDE_CP_TARGET_LIST, [test "x$master_side_cp_target_list" = "xyes"])
AM_CONDITIONAL(USE_GLIB, [test "x$use_glib" = "xyes"])

AC_ARG_WITH([glib],
AC_HELP_STRING([--with-glib],
[enable glib, building HLOS systems which use glib]))

if (test "x${with_glib}" = "xyes"); then
GLIB_CFLAGS="$GLIB_CFLAGS $GTHREAD_CFLAGS"
GLIB_LIBS="$GLIB_LIBS $GTHREAD_LIBS"

AC_SUBST(GLIB_CFLAGS)
AC_SUBST(GLIB_LIBS)
fi

AC_SUBST([CPPFLAGS])
AC_SUBST([CFLAGS])

AC_CONFIG_FILES([ \
Makefile \
mm-core/Makefile
mm-video-v4l2/Makefile \
mm-video-v4l2/vidc/Makefile \
mm-video-v4l2/vidc/venc/Makefile \
])
AC_OUTPUT
File renamed without changes.
18 changes: 18 additions & 0 deletions msm8998/libc2dcolorconvert/Makefile.am
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
AM_CFLAGS = -Wall
AM_CFLAGS += -Wundef
AM_CFLAGS += -Wstrict-prototypes
AM_CFLAGS += -Wno-trigraphs
AM_CFLAGS += -g -O3
AM_CFLAGS += "-include stdint.h"
AM_CFLAGS += "-std=c++11"


AM_CPPFLAGS = $(CPPFLAGS)

c_sources = C2DColorConverter.cpp
h_sources = C2DColorConverter.h

lib_LTLIBRARIES = libc2dcolorconvert.la
libc2dcolorconvert_la_SOURCES = $(c_sources) $(h_sources)
libc2dcolorconvert_la_CPPFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS) -fPIC
libc2dcolorconvert_la_LIBADD = -ldl -lpthread -llog
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
8 changes: 4 additions & 4 deletions msmcobalt/mm-core/Android.mk → msm8998/mm-core/Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ else ifeq ($(TARGET_BOARD_PLATFORM),msm8952)
MM_CORE_TARGET = 8952
else ifeq ($(TARGET_BOARD_PLATFORM),msm8953)
MM_CORE_TARGET = msm8953
else ifeq ($(TARGET_BOARD_PLATFORM),msmcobalt)
MM_CORE_TARGET = msmcobalt
else ifeq ($(TARGET_BOARD_PLATFORM),msm8998)
MM_CORE_TARGET = msm8998
else
MM_CORE_TARGET = default
endif
Expand Down Expand Up @@ -102,7 +102,7 @@ LOCAL_CFLAGS := $(OMXCORE_CFLAGS)

LOCAL_SRC_FILES := src/common/omx_core_cmp.cpp
LOCAL_SRC_FILES += src/common/qc_omx_core.c
ifneq (,$(filter msm8916 msm8994 msm8909 msm8937 msm8996 msm8992 msm8952 msm8953 msmcobalt,$(TARGET_BOARD_PLATFORM)))
ifneq (,$(filter msm8916 msm8994 msm8909 msm8937 msm8996 msm8992 msm8952 msm8953 msm8998,$(TARGET_BOARD_PLATFORM)))
LOCAL_SRC_FILES += src/$(MM_CORE_TARGET)/registry_table_android.c
else
LOCAL_SRC_FILES += src/$(MM_CORE_TARGET)/qc_registry_table_android.c
Expand All @@ -126,7 +126,7 @@ LOCAL_CFLAGS := $(OMXCORE_CFLAGS)

LOCAL_SRC_FILES := src/common/omx_core_cmp.cpp
LOCAL_SRC_FILES += src/common/qc_omx_core.c
ifneq (,$(filter msm8916 msm8994 msm8909 msm8937 msm8996 msm8992 msm8952 msm8953 msmcobalt,$(TARGET_BOARD_PLATFORM)))
ifneq (,$(filter msm8916 msm8994 msm8909 msm8937 msm8996 msm8992 msm8952 msm8953 msm8998,$(TARGET_BOARD_PLATFORM)))
LOCAL_SRC_FILES += src/$(MM_CORE_TARGET)/registry_table.c
else
LOCAL_SRC_FILES += src/$(MM_CORE_TARGET)/qc_registry_table.c
Expand Down
79 changes: 79 additions & 0 deletions msm8998/mm-core/Makefile.am
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
# sources and intermediate files are separated

#AM_CFLAGS = -Wall
#AM_CFLAGS += -Wundef
#AM_CFLAGS += -Wstrict-prototypes
#AM_CFLAGS += -Wno-trigraphs
#AM_CFLAGS += -g -O3
#AM_CFLAGS += -O0 -fno-inline -fno-short-enums
#AM_CFLAGS += -fPIC

AM_CPPFLAGS = -D__packed__=
AM_CPPFLAGS += -D_ANDROID_
AM_CPPFLAGS += -D_ENABLE_QC_MSG_LOG_
#AM_CPPFLAGS += -g -O3
#AM_CPPFLAGS += -O0 -fno-inline -fno-short-enums
AM_CPPFLAGS += -I$(top_srcdir)/mm-core/inc/
AM_CPPFLAGS += -I$(top_srcdir)/mm-core/src/common/
AM_CPPFLAGS += "-Dstrlcpy=g_strlcpy"
AM_CPPFLAGS += "-Dstrlcat=g_strlcat"

h_sources =inc/OMX_Audio.h
h_sources +=inc/OMX_Component.h
h_sources +=inc/OMX_ContentPipe.h
h_sources +=inc/OMX_Core.h
h_sources +=inc/OMX_Image.h
h_sources +=inc/OMX_Index.h
h_sources +=inc/OMX_IVCommon.h
h_sources +=inc/OMX_Other.h
h_sources +=inc/OMX_QCOMExtns.h
h_sources +=inc/OMX_Types.h
h_sources +=inc/OMX_Video.h
h_sources +=inc/qc_omx_common.h
h_sources +=inc/qc_omx_component.h
h_sources +=inc/qc_omx_msg.h
h_sources +=inc/QOMX_AudioExtensions.h
h_sources +=inc/QOMX_AudioIndexExtensions.h
h_sources +=inc/OMX_CoreExt.h
h_sources +=inc/QOMX_CoreExtensions.h
h_sources +=inc/QOMX_FileFormatExtensions.h
h_sources +=inc/QOMX_IVCommonExtensions.h
h_sources +=inc/QOMX_SourceExtensions.h
h_sources +=inc/QOMX_VideoExtensions.h
h_sources +=inc/OMX_IndexExt.h
h_sources +=inc/QOMX_StreamingExtensions.h

c_sources =src/common/omx_core_cmp.cpp
c_sources +=src/common/qc_omx_core.c

if TARGET_MSM8953
TARGET_REGISTRY = msm8953
endif

if TARGET_MSM8996
TARGET_REGISTRY = msm8996
endif

c_sources +=src/${TARGET_REGISTRY}/registry_table_android.c

lib_LTLIBRARIES = libOmxCore.la
include_HEADERS = $(h_sources)
libOmxCore_la_SOURCES = $(c_sources)
libOmxCore_la_CFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS) -fPIC
libOmxCore_la_CPPFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS) -fPIC
libOmxCore_la_LDFLAGS = -ldl -lrt -lpthread -lglib-2.0
libOmxCore_la_LDFLAGS += -shared -version-info 0

lib_LTLIBRARIES += libmm-omxcore.la

c_sources =src/common/omx_core_cmp.cpp
c_sources +=src/common/qc_omx_core.c
c_sources +=src/${TARGET_REGISTRY}/registry_table.c

include_HEADERS = $(h_sources)
libmm_omxcore_la_SOURCES = $(c_sources)
libmm_omxcore_la_CFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS) -fPIC
libmm_omxcore_la_CPPFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS) -fPIC
libmm_omxcore_la_LDFLAGS = -ldl -lrt -lpthread -lglib-2.0
libmm_omxcore_la_LDFLAGS += -shared -version-info 0

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit f55a6c6

Please sign in to comment.