Factor out the sdm845 device configuration

Moved files around in a new shared/ folder. Renamed relevant
files and updated relative path. No feature changes.

Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
[caleb: rebased on 734404a]
Signed-off-by: Caleb Connolly <caleb.connolly@linaro.org>
diff --git a/enchilada/enchilada.mk b/enchilada/enchilada.mk
new file mode 100644
index 0000000..5150b1c
--- /dev/null
+++ b/enchilada/enchilada.mk
@@ -0,0 +1,24 @@
+ifndef TARGET_KERNEL_USE
+TARGET_KERNEL_USE := mainline
+endif
+
+KERNEL_MODS := $(wildcard device/generic/sdm845/shared/prebuilt-kernel/android-$(TARGET_KERNEL_USE)/*.ko)
+
+# Following modules go to vendor partition
+# msm.ko is too big (31M) for ramdisk
+VENDOR_KERN_MODS := %/qcom_q6v5_adsp.ko %/qcom_q6v5_mss.ko %/qcom_q6v5_pas.ko
+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/enchilada/device.mk)
+$(call inherit-product, device/generic/sdm845/shared/device.mk)
+$(call inherit-product, $(SRC_TARGET_DIR)/product/full_base.mk)
+
+# Product overrides
+PRODUCT_NAME := enchilada
+PRODUCT_DEVICE := enchilada
+PRODUCT_BRAND := AOSP