summaryrefslogtreecommitdiff
path: root/rb5.mk
diff options
context:
space:
mode:
authorAmit Pundir <amit.pundir@linaro.org>2021-05-26 14:30:57 +0530
committerAmit Pundir <amit.pundir@linaro.org>2021-09-01 00:53:03 +0530
commite4ca84a8555cda76d8fd4f485522ed510a7a088b (patch)
treecfed04246e3b74d7cc10d4cf16d27f9b73375f2b /rb5.mk
parentc1584bde78f3f256cc862a5046e6ffdf452217e9 (diff)
downloaddragonboard-android-s-beta-5.tar.gz
rb5: Add support for Qcom Robotics RB5 development kitandroid-s-beta-5android-s-beta-5
* Add new lunch target "rb5-userdebug" * Boots android-mainline (3aa53d85a061) to UI * ADB works * If you are having display issues on your brand new RB5 kit then run the following set of adb commands to update the lt9611uxc firmware version: adb wait-for-device; adb root; adb shell "echo 1 > /sys/bus/i2c/devices/5-002b/lt9611uxc_firmware" Check installer/rb5/README for more details. Signed-off-by: Amit Pundir <amit.pundir@linaro.org> Change-Id: I2917de0375e95e17a88446474fdb256af769f73d
Diffstat (limited to 'rb5.mk')
-rw-r--r--rb5.mk26
1 files changed, 26 insertions, 0 deletions
diff --git a/rb5.mk b/rb5.mk
new file mode 100644
index 0000000..06e648e
--- /dev/null
+++ b/rb5.mk
@@ -0,0 +1,26 @@
+ifndef TARGET_KERNEL_USE
+TARGET_KERNEL_USE := mainline
+endif
+RB5_KERNEL_DIR := device/linaro/dragonboard-kernel/android-$(TARGET_KERNEL_USE)
+
+# Inherit the full_base and device configurations
+$(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk)
+$(call inherit-product, device/linaro/dragonboard/rb5/device.mk)
+$(call inherit-product, device/linaro/dragonboard/device-common.mk)
+$(call inherit-product, $(SRC_TARGET_DIR)/product/full_base.mk)
+
+# Product overrides
+PRODUCT_NAME := rb5
+PRODUCT_DEVICE := rb5
+PRODUCT_BRAND := Android
+
+ifndef RB5_USES_GKI
+ RB5_USES_GKI := true
+endif
+
+ifeq ($(RB5_USES_GKI), true)
+ RB5_MODS := $(wildcard $(RB5_KERNEL_DIR)/*.ko)
+ ifneq ($(RB5_MODS),)
+ BOARD_VENDOR_RAMDISK_KERNEL_MODULES += $(RB5_MODS)
+ endif
+endif