sdm845: add new "axolotl" target
This adds initial support for the SHIFT6mq (axolotl).
It launched with Android 10, makes use of dynamic partitions
and has A/B.
A/B is ignored in this bringup and will be added at a later
stage.
Change-Id: I88d42b009769a400b1f240d4e86018c0a7d90adb
Signed-off-by: Alexander Martinz <amartinz@shiftphones.com>
diff --git a/axolotl.mk b/axolotl.mk
new file mode 100644
index 0000000..2d3c5fa
--- /dev/null
+++ b/axolotl.mk
@@ -0,0 +1,23 @@
+ifndef TARGET_KERNEL_USE
+TARGET_KERNEL_USE := mainline
+endif
+
+KERNEL_MODS := $(wildcard device/generic/sdm845/prebuilt-kernel/android-$(TARGET_KERNEL_USE)/*.ko)
+
+# Following modules go to vendor partition
+VENDOR_KERN_MODS :=
+BOARD_VENDOR_KERNEL_MODULES := $(filter $(VENDOR_KERN_MODS),$(KERNEL_MODS))
+
+# All other modules go to ramdisk
+BOARD_GENERIC_RAMDISK_KERNEL_MODULES := $(filter-out $(VENDOR_KERN_MODS),$(KERNEL_MODS))
+
+# Inherit the full_base and device configurations
+$(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk)
+$(call inherit-product, device/generic/sdm845/axolotl/device.mk)
+$(call inherit-product, device/generic/sdm845/device-common.mk)
+$(call inherit-product, $(SRC_TARGET_DIR)/product/full_base.mk)
+
+# Product overrides
+PRODUCT_BRAND := AOSP
+PRODUCT_DEVICE := axolotl
+PRODUCT_NAME := axolotl