Skip to content

Commit

Permalink
Splitting repositories for EEA / TEE support
Browse files Browse the repository at this point in the history
  • Loading branch information
ADeadTrousers committed Apr 14, 2021
1 parent ae966eb commit 739a266
Show file tree
Hide file tree
Showing 14 changed files with 33 additions and 110 deletions.
2 changes: 1 addition & 1 deletion Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

LOCAL_PATH := $(call my-dir)

ifeq ($(TARGET_DEVICE),Atom_XL)
ifneq ($(filter Atom_XL_EEA ,$(TARGET_DEVICE)),)
subdir_makefiles=$(call first-makefiles-under,$(LOCAL_PATH))
$(foreach mk,$(subdir_makefiles),$(info including $(mk) ...)$(eval include $(mk)))
endif
2 changes: 1 addition & 1 deletion AndroidProducts.mk
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
PRODUCT_MAKEFILES := \
$(LOCAL_DIR)/lineage_Atom_XL.mk
$(LOCAL_DIR)/lineage_Atom_XL_EEA.mk
13 changes: 6 additions & 7 deletions BoardConfig.mk
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,11 @@
# SPDX-License-Identifier: Apache-2.0
#

DEVICE_PATH := device/Unihertz/Atom_XL
-include device/Unihertz/Atom_XL/BoardConfigCommon.mk

-include device/Unihertz/Atom_LXL/BoardConfigCommon.mk
DEVICE_REGION_PATH := device/Unihertz/Atom_XL_EEA

BOARD_PLAT_PRIVATE_SEPOLICY_DIR += \
$(DEVICE_PATH)/sepolicy/private

# Properties
TARGET_PRODUCT_PROP += $(DEVICE_PATH)/product.prop
# Kernel
TARGET_PREBUILT_KERNEL := $(DEVICE_REGION_PATH)/prebuilt/Image.gz
BOARD_PREBUILT_DTBOIMAGE := $(DEVICE_REGION_PATH)/prebuilt/dtbo.img
BOARD_PREBUILT_DTBIMAGE_DIR := $(DEVICE_REGION_PATH)/prebuilt/dtb
22 changes: 16 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
Device configuration for Unihertz Atom XL (Atom_XL)
Device configuration for Unihertz Atom XL (Atom_XL) EEA (european union)
=================================================
This device tree is intended for the usage in a LineageOS or similar building environment.
If you are looking for a special device tree for the usage in a TWRP or similar environment head over to https://github.com/ADeadTrousers/twrp_device_Unihertz_Atom_XL.
This model device tree is intended for the usage in a LineageOS or similar building environment.
If you are looking for a special device tree for the usage in a TWRP or similar environment head over to https://github.com/ADeadTrousers/twrp_device_Unihertz_Atom_LXL.

The Unihertz Atom XL (codenamed simply _"Atom_XL"_) is a rugged small smartphone from Unihertz, released in July 2020. It is similar to the Atom L but with integrated amateur radio support.
The Unihertz Atom XL (codenamed simply _"Atom_XL"_) is a rugged small smartphone from Unihertz, released in July 2020. It is similar to the Atom L but with an integrated digital mobile radio (DMR).

![](docs/images/atom_xl.png)
![](https://github.com/ADeadTrousers/android_device_Unihertz_Atom_XL/blob/master/docs/images/atom_xl.png)

| Basic | Spec Sheet |
| -----------------------:|:------------------------------------------------------------------------------------------------------------------------------ |
Expand All @@ -20,6 +20,16 @@ The Unihertz Atom XL (codenamed simply _"Atom_XL"_) is a rugged small smartphone
| Camera (Rear - Main) | 48MP |
| Camera (Front) | 8MP |

# Dependencies

Additionally to this region device tree, you'll need the common device tree

- [Atom LXL](https://github.com/ADeadTrousers/android_device_Unihertz_Atom_LXL)

and the model device tree

- [Atom XL Model)](https://github.com/ADeadTrousers/android_device_Unihertz_Atom_XL)

## Documentations

- [HOW-TO-BUILD.md](https://github.com/ADeadTrousers/android_device_Unihertz_Atom_LXL/blob/master/docs/HOW-TO-BUILD.md) - Building instructions for LineageOS 17.1.
Expand All @@ -33,4 +43,4 @@ The Unihertz Atom XL (codenamed simply _"Atom_XL"_) is a rugged small smartphone
## Special Thanks To

- [PeterCxy from the XDA forum](https://forum.xda-developers.com/member.php?u=5351691) for helping me and providing the device tree for Atom L.
- [The device tree for the Atom L](https://cgit.typeblog.net/android/device/unihertz/Atom_L/) which was a great step-by-step guide to complete the Atom XL.
- [The device tree for the Atom L](https://cgit.typeblog.net/android/device/unihertz/Atom_L/) which was a great step-by-step guide on how to setup my own device tree.
13 changes: 0 additions & 13 deletions app/Intercom/Android.mk

This file was deleted.

32 changes: 0 additions & 32 deletions bluetooth/include/bdroid_buildcfg.h

This file was deleted.

9 changes: 0 additions & 9 deletions device.mk

This file was deleted.

Binary file removed docs/images/atom_xl.png
Binary file not shown.
4 changes: 2 additions & 2 deletions extract-files.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@

set -e

export DEVICE=Atom_XL
export DEVICE=Atom_XL_EEA
export VENDOR=Unihertz

MY_DIR="${BASH_SOURCE%/*}"
if [[ ! -d "${MY_DIR}" ]]; then MY_DIR="${PWD}"; fi

LINEAGE_ROOT="${MY_DIR}"/../../..

"${LINEAGE_ROOT}/device/${VENDOR}/Atom_LXL/extract-files-common.sh" "$@"
"${LINEAGE_ROOT}/device/${VENDOR}/Atom_XL/extract-files.sh" "$@"
9 changes: 5 additions & 4 deletions lineage_Atom_XL.mk → lineage_Atom_XL_EEA.mk
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,15 @@ $(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk)
$(call inherit-product, $(SRC_TARGET_DIR)/product/full_base_telephony.mk)

# Inherit from Atom_XL device
$(call inherit-product, device/Unihertz/Atom_XL/device.mk)
$(call inherit-product-if-exists, vendor/Unihertz/Atom_XL_EEA/Atom_XL_EEA-vendor.mk)
$(call inherit-product, device/Unihertz/Atom_LXL/deviceCommon.mk)

# Inherit some common Lineage stuff.
$(call inherit-product, vendor/lineage/config/common_full_phone.mk)

# Device identifier. This must come after all inclusions.
PRODUCT_NAME := lineage_Atom_XL
PRODUCT_DEVICE := Atom_XL
PRODUCT_NAME := lineage_Atom_XL_EEA
PRODUCT_DEVICE := Atom_XL_EEA
PRODUCT_BRAND := Unihertz
PRODUCT_MODEL := Atom_XL
PRODUCT_MANUFACTURER := Unihertz
Expand All @@ -31,7 +32,7 @@ TARGET_SCREEN_WIDTH := 640
# Build info
BUILD_FINGERPRINT := "Unihertz/Atom_XL_EEA/Atom_XL:10/QP1A.190711.020/root.20200923.160250:user/release-keys"
PRODUCT_BUILD_PROP_OVERRIDES += \
TARGET_DEVICE=Atom_XL \
TARGET_DEVICE=Atom_XL_EEA \
PRODUCT_NAME=Atom_XL_EEA \
PRIVATE_BUILD_DESC="Atom_XL_EEA-user 10 QP1A.190711.020 root.20200923.160250 release-keys"

Expand Down
10 changes: 0 additions & 10 deletions product.prop

This file was deleted.

22 changes: 0 additions & 22 deletions proprietary-files.txt

This file was deleted.

1 change: 0 additions & 1 deletion sepolicy/private/service_contexts

This file was deleted.

4 changes: 2 additions & 2 deletions setup-makefiles.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

set -e

export DEVICE=Atom_XL
export DEVICE=Atom_XL_EEA
export VENDOR=Unihertz
export INITIAL_COPYRIGHT_YEAR=2020

Expand All @@ -26,4 +26,4 @@ if [[ ! -d "${MY_DIR}" ]]; then MY_DIR="${PWD}"; fi

LINEAGE_ROOT="${MY_DIR}"/../../..

"${LINEAGE_ROOT}/device/${VENDOR}/Atom_LXL/setup-makefiles-common.sh"
"${LINEAGE_ROOT}/device/${VENDOR}/Atom_XL/setup-makefiles.sh"

0 comments on commit 739a266

Please sign in to comment.