Initial skeleton x86_64 support

* Needs proprietary files and toybox
This commit is contained in:
Paul Keith
2021-10-08 12:56:05 -05:00
parent b1d862e6a1
commit ea3ef2979c
11 changed files with 110 additions and 5 deletions

View File

@@ -1,4 +1,4 @@
For files in [arm/arm64/common/x86]/proprietary:
For files in [arm/arm64/common/x86/x86_64]/proprietary:
These are closed source/propietary/prebuilt files.
I do not own them, these are just here to make
your life easier when compiling the package.

View File

@@ -19,10 +19,13 @@ _make gapps_arm64_
_make gapps_x86_
- compile signed flashable GApps for x86
_make gapps_x86_64_
- compile signed flashable GApps for x86_64
Build inline with Android
-------------------
1. Sync this repo to $GAPPS_PATH where $GAPPS_PATH is the path to this repo
2. Include $GAPPS_PATH/$ARCH/$ARCH-vendor.mk where $ARCH is arm, arm64, or x86 depending on the device's architecture
2. Include $GAPPS_PATH/$ARCH/$ARCH-vendor.mk where $ARCH is arm, arm64, x86, or x86_64 depending on the device's architecture
Explanation of pinned blobs
-------------------

View File

@@ -20,3 +20,7 @@ gapps_arm64:
gapps_x86:
@echo "Compiling GApps for x86..."
@bash $(BUILD_GAPPS) x86 2>&1
gapps_x86_64:
@echo "Compiling GApps for x86_64..."
@bash $(BUILD_GAPPS) x86_64 2>&1

View File

@@ -4,6 +4,6 @@
LOCAL_PATH := $(call my-dir)
ifneq ($(filter arm arm64 x86,$(TARGET_ARCH)),)
ifneq ($(filter arm arm64 x86 x86_64,$(TARGET_ARCH)),)
endif

View File

@@ -0,0 +1,2 @@
-product/priv-app/SetupWizard/SetupWizard.apk;PRESIGNED|cae5849fdd55cf7ef4a7fde1a180ab8fb2cf8dfd
-product/priv-app/Velvet/Velvet.apk;PRESIGNED|131f57f1c772e1c08078e161e6ba5a7f79ed022f

View File

@@ -0,0 +1,4 @@
-product/priv-app/GmsCore/GmsCore.apk;PRESIGNED|3e73cf0f39fc502f1af48e327c335ff62f7f663c
-product/priv-app/Phonesky/Phonesky.apk;PRESIGNED|71fbadef425a5dcbda3d2c2264d0b28cabbeb2f9
product/lib/libjni_latinimegoogle.so|5e1e142c1ff8dcd97c9574f90d613c878bde0e79
product/lib64/libjni_latinimegoogle.so|5e1e142c1ff8dcd97c9574f90d613c878bde0e79

View File

@@ -38,7 +38,7 @@ fi
setup_vendor "$DEVICE_COMMON" "$VENDOR" "$ANDROID_ROOT" true
# Copyright headers
write_headers "arm arm64 x86"
write_headers "arm arm64 x86 x86_64"
# Common gapps
write_makefiles "$MY_DIR"/proprietary-files-common.txt
@@ -54,7 +54,7 @@ sed -i 's/TARGET_DEVICE/TARGET_ARCH/g' "$ANDROIDMK"
# We are done with common
write_footers
for DEVICE in arm arm64 x86; do
for DEVICE in arm arm64 x86 x86_64; do
# Reinitialize the helper for target gapps
setup_vendor "$DEVICE" "$VENDOR" "$ANDROID_ROOT"

56
x86_64/Android.bp Normal file
View File

@@ -0,0 +1,56 @@
// Automatically generated file. DO NOT MODIFY
//
// This file is generated by device/gapps/x86_64/setup-makefiles.sh
soong_namespace {
}
android_app_import {
name: "GmsCore",
owner: "gapps",
apk: "proprietary/product/priv-app/GmsCore/GmsCore.apk",
presigned: true,
dex_preopt: {
enabled: false,
},
privileged: true,
product_specific: true,
}
android_app_import {
name: "Phonesky",
owner: "gapps",
apk: "proprietary/product/priv-app/Phonesky/Phonesky.apk",
presigned: true,
dex_preopt: {
enabled: false,
},
privileged: true,
product_specific: true,
}
android_app_import {
name: "SetupWizard",
owner: "gapps",
apk: "proprietary/product/priv-app/SetupWizard/SetupWizard.apk",
overrides: ["Provision"],
presigned: true,
dex_preopt: {
enabled: false,
},
privileged: true,
product_specific: true,
}
android_app_import {
name: "Velvet",
owner: "gapps",
apk: "proprietary/product/priv-app/Velvet/Velvet.apk",
presigned: true,
dex_preopt: {
enabled: false,
},
privileged: true,
product_specific: true,
}

9
x86_64/Android.mk Normal file
View File

@@ -0,0 +1,9 @@
# Automatically generated file. DO NOT MODIFY
#
# This file is generated by device/gapps/x86_64/setup-makefiles.sh
LOCAL_PATH := $(call my-dir)
ifeq ($(TARGET_ARCH),x86_64)
endif

View File

@@ -0,0 +1,4 @@
# Automatically generated file. DO NOT MODIFY
#
# This file is generated by device/gapps/x86_64/setup-makefiles.sh

23
x86_64/x86_64-vendor.mk Normal file
View File

@@ -0,0 +1,23 @@
# Automatically generated file. DO NOT MODIFY
#
# This file is generated by device/gapps/x86_64/setup-makefiles.sh
PRODUCT_SOONG_NAMESPACES += \
vendor/gapps/x86_64
PRODUCT_COPY_FILES += \
vendor/gapps/x86_64/proprietary/product/lib/libjni_latinimegoogle.so:$(TARGET_COPY_OUT_PRODUCT)/lib/libjni_latinimegoogle.so \
vendor/gapps/x86_64/proprietary/product/lib64/libjni_latinimegoogle.so:$(TARGET_COPY_OUT_PRODUCT)/lib64/libjni_latinimegoogle.so
PRODUCT_PACKAGES += \
GmsCore \
Phonesky
ifeq ($(TARGET_IS_GROUPER),)
PRODUCT_PACKAGES += \
SetupWizard \
Velvet
endif
$(call inherit-product, vendor/gapps/common/common-vendor.mk)