Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
D
device_xiaomi_sm8350-common
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LMODroid-Devices
device_xiaomi_sm8350-common
Commits
cab4afd2
Commit
cab4afd2
authored
3 years ago
by
Arian
Browse files
Options
Downloads
Patches
Plain Diff
sm8350-common: vibrator: Make the usage of effect stream optional
Change-Id: I45f15112b16b04a9a012bf26e366aaebaa3a3bef
parent
8463e24d
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
BoardConfigCommon.mk
+6
-0
6 additions, 0 deletions
BoardConfigCommon.mk
vibrator/aidl/Android.bp
+26
-1
26 additions, 1 deletion
vibrator/aidl/Android.bp
with
32 additions
and
1 deletion
BoardConfigCommon.mk
+
6
−
0
View file @
cab4afd2
...
...
@@ -180,6 +180,12 @@ BOARD_PLAT_PRIVATE_SEPOLICY_DIR += $(COMMON_PATH)/sepolicy/private
BOARD_PLAT_PUBLIC_SEPOLICY_DIR
+=
$(
COMMON_PATH
)
/sepolicy/public
BOARD_SEPOLICY_DIRS
+=
$(
COMMON_PATH
)
/sepolicy/vendor
# Soong
SOONG_CONFIG_NAMESPACES
+=
xiaomiSm8350Vars
SOONG_CONFIG_xiaomiSm8350Vars
+=
\
vibrator_use_effect_stream
SOONG_CONFIG_xiaomiSm8350Vars_vibrator_use_effect_stream
?=
false
# Verified Boot
BOARD_AVB_ENABLE
:=
true
BOARD_AVB_MAKE_VBMETA_IMAGE_ARGS
+=
--flags
3
...
...
This diff is collapsed.
Click to expand it.
vibrator/aidl/Android.bp
+
26
−
1
View file @
cab4afd2
Common_CFlags = ["-Wall"]
Common_CFlags += ["-Werror"]
soong_config_module_type {
name: "vibrator_effect_stream",
module_type: "cc_defaults",
config_namespace: "xiaomiSm8350Vars",
bool_variables: ["vibrator_use_effect_stream"],
properties: [
"cflags",
"shared_libs",
],
}
vibrator_effect_stream {
name: "vibrator_effect_stream_defaults",
soong_config_variables: {
vibrator_use_effect_stream: {
cflags: ["-DUSE_EFFECT_STREAM"],
shared_libs: [
"libqtivibratoreffect",
],
},
},
}
cc_library_shared {
name: "vendor.qti.hardware.vibrator.impl.xiaomi_sm8350",
defaults: [
"vibrator_effect_stream_defaults",
],
vendor: true,
cflags: Common_CFlags,
srcs: [
...
...
@@ -12,7 +38,6 @@ cc_library_shared {
"libcutils",
"libutils",
"liblog",
"libqtivibratoreffect",
"libbinder_ndk",
"android.hardware.vibrator-ndk_platform",
],
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment