-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sunfish: Set up proprietary files extraction & build vendor image
* Blobs that can be built from source code are built from source, except librmnetctl. * The proprietary files lists are generated by comparing stock partition contents with AOSP generated partitions. * Various lib and folder symlinks need to be created. Co-authored-by: Bruno Martins <[email protected]> Co-authored-by: Chirayu Desai <[email protected]> Co-authored-by: Christopher N. Hesse <[email protected]> Co-authored-by: Dan Pasanen <[email protected]> Co-authored-by: Eamon Powell <[email protected]> Co-authored-by: Josh Chasky <[email protected]> Co-authored-by: "Josh Fox (XlxFoXxlX)" <[email protected]> Co-authored-by: Michael Bestas <[email protected]> Co-authored-by: Nolen Johnson <[email protected]> Co-authored-by: Rashed Abdel-Tawab <[email protected]> Co-authored-by: razorloves <[email protected]> Change-Id: I17f79b417a8f0d022bec9c6b5f37d03b842d43e1
- Loading branch information
1 parent
e8768e2
commit 59ec265
Showing
11 changed files
with
3,707 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,3 +15,155 @@ PRODUCT_COPY_FILES += \ | |
PRODUCT_PACKAGES += \ | ||
PresencePolling \ | ||
RcsService | ||
|
||
# Build necessary packages for system_ext | ||
|
||
# Display | ||
PRODUCT_PACKAGES += \ | ||
[email protected] \ | ||
[email protected] \ | ||
[email protected] \ | ||
[email protected] \ | ||
[email protected] \ | ||
[email protected] \ | ||
[email protected] \ | ||
[email protected] \ | ||
[email protected] \ | ||
[email protected] \ | ||
[email protected] | ||
|
||
# Build necessary packages for vendor | ||
|
||
# Bluetooth | ||
PRODUCT_PACKAGES += \ | ||
[email protected] \ | ||
[email protected] \ | ||
[email protected] \ | ||
[email protected] \ | ||
[email protected] | ||
|
||
# CHRE | ||
PRODUCT_PACKAGES += \ | ||
chre | ||
|
||
# Codec2 | ||
PRODUCT_PACKAGES += \ | ||
[email protected] \ | ||
libavservices_minijail.vendor \ | ||
[email protected] \ | ||
libcodec2_vndk.vendor \ | ||
libmedia_ecoservice.vendor \ | ||
[email protected] | ||
|
||
# Confirmation UI | ||
PRODUCT_PACKAGES += \ | ||
[email protected]:64 \ | ||
libteeui_hal_support.vendor:64 | ||
|
||
# Display | ||
PRODUCT_PACKAGES += \ | ||
libdisplayconfig.qti \ | ||
[email protected] \ | ||
[email protected] \ | ||
[email protected] | ||
|
||
# GPS | ||
PRODUCT_PACKAGES += \ | ||
flp.conf | ||
|
||
# HIDL | ||
PRODUCT_PACKAGES += \ | ||
libhwbinder.vendor | ||
|
||
# Identity credential | ||
PRODUCT_PACKAGES += \ | ||
android.hardware.identity-support-lib.vendor:64 \ | ||
android.hardware.identity_credential.xml | ||
|
||
# Json | ||
PRODUCT_PACKAGES += \ | ||
libjson | ||
|
||
# Nos | ||
PRODUCT_PACKAGES += \ | ||
libnos:64 \ | ||
libnosprotos:64 \ | ||
libnos_client_citadel:64 \ | ||
libnos_datagram:64 \ | ||
libnos_datagram_citadel:64 \ | ||
libnos_transport:64 \ | ||
nos_app_avb:64 \ | ||
nos_app_identity:64 \ | ||
nos_app_keymaster:64 \ | ||
nos_app_weaver:64 | ||
|
||
# Protobuf | ||
PRODUCT_PACKAGES += \ | ||
libprotobuf-cpp-full-vendorcompat | ||
|
||
# Sensor listener | ||
PRODUCT_PACKAGES += \ | ||
lib_sensor_listener | ||
|
||
# Tinycompress | ||
PRODUCT_PACKAGES += \ | ||
libtinycompress | ||
|
||
# VNDK FWK detect | ||
PRODUCT_PACKAGES += \ | ||
libqti_vndfwk_detect.vendor \ | ||
libvndfwk_detect_jni.qti.vendor | ||
|
||
# Wi-Fi | ||
PRODUCT_PACKAGES += \ | ||
libwifi-hal:64 \ | ||
libwifi-hal-qcom | ||
|
||
# Misc interfaces | ||
PRODUCT_PACKAGES += \ | ||
[email protected] \ | ||
[email protected]:64 \ | ||
[email protected] \ | ||
[email protected]:64 \ | ||
[email protected]:64 \ | ||
[email protected]:64 \ | ||
[email protected]:64 \ | ||
[email protected]:64 \ | ||
[email protected]:64 \ | ||
[email protected] \ | ||
android.hardware.input.common-V1-ndk.vendor:64 \ | ||
android.hardware.input.processor-V1-ndk.vendor:64 \ | ||
[email protected] \ | ||
[email protected] \ | ||
[email protected] \ | ||
[email protected]:64 \ | ||
[email protected]:64 \ | ||
[email protected]:64 \ | ||
[email protected]:64 \ | ||
[email protected]:64 \ | ||
android.hardware.power-V1-ndk.vendor \ | ||
[email protected]:64 \ | ||
[email protected]:64 \ | ||
[email protected]:64 \ | ||
[email protected]:64 \ | ||
[email protected]:64 \ | ||
[email protected]:64 \ | ||
[email protected]:64 \ | ||
[email protected]:64 \ | ||
[email protected]:64 \ | ||
[email protected]:64 \ | ||
[email protected] \ | ||
[email protected] \ | ||
[email protected] \ | ||
[email protected] \ | ||
[email protected]:64 \ | ||
[email protected]:64 \ | ||
[email protected]:64 \ | ||
[email protected]:64 \ | ||
[email protected]:64 \ | ||
[email protected]:64 \ | ||
[email protected]:64 \ | ||
[email protected]:64 | ||
|
||
# Properties | ||
TARGET_VENDOR_PROP := $(LOCAL_PATH)/vendor.prop |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
#!/bin/bash | ||
# | ||
# Copyright (C) 2016 The CyanogenMod Project | ||
# Copyright (C) 2017-2021 The LineageOS Project | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# | ||
|
||
set -e | ||
|
||
DEVICE=sunfish | ||
VENDOR=google | ||
|
||
# Load extract_utils and do some sanity checks | ||
MY_DIR="${BASH_SOURCE%/*}" | ||
if [[ ! -d "${MY_DIR}" ]]; then MY_DIR="${PWD}"; fi | ||
|
||
ANDROID_ROOT="${MY_DIR}/../../.." | ||
|
||
HELPER="${ANDROID_ROOT}/tools/extract-utils/extract_utils.sh" | ||
if [ ! -f "${HELPER}" ]; then | ||
echo "Unable to find helper script at ${HELPER}" | ||
exit 1 | ||
fi | ||
source "${HELPER}" | ||
|
||
# Default to sanitizing the vendor folder before extraction | ||
CLEAN_VENDOR=true | ||
|
||
KANG= | ||
SECTION= | ||
|
||
while [ "${#}" -gt 0 ]; do | ||
case "${1}" in | ||
-n | --no-cleanup ) | ||
CLEAN_VENDOR=false | ||
;; | ||
-k | --kang ) | ||
KANG="--kang" | ||
;; | ||
-s | --section ) | ||
SECTION="${2}"; shift | ||
CLEAN_VENDOR=false | ||
;; | ||
* ) | ||
SRC="${1}" | ||
;; | ||
esac | ||
shift | ||
done | ||
|
||
if [ -z "${SRC}" ]; then | ||
SRC="adb" | ||
fi | ||
|
||
# Initialize the helper | ||
setup_vendor "${DEVICE}" "${VENDOR}" "${ANDROID_ROOT}" false "${CLEAN_VENDOR}" | ||
|
||
extract "${MY_DIR}/proprietary-files.txt" "${SRC}" "${KANG}" --section "${SECTION}" | ||
extract "${MY_DIR}/proprietary-files-vendor.txt" "${SRC}" "${KANG}" --section "${SECTION}" | ||
|
||
"${MY_DIR}/setup-makefiles.sh" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.