Merge changes from topic "db845-minigbm-gralloc"
* changes: minigbm: Android.bp: Add msm varients of gralloc.minigbm and libminigbm_cros_gralloc minigbm: Andorid.bp: Use cc_defaults in defining libminigbm_cros_gralloc and users
This commit is contained in:
commit
59831098b8
3 changed files with 88 additions and 9 deletions
24
Android.bp
24
Android.bp
|
|
@ -147,8 +147,8 @@ cc_library {
|
|||
],
|
||||
}
|
||||
|
||||
cc_library_static {
|
||||
name: "libminigbm_cros_gralloc",
|
||||
cc_defaults {
|
||||
name: "libminigbm_cros_gralloc_defaults",
|
||||
defaults: ["minigbm_cros_gralloc_defaults"],
|
||||
shared_libs: ["liblog"],
|
||||
static_libs: ["libdrm"],
|
||||
|
|
@ -156,6 +156,11 @@ cc_library_static {
|
|||
export_include_dirs: ["."],
|
||||
}
|
||||
|
||||
cc_library_static {
|
||||
name: "libminigbm_cros_gralloc",
|
||||
defaults: ["libminigbm_cros_gralloc_defaults"],
|
||||
}
|
||||
|
||||
cc_library_shared {
|
||||
name: "gralloc.minigbm",
|
||||
defaults: ["minigbm_cros_gralloc_defaults"],
|
||||
|
|
@ -184,3 +189,18 @@ cc_library_shared {
|
|||
cflags: ["-DDRV_MESON"],
|
||||
srcs: ["cros_gralloc/gralloc0/gralloc0.cc"],
|
||||
}
|
||||
|
||||
cc_library_shared {
|
||||
name: "gralloc.minigbm_msm",
|
||||
defaults: ["minigbm_cros_gralloc_defaults"],
|
||||
cflags: ["-DDRV_MSM"],
|
||||
srcs: [
|
||||
"cros_gralloc/gralloc0/gralloc0.cc",
|
||||
],
|
||||
}
|
||||
|
||||
cc_library_static {
|
||||
name: "libminigbm_cros_gralloc_msm",
|
||||
defaults: ["libminigbm_cros_gralloc_defaults"],
|
||||
cflags: ["-DDRV_MSM"],
|
||||
}
|
||||
|
|
|
|||
|
|
@ -23,11 +23,10 @@ package {
|
|||
default_applicable_licenses: ["external_minigbm_license"],
|
||||
}
|
||||
|
||||
cc_binary {
|
||||
name: "android.hardware.graphics.allocator@4.0-service.minigbm",
|
||||
cc_defaults {
|
||||
name: "service_minigbm_defaults",
|
||||
relative_install_path: "hw",
|
||||
vendor: true,
|
||||
init_rc: ["android.hardware.graphics.allocator@4.0-service.minigbm.rc"],
|
||||
|
||||
vintf_fragments: ["android.hardware.graphics.allocator@4.0.xml"],
|
||||
|
||||
|
|
@ -50,7 +49,6 @@ cc_binary {
|
|||
|
||||
static_libs: [
|
||||
"libdrm",
|
||||
"libminigbm_cros_gralloc",
|
||||
],
|
||||
|
||||
srcs: [
|
||||
|
|
@ -60,8 +58,26 @@ cc_binary {
|
|||
],
|
||||
}
|
||||
|
||||
cc_library_shared {
|
||||
name: "android.hardware.graphics.mapper@4.0-impl.minigbm",
|
||||
cc_binary {
|
||||
name: "android.hardware.graphics.allocator@4.0-service.minigbm",
|
||||
init_rc: ["android.hardware.graphics.allocator@4.0-service.minigbm.rc"],
|
||||
defaults: ["service_minigbm_defaults"],
|
||||
static_libs: [
|
||||
"libminigbm_cros_gralloc",
|
||||
],
|
||||
}
|
||||
|
||||
cc_binary {
|
||||
name: "android.hardware.graphics.allocator@4.0-service.minigbm_msm",
|
||||
init_rc: ["android.hardware.graphics.allocator@4.0-service.minigbm_msm.rc"],
|
||||
defaults: ["service_minigbm_defaults"],
|
||||
static_libs: [
|
||||
"libminigbm_cros_gralloc_msm",
|
||||
],
|
||||
}
|
||||
|
||||
cc_defaults {
|
||||
name: "impl_minigbm_defaults",
|
||||
relative_install_path: "hw",
|
||||
vendor: true,
|
||||
|
||||
|
|
@ -85,7 +101,6 @@ cc_library_shared {
|
|||
|
||||
static_libs: [
|
||||
"libdrm",
|
||||
"libminigbm_cros_gralloc",
|
||||
],
|
||||
|
||||
srcs: [
|
||||
|
|
@ -93,3 +108,23 @@ cc_library_shared {
|
|||
"CrosGralloc4Utils.cc",
|
||||
],
|
||||
}
|
||||
|
||||
cc_library_shared {
|
||||
name: "android.hardware.graphics.mapper@4.0-impl.minigbm",
|
||||
defaults: ["impl_minigbm_defaults"],
|
||||
|
||||
static_libs: [
|
||||
"libminigbm_cros_gralloc",
|
||||
],
|
||||
|
||||
}
|
||||
|
||||
cc_library_shared {
|
||||
name: "android.hardware.graphics.mapper@4.0-impl.minigbm_msm",
|
||||
defaults: ["impl_minigbm_defaults"],
|
||||
|
||||
static_libs: [
|
||||
"libminigbm_cros_gralloc_msm",
|
||||
],
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,24 @@
|
|||
#
|
||||
# Copyright 2020 The Android Open Source Project
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
#
|
||||
|
||||
service vendor.graphics.allocator-4-0 /vendor/bin/hw/android.hardware.graphics.allocator@4.0-service.minigbm_msm
|
||||
interface android.hardware.graphics.allocator@4.0::IAllocator default
|
||||
class hal animation
|
||||
user system
|
||||
group graphics drmrpc
|
||||
capabilities SYS_NICE
|
||||
onrestart restart surfaceflinger
|
||||
writepid /dev/cpuset/system-background/tasks
|
||||
Loading…
Add table
Add a link
Reference in a new issue