89 lines
2.4 KiB
Diff
89 lines
2.4 KiB
Diff
From eda5a305da60f3e10b1d9173d5812738a72ecb07 Mon Sep 17 00:00:00 2001
|
|
From: harvey186 <harvey186@hotmail.com>
|
|
Date: Wed, 10 Jan 2024 12:08:02 +0100
|
|
Subject: [PATCH] generate_sh
|
|
|
|
---
|
|
generate.sh | 30 ++++++------------------------
|
|
1 file changed, 6 insertions(+), 24 deletions(-)
|
|
|
|
diff --git a/generate.sh b/generate.sh
|
|
index 461eff1..b3d80c4 100644
|
|
--- a/generate.sh
|
|
+++ b/generate.sh
|
|
@@ -15,8 +15,8 @@ fi
|
|
echo 'PRODUCT_MAKEFILES := \' > AndroidProducts.mk
|
|
|
|
for part in a ab;do
|
|
- for apps in vanilla gapps foss gapps-go;do
|
|
- for arch in arm64 arm a64;do
|
|
+ for apps in vanilla;do
|
|
+ for arch in arm64 a64;do
|
|
for su in yes no;do
|
|
apps_suffix=""
|
|
apps_script=""
|
|
@@ -24,29 +24,11 @@ for part in a ab;do
|
|
extra_packages=""
|
|
vndk="vndk.mk"
|
|
optional_base=""
|
|
- if [ "$apps" == "gapps" ];then
|
|
- apps_suffix="g"
|
|
- apps_script='$(call inherit-product, device/phh/treble/gapps.mk)'
|
|
- apps_name="with GApps"
|
|
- fi
|
|
- if [ "$apps" == "gapps-go" ];then
|
|
- apps_suffix="o"
|
|
- apps_script='$(call inherit-product, device/phh/treble/gapps-go.mk)'
|
|
- apps_name="Go"
|
|
- fi
|
|
- if [ "$apps" == "foss" ];then
|
|
- apps_suffix="f"
|
|
- apps_script='$(call inherit-product, vendor/foss/foss.mk)'
|
|
- apps_name="with FOSS apps"
|
|
- fi
|
|
if [ "$apps" == "vanilla" ];then
|
|
apps_suffix="v"
|
|
apps_script=''
|
|
apps_name="vanilla"
|
|
fi
|
|
- if [ "$arch" == "arm" ];then
|
|
- vndk="vndk-binder32.mk"
|
|
- fi
|
|
if [ "$arch" == "a64" ];then
|
|
vndk="vndk32.mk"
|
|
fi
|
|
@@ -64,7 +46,7 @@ for part in a ab;do
|
|
optional_base='$(call inherit-product, device/phh/treble/base-sas.mk)'
|
|
fi
|
|
|
|
- target="treble_${arch}_${part_suffix}${apps_suffix}${su_suffix}"
|
|
+ target="leos_${arch}_${part_suffix}${apps_suffix}${su_suffix}"
|
|
|
|
baseArch="$arch"
|
|
if [ "$arch" = "a64" ];then
|
|
@@ -77,18 +59,18 @@ for part in a ab;do
|
|
fi
|
|
|
|
cat > ${target}.mk << EOF
|
|
-TARGET_GAPPS_ARCH := ${baseArch}
|
|
include build/make/target/product/aosp_${baseArch}.mk
|
|
\$(call inherit-product, device/phh/treble/base.mk)
|
|
+\$(call inherit-product, vendor/LeOS/leos.mk)
|
|
$optional_base
|
|
$apps_script
|
|
$rom_script
|
|
|
|
PRODUCT_NAME := $target
|
|
-PRODUCT_DEVICE := tdgsi_${arch}_$part
|
|
+PRODUCT_DEVICE := leos_${arch}_$part
|
|
PRODUCT_BRAND := google
|
|
PRODUCT_SYSTEM_BRAND := google
|
|
-PRODUCT_MODEL := TrebleDroid $apps_name
|
|
+PRODUCT_MODEL := LeOS-A14
|
|
|
|
# Overwrite the inherited "emulator" characteristics
|
|
PRODUCT_CHARACTERISTICS := device
|
|
--
|
|
2.34.1
|
|
|