Bringup ofox

This commit is contained in:
captaincookie200 2023-04-14 15:07:23 +02:00
commit d14b7a0d15
4 changed files with 9 additions and 5 deletions

View file

@ -15,6 +15,6 @@
#
PRODUCT_MAKEFILES := \
$(LOCAL_DIR)/twrp_a32.mk
$(LOCAL_DIR)/ofox_a32.mk
COMMON_LUNCH_CHOICES := twrp_a32-eng
COMMON_LUNCH_CHOICES := ofox_a32-eng

View file

@ -3,9 +3,8 @@
## How-to compile it:
```sh
export ALLOW_MISSING_DEPENDENCIES=true
. build/envsetup.sh
lunch twrp_a32-eng
lunch ofox_a32-eng
make recoveryimage
```

42
ofox_a32.mk Executable file
View file

@ -0,0 +1,42 @@
#
# Copyright (C) 2020 The Android Open Source 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.
#
DEVICE_PATH := device/samsung/a32
# Release name
PRODUCT_RELEASE_NAME := a32
# Inherit from common AOSP config
$(call inherit-product, $(SRC_TARGET_DIR)/product/base.mk)
# Inherit some common TWRP stuff.
$(call inherit-product, vendor/twrp/config/common.mk)
# Inherit device configuration
$(call inherit-product, $(DEVICE_PATH)/device.mk)
# Charger
PRODUCT_PACKAGES += \
charger_res_images
PRODUCT_COPY_FILES += $(call find-copy-subdir-files,*,$(DEVICE_PATH)/recovery/root,recovery/root)
## Device identifier. This must come after all inclusions
PRODUCT_NAME := ofox_a32
PRODUCT_DEVICE := a32
PRODUCT_MODEL := SM-A325F
PRODUCT_BRAND := samsung
PRODUCT_MANUFACTURER := samsung
PRODUCT_GMS_CLIENTID_BASE := android-samsung

5
vendorsetup.sh Normal file
View file

@ -0,0 +1,5 @@
export ALLOW_MISSING_DEPENDENCIES=true
export LC_ALL=C
export OF_FLASHLIGHT_ENABLE=0
export OF_MAINTAINER=Ahnet
export OF_NO_ADDITIONAL_MIUI_PROPS_CHECK=1