add extractors and proprietary-files.txt
authorJan Altensen <info@stricted.net>
Thu, 29 Aug 2019 18:35:27 +0000 (20:35 +0200)
committerJan Altensen <info@stricted.net>
Thu, 29 Aug 2019 18:36:08 +0000 (20:36 +0200)
Change-Id: I00eb1b0c92782e2f70689ff584d1840e739da245

device.mk
extract-files.sh [new file with mode: 0755]
proprietary-files.txt [new file with mode: 0644]
setup-makefiles.sh [new file with mode: 0755]

index ad5f3ebcbf9c3a365bf794c1337e631a352022f4..b5c749197d25026faff9ae6f71ff19fe4752a39d 100644 (file)
--- 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/dream2lte/dream2lte-vendor.mk)
diff --git a/extract-files.sh b/extract-files.sh
new file mode 100755 (executable)
index 0000000..dc389e4
--- /dev/null
@@ -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=dream2lte
+
+# 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 (file)
index 0000000..26b9061
--- /dev/null
@@ -0,0 +1,125 @@
+# 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/fimc_is_rta_2l2_imx320.bin
+vendor/firmware/fimc_is_rta_imx333_3h1.bin
+vendor/firmware/fimc_is_rta_imx333_imx320.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_imx320.bin
+vendor/firmware/setfile_imx333.bin
+vendor/firmware/vts.bin
+
+# Firmware - from G950FXXS5DSH5
+vendor/firmware/fimc_is_lib.bin|4cfd3ad2c85f1e32fe17bde3a3fc8b17bf2aa82c
+vendor/firmware/fimc_is_rta_2l2_3h1.bin|a81e04f0fe86643c4b3f223a4840fd79a9d8e46b
diff --git a/setup-makefiles.sh b/setup-makefiles.sh
new file mode 100755 (executable)
index 0000000..08fcab1
--- /dev/null
@@ -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=dream2lte
+
+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 "dream2lte"
+
+# The standard blobs
+write_makefiles "${MY_DIR}/proprietary-files.txt" true
+
+# Finish
+write_footers