Skip to content

Commit a544ba7

Browse files
committed
sdm845: add support for Oneplus6T
1 parent 0c2db53 commit a544ba7

File tree

7 files changed

+76
-4
lines changed

7 files changed

+76
-4
lines changed

Android.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
# to only building on ARM if they include assembly. Individual makefiles
2121
# are responsible for having their own logic, for fine-grained control.
2222

23-
ifneq ($(filter axolotl beryllium enchilada, $(TARGET_DEVICE)),)
23+
ifneq ($(filter axolotl beryllium enchilada fajita, $(TARGET_DEVICE)),)
2424

2525
LOCAL_PATH := $(call my-dir)
2626

AndroidProducts.mk

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,11 @@
1212
PRODUCT_MAKEFILES := \
1313
axolotl:$(LOCAL_DIR)/axolotl/axolotl.mk \
1414
beryllium:$(LOCAL_DIR)/beryllium/beryllium.mk \
15-
enchilada:$(LOCAL_DIR)/enchilada/enchilada.mk
15+
enchilada:$(LOCAL_DIR)/enchilada/enchilada.mk \
16+
fajita:$(LOCAL_DIR)/fajita/fajita.mk
1617

1718
COMMON_LUNCH_CHOICES := \
1819
axolotl-userdebug \
1920
beryllium-userdebug \
20-
enchilada-userdebug
21+
enchilada-userdebug \
22+
fajita-userdebug

build/tasks/kernel.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ifneq ($(filter axolotl beryllium enchilada, $(TARGET_DEVICE)),)
1+
ifneq ($(filter axolotl beryllium enchilada fajita, $(TARGET_DEVICE)),)
22

33
IMAGE_GZ := device/generic/sdm845/shared/prebuilt-kernel/android-$(TARGET_KERNEL_USE)/Image.gz
44
DTB := $(wildcard device/generic/sdm845/shared/prebuilt-kernel/android-$(TARGET_KERNEL_USE)/*.dtb)

fajita/BoardConfig.mk

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
include device/generic/sdm845/shared/BoardConfig.mk
2+
3+
# Copied from https://github.com/LineageOS/android_device_oneplus_sdm845-common/blob/lineage-16.0/BoardConfigCommon.mk
4+
# Board Information
5+
TARGET_BOOTLOADER_BOARD_NAME := fajita
6+
TARGET_BOARD_PLATFORM := fajita
7+
TARGET_SCREEN_DENSITY := 400
8+
9+
# Kernel/boot.img Configuration
10+
BOARD_KERNEL_CMDLINE += androidboot.hardware=fajita
11+
12+
# Image Configuration
13+
BOARD_SYSTEMIMAGE_PARTITION_SIZE := 2998927360
14+
BOARD_USERDATAIMAGE_PARTITION_SIZE := 57453555712

fajita/device.mk

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
#
2+
# Copyright (C) 2011 The Android Open-Source Project
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
#
16+
17+
PRODUCT_COPY_FILES := \
18+
$(LOCAL_PATH)/fstab.ramdisk:$(TARGET_COPY_OUT_RAMDISK)/fstab.fajita \
19+
$(LOCAL_PATH)/fstab.ramdisk:$(TARGET_COPY_OUT_VENDOR)/etc/fstab.fajita \
20+
device/generic/sdm845/shared/etc/audio.sdm845.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio.fajita.xml \
21+
device/generic/sdm845/shared/init.sdm845.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.fajita.rc \
22+
device/generic/sdm845/shared/init.sdm845.usb.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.fajita.usb.rc \
23+
device/generic/sdm845/shared/key_layout.kl:$(TARGET_COPY_OUT_VENDOR)/usr/keylayout/fajita.kl
24+
25+
# Build generic Audio HAL
26+
PRODUCT_PACKAGES := audio.primary.fajita
27+
28+
# Build generic lights HAL
29+
PRODUCT_PACKAGES += lights.fajita

fajita/fajita.mk

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
ifndef TARGET_KERNEL_USE
2+
TARGET_KERNEL_USE := mainline
3+
endif
4+
5+
KERNEL_MODS := $(wildcard device/generic/sdm845/shared/prebuilt-kernel/android-$(TARGET_KERNEL_USE)/*.ko)
6+
7+
# Following modules go to vendor partition
8+
# msm.ko is too big (31M) for ramdisk
9+
VENDOR_KERN_MODS := %/qcom_q6v5_adsp.ko %/qcom_q6v5_mss.ko %/qcom_q6v5_pas.ko
10+
BOARD_VENDOR_KERNEL_MODULES := $(filter $(VENDOR_KERN_MODS),$(KERNEL_MODS))
11+
12+
# All other modules go to ramdisk
13+
BOARD_GENERIC_RAMDISK_KERNEL_MODULES := $(filter-out $(VENDOR_KERN_MODS),$(KERNEL_MODS))
14+
15+
# Inherit the full_base and device configurations
16+
$(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk)
17+
$(call inherit-product, device/generic/sdm845/fajita/device.mk)
18+
$(call inherit-product, device/generic/sdm845/shared/device.mk)
19+
$(call inherit-product, $(SRC_TARGET_DIR)/product/full_base.mk)
20+
21+
# Product overrides
22+
PRODUCT_NAME := fajita
23+
PRODUCT_DEVICE := fajita
24+
PRODUCT_BRAND := AOSP

fajita/fstab.ramdisk

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
/dev/block/platform/soc@0/1d84000.ufshc/by-name/system /system ext4 noatime,ro,errors=panic wait,first_stage_mount,slotselect
2+
/dev/block/platform/soc@0/1d84000.ufshc/by-name/vendor /vendor ext4 noatime,ro,errors=panic wait,first_stage_mount,slotselect
3+
/dev/block/platform/soc@0/1d84000.ufshc/by-name/userdata /data ext4 discard,noatime,noauto_da_alloc,data=ordered,user_xattr,barrier=1 wait,formattable,quota

0 commit comments

Comments
 (0)