From 2e3886c01cdb9675a4ca2c3fb59be70407d94636 Mon Sep 17 00:00:00 2001 From: Jan Altensen Date: Thu, 29 Aug 2019 20:35:47 +0200 Subject: [PATCH] add extractors and proprietary-files.txt Change-Id: If84e9bc3c13772681a99b3c0fc23c1cf2f5f6d58 --- device.mk | 2 + extract-files.sh | 68 +++++++++++++++++++++++ proprietary-files.txt | 126 ++++++++++++++++++++++++++++++++++++++++++ setup-makefiles.sh | 48 ++++++++++++++++ 4 files changed, 244 insertions(+) create mode 100755 extract-files.sh create mode 100644 proprietary-files.txt create mode 100755 setup-makefiles.sh diff --git a/device.mk b/device.mk index ad5f3eb..1953ada 100644 --- a/device.mk +++ b/device.mk @@ -18,3 +18,5 @@ DEVICE_PACKAGE_OVERLAYS += $(LOCAL_PATH)/overlay # Inherit from common $(call inherit-product, device/samsung/universal8895-common/device-common.mk) + +$(call inherit-product-if-exists, vendor/samsung/greatlte/greatlte-vendor.mk) diff --git a/extract-files.sh b/extract-files.sh new file mode 100755 index 0000000..7a72ada --- /dev/null +++ b/extract-files.sh @@ -0,0 +1,68 @@ +#!/bin/bash +# +# Copyright (C) 2018-2019 The LineageOS 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. +# + +set -e + +VENDOR=samsung +DEVICE=greatlte + +# Load extract_utils and do some sanity checks +MY_DIR="${BASH_SOURCE%/*}" +if [[ ! -d "${MY_DIR}" ]]; then MY_DIR="${PWD}"; fi + +LINEAGE_ROOT="${MY_DIR}"/../../.. + +HELPER="${LINEAGE_ROOT}/vendor/lineage/build/tools/extract_utils.sh" +if [ ! -f "${HELPER}" ]; then + echo "Unable to find helper script at ${HELPER}" + exit 1 +fi +source "${HELPER}" + +SECTION= +KANG= + +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}" "${LINEAGE_ROOT}" true "${CLEAN_VENDOR}" + +extract "${MY_DIR}/proprietary-files.txt" "${SRC}" \ + "${KANG}" --section "${SECTION}" + +"${MY_DIR}/setup-makefiles.sh" diff --git a/proprietary-files.txt b/proprietary-files.txt new file mode 100644 index 0000000..f6af23e --- /dev/null +++ b/proprietary-files.txt @@ -0,0 +1,126 @@ +# Camera +lib/hw/camera.universal8895.so +lib/libFacePreProcessing.camera.samsung.so +lib/libFacePreProcessing_jni.camera.samsung.so +lib/libFacialBasedSelfieCorrection.camera.samsung.so +lib/libIDDQD_core.so +lib/libIDDQD_interface.so +lib/libblurdetection.so +lib/libblurdetection_interface.so +lib/libexynoscamera.so +lib/libexynoscamera3.so +lib/libfocuspeaking.so +lib/libfocuspeaking_interface.so +lib/libhifills_interface.so +lib/libhwjpeg.so +lib/libsensorlistener.so +lib/libsmartfocus_interface.so +lib/libsmartfocusengine.so +lib/libuniapi.so +lib/libuniplugin.so +lib64/hw/camera.universal8895.so +lib64/libIDDQD_core.so +lib64/libIDDQD_interface.so +lib64/libblurdetection.so +lib64/libblurdetection_interface.so +lib64/libexynoscamera.so +lib64/libexynoscamera3.so +lib64/libfocuspeaking.so +lib64/libfocuspeaking_interface.so +lib64/libhifills_interface.so +lib64/libhwjpeg.so +lib64/libsensorlistener.so +lib64/libsmartfocus_interface.so +lib64/libsmartfocusengine.so +lib64/libuniapi.so +lib64/libuniplugin.so +vendor/etc/snap_gpu_kernel_32.bin +vendor/etc/snap_gpu_kernel_64.bin +vendor/lib/camera.device@1.0-impl.so +vendor/lib/camera.device@3.2-impl.so +vendor/lib/camera.device@3.3-impl.so +vendor/lib/camera.device@3.4-impl.so +vendor/lib/libDLInterface.camera.samsung.so +vendor/lib/libOpenCv.camera.samsung.so +vendor/lib/libhifistill.so +vendor/lib/libhifistill_tuning.so +vendor/lib/libhumantracking_util.camera.samsung.so +vendor/lib/libiva_android_hal.so +vendor/lib/libopenvx.so +vendor/lib/libsmart_cropping.camera.samsung.so +vendor/lib/libsnap_caffe.so +vendor/lib/libsnap_caffe_wrapper.so +vendor/lib/libsnap_compute.so +vendor/lib/libsnap_compute_wrapper.so +vendor/lib/libsnap_vndk.so +vendor/lib/libsomp.camera.samsung.so +vendor/lib/libvxu.so +vendor/lib/libxcv.camera.samsung.so +vendor/lib64/camera.device@1.0-impl.so +vendor/lib64/camera.device@3.2-impl.so +vendor/lib64/camera.device@3.3-impl.so +vendor/lib64/camera.device@3.4-impl.so +vendor/lib64/libDLInterface.camera.samsung.so +vendor/lib64/libOpenCv.camera.samsung.so +vendor/lib64/libhifistill.so +vendor/lib64/libhifistill_tuning.so +vendor/lib64/libhumantracking_util.camera.samsung.so +vendor/lib64/libiva_android_hal.so +vendor/lib64/libopenvx.so +vendor/lib64/libsmart_cropping.camera.samsung.so +vendor/lib64/libsnap_caffe.so +vendor/lib64/libsnap_caffe_wrapper.so +vendor/lib64/libsnap_compute.so +vendor/lib64/libsnap_compute_wrapper.so +vendor/lib64/libsnap_vndk.so +vendor/lib64/libsomp.camera.samsung.so +vendor/lib64/libvxu.so +vendor/lib64/libxcv.camera.samsung.so + +# Firmware +vendor/etc/plmn_delta.bin +vendor/etc/plmn_delta_attaio.bin +vendor/etc/plmn_delta_usacdma.bin +vendor/etc/plmn_delta_usagsm.bin +vendor/etc/plmn_se13.bin +vendor/firmware/APBargeIn_AUDIO_SLSI.bin +vendor/firmware/APBiBF_AUDIO_SLSI.bin +vendor/firmware/AP_AUDIO_SLSI.bin +vendor/firmware/SoundBoosterParam.bin +vendor/firmware/bcm4361B0_murata.hcd +vendor/firmware/bcm4361B0_semco.hcd +vendor/firmware/calliope_dram.bin +vendor/firmware/calliope_iva.bin +vendor/firmware/calliope_sram.bin +vendor/firmware/companion_2l2_master_setfile.bin +vendor/firmware/companion_2l2_mode_setfile.bin +vendor/firmware/companion_fw_2l2_3h1.bin +vendor/firmware/companion_fw_2l2_imx320.bin +vendor/firmware/companion_fw_imx333_3h1.bin +vendor/firmware/companion_fw_imx333_imx320.bin +vendor/firmware/companion_imx333_master_setfile.bin +vendor/firmware/companion_imx333_mode_setfile.bin +vendor/firmware/dsm.bin +vendor/firmware/dsm_tune.bin +vendor/firmware/iva10_rt-kangchen.bin +vendor/firmware/mfc_fw.bin +vendor/firmware/nfc/sec_s3nrn82_firmware.bin +vendor/firmware/ois_fw_dom.bin +vendor/firmware/ois_fw_sec.bin +vendor/firmware/score_fw_dmb0.bin +vendor/firmware/score_fw_dmb1.bin +vendor/firmware/score_fw_pmw0.bin +vendor/firmware/score_fw_pmw1.bin +vendor/firmware/setfile_2l2.bin +vendor/firmware/setfile_3h1.bin +vendor/firmware/setfile_3m3.bin +vendor/firmware/setfile_imx320.bin +vendor/firmware/setfile_imx333.bin +vendor/firmware/vts.bin + +# Firmware - from N950FXXS7DSH1 +vendor/firmware/fimc_is_lib.bin|49ac95e2bd9952e6261e3f58a8b6e0a90e7df480 +vendor/firmware/fimc_is_rta_2l2_3h1.bin|04e9614062231b07244a27223219266b11a42365 +vendor/firmware/fimc_is_rta_2l2_imx320.bin|670011935fa4601b5641cd6436ef07742612d5c0 +vendor/firmware/fimc_is_rta_imx333_3h1.bin|d5505ee5880aea729c2019b064ae7957c9e4c28b +vendor/firmware/fimc_is_rta_imx333_imx320.bin|aefbdbe7e1a72917f945a89b905812139e0704c9 diff --git a/setup-makefiles.sh b/setup-makefiles.sh new file mode 100755 index 0000000..ea9eca0 --- /dev/null +++ b/setup-makefiles.sh @@ -0,0 +1,48 @@ +#!/bin/bash +# +# Copyright (C) 2017-2019 The LineageOS 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. +# + +set -e + +VENDOR=samsung +DEVICE=greatlte + +export INITIAL_COPYRIGHT_YEAR=2017 + +# Load extract_utils and do some sanity checks +MY_DIR="${BASH_SOURCE%/*}" +if [[ ! -d "${MY_DIR}" ]]; then MY_DIR="${PWD}"; fi + +LINEAGE_ROOT="${MY_DIR}/../../.." + +HELPER="${LINEAGE_ROOT}/vendor/lineage/build/tools/extract_utils.sh" +if [ ! -f "${HELPER}" ]; then + echo "Unable to find helper script at ${HELPER}" + exit 1 +fi +source "${HELPER}" + +# Initialize the helper +setup_vendor "${DEVICE}" "${VENDOR}" "${LINEAGE_ROOT}" + +# Copyright headers and guards +write_headers "greatlte" + +# The standard blobs +write_makefiles "${MY_DIR}/proprietary-files.txt" true + +# Finish +write_footers -- 2.20.1