sdm845: add common sdm845 lunch target
This target builds a "generic" sdm845 device which should boot on all
SDM845 devices with common boot, vendor and system images.
diff --git a/sdm845/BoardConfig.mk b/sdm845/BoardConfig.mk
new file mode 100644
index 0000000..48e0d9d
--- /dev/null
+++ b/sdm845/BoardConfig.mk
@@ -0,0 +1,24 @@
+include device/generic/sdm845/BoardConfigCommon.mk
+
+# Copied from https://github.com/LineageOS/android_device_oneplus_sdm845-common/blob/lineage-16.0/BoardConfigCommon.mk
+# Board Information
+TARGET_BOOTLOADER_BOARD_NAME := sdm845
+TARGET_BOARD_PLATFORM := sdm845
+
+# Kernel/boot.img Configuration
+BOARD_KERNEL_BASE := 0x00000000
+BOARD_KERNEL_PAGESIZE := 4096
+BOARD_KERNEL_TAGS_OFFSET := 0x00000100
+BOARD_RAMDISK_OFFSET := 0x01000000
+BOARD_KERNEL_CMDLINE := earlycon earlyprintk console=ttyMSM0,115200n8 console=ttyGS0,115200 androidboot.console=ttyMSM0
+BOARD_KERNEL_CMDLINE += androidboot.hardware=sdm845 androidboot.boot_devices=soc@0/1d84000.ufshc
+BOARD_KERNEL_CMDLINE += firmware_class.path=/vendor/firmware/ init=/init printk.devkmsg=on
+BOARD_KERNEL_CMDLINE += deferred_probe_timeout=0
+BOARD_KERNEL_CMDLINE += fw_devlink=on selinux=0
+
+# Image Configuration
+BOARD_BOOTIMAGE_PARTITION_SIZE := 67108864 #64M
+BOARD_SYSTEMIMAGE_PARTITION_SIZE := 2998927360
+BOARD_USERDATAIMAGE_PARTITION_SIZE := 118112366592
+BOARD_VENDORIMAGE_PARTITION_SIZE := 536870912
+BOARD_FLASH_BLOCK_SIZE := 262144