summaryrefslogtreecommitdiff
path: root/qcom
diff options
context:
space:
mode:
authorAmit Pundir <amit.pundir@linaro.org>2021-12-14 19:45:56 +0530
committerAmit Pundir <amit.pundir@linaro.org>2022-02-10 20:57:46 +0530
commitc0ad894bfadcce4be4778e1773aeb09f8f19ef47 (patch)
tree0b37cba5912518ae69736e8b7aabe6183990a37d /qcom
parentbf57637c5bf8889e2ff03792f82b5dbc120ec9d7 (diff)
db845c: Add rb5 support in db845c-userdebug build target
* Enabled multiple appended DTBs support to allow db845c boot.img/vendor_boot.img to boot on rb5 as well. * Introduced a vendor.hw property which will be used to run device specific services. * Folded Caleb's HDMI audio routing fix. Signed-off-by: Amit Pundir <amit.pundir@linaro.org> Change-Id: I779d01946ae359d5c405d959419e29460083e5df
Diffstat (limited to 'qcom')
-rw-r--r--qcom/init.qcom.rc8
-rw-r--r--qcom/set_hw.sh12
2 files changed, 20 insertions, 0 deletions
diff --git a/qcom/init.qcom.rc b/qcom/init.qcom.rc
index f97b502..38d8d00 100644
--- a/qcom/init.qcom.rc
+++ b/qcom/init.qcom.rc
@@ -1,3 +1,10 @@
+service set_hw /vendor/bin/set_hw.sh
+ class core
+ user root
+ group system
+ disabled
+ oneshot
+
service qrtr-ns /vendor/bin/qrtr-ns -f 1
class core
user root
@@ -27,6 +34,7 @@ service rmtfs /vendor/bin/rmtfs -o /dev/block/platform/soc@0/1d84000.ufshc/by-na
oneshot
on early-init
+ start set_hw
exec - root -- /vendor/bin/qrtr-cfg 1
start qrtr-ns
diff --git a/qcom/set_hw.sh b/qcom/set_hw.sh
new file mode 100644
index 0000000..98f76c3
--- /dev/null
+++ b/qcom/set_hw.sh
@@ -0,0 +1,12 @@
+#! /vendor/bin/sh
+# Set vendor.hw property to run device specific services
+#
+# grep the device name from /proc/device-tree/compatible
+
+HW=`/vendor/bin/cat /proc/device-tree/compatible | /vendor/bin/grep rb5`
+
+if [ -z "${HW}" ]; then
+ setprop vendor.hw db845c
+else
+ setprop vendor.hw rb5
+fi