Refactor twrp target

TeamWin is now targeting aosp to build twrp. Make a separate target
to allow differentiating twrp and normal aosp. Include the lineage
makefile for the unified build flags. The other flags wont apply
when only building recovery

Change-Id: I8d067b50d02d6e20e8865bdc4dcc414dd73b4c4b
This commit is contained in:
Aaron Kling committed 2022-04-07 02:47:47 -05:00
1 parent 8a5697a9c6
commit 659344ee46
4 files changed
+14 -38

No files matched your search

+1 -1
View File
@@ -17,4 +17,4 @@
PRODUCT_MAKEFILES := \
$(LOCAL_DIR)/full_foster.mk \
$(LOCAL_DIR)/lineage_foster.mk \
$(LOCAL_DIR)/omni_foster.mk
$(LOCAL_DIR)/twrp_foster.mk
-24
View File
@@ -1,24 +0,0 @@
# Copyright (C) 2021 The LineageOS Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# Unified device support
TARGET_INIT_VENDOR_LIB := //device/nvidia/foster:libinit_foster
PRODUCT_VENDOR_PROPERTY_BLACKLIST := \
ro.product.vendor.device \
ro.product.vendor.model \
ro.product.vendor.name \
ro.vendor.build.fingerprint
PRODUCT_PACKAGES += \
init_tegra \
resize2fs_static
+9 -9
View File
@@ -12,20 +12,20 @@
# See the License for the specific language governing permissions and
# limitations under the License.
TARGET_KERNEL_CONFIG := tegra_android_recovery_defconfig
BOARD_KERNEL_CMDLINE := androidboot.selinux=permissive
LZMA_RAMDISK_TARGETS := recovery
TARGET_KERNEL_CONFIG := tegra_android_recovery_defconfig
BOARD_KERNEL_CMDLINE := androidboot.selinux=permissive
BOARD_RAMDISK_USE_LZMA := true
PRODUCT_COPY_FILES += \
device/nvidia/foster/twrp/twrp.fstab.emmc:recovery/root/etc/twrp.fstab.emmc \
device/nvidia/foster/twrp/twrp.fstab.icosa_emmc:recovery/root/etc/twrp.fstab.icosa_emmc \
device/nvidia/foster/twrp/twrp.fstab.icosa_sd:recovery/root/etc/twrp.fstab.icosa_sd \
device/nvidia/foster/twrp/twrp.fstab.sata:recovery/root/etc/twrp.fstab.sata \
device/nvidia/foster/twrp/twrp.fstab.sd:recovery/root/etc/twrp.fstab.sd
device/nvidia/foster/twrp/twrp.fstab.emmc:recovery/root/system/etc/twrp.fstab.emmc \
device/nvidia/foster/twrp/twrp.fstab.icosa_emmc:recovery/root/system/etc/twrp.fstab.icosa_emmc \
device/nvidia/foster/twrp/twrp.fstab.icosa_sd:recovery/root/system/etc/twrp.fstab.icosa_sd \
device/nvidia/foster/twrp/twrp.fstab.sata:recovery/root/system/etc/twrp.fstab.sata \
device/nvidia/foster/twrp/twrp.fstab.sd:recovery/root/system/etc/twrp.fstab.sd
TW_THEME := landscape_hdpi
TW_NO_SCREEN_TIMEOUT := true
TW_NO_SCREEN_BLANK := true
TW_BRIGHTNESS_PATH := /sys/class/backlight/pwm-backlight/brightness
TW_MAX_BRIGHTNESS := 255
TW_INPUT_BLACKLIST := "Nintendo Switch Left Joy-Con Serial\x0aNintendo Switch Right Joy-Con Serial"
TW_INPUT_BLACKLIST := "Nintendo Switch Left Joy-Con Serial\\x0aNintendo Switch Right Joy-Con Serial"
+4 -4
View File
@@ -12,12 +12,12 @@
# See the License for the specific language governing permissions and
# limitations under the License.
# Inherit some common omni stuff.
$(call inherit-product, vendor/omni/config/common.mk)
# Inherit some common twrp stuff.
$(call inherit-product, vendor/twrp/config/common.mk)
# Inherit device configuration for foster.
include device/nvidia/foster/omni.mk
include device/nvidia/foster/lineage.mk
$(call inherit-product, device/nvidia/foster/full_foster.mk)
PRODUCT_NAME := omni_foster
PRODUCT_NAME := twrp_foster
PRODUCT_DEVICE := foster