universal7885: Add samsung configstore HAL entry

This commit is contained in:
roynatech2544 2021-11-22 13:29:47 +09:00
commit 2ba9a6ccbf
No known key found for this signature in database
GPG key ID: 9675C32163D88D30
7 changed files with 53 additions and 29 deletions

View file

@ -1,27 +0,0 @@
// board_platform must match TARGET_BOARD_PLATFORM
board_platform = "universal7884B"
cmd_and = " && "
hwc = "hwcomposer." + board_platform
hwcomposer = "$(productOut)/vendor/lib64/hw/" + hwc + ".so"
original_symbol = "_Z27exynos_acceptDisplayChangesP11hwc2_devicem"
custom_symbol = "_Z27exynos_acceptDisplayChangesP12hwc2_devicem"
cc_library_shared {
name: "libhwcomposer_shim",
srcs: [
"hwcomposer_shim.cpp"
],
required: ["libhwccomposer-patch"],
vendor: true,
}
7884B_build_command {
name: "libhwccomposer-patch",
cmd: "mkdir -p $(productOut)/vendor/lib64/hw" + cmd_and +
"sed -i s/" + original_symbol + "/" + custom_symbol + "/g " + hwcomposer + cmd_and +
"patchelf --add-needed libhwcomposer_shim.so" + hwcomposer,
required: [hwcomposer],
}

View file

@ -1,2 +0,0 @@
#include <hwcomposer2.h>
extern "C" void _Z27exynos_acceptDisplayChangesP12hwc2_devicem(hwc2_device*, unsigned long) {}