-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
exynos7580: Add common blobs list to be used
Change-Id: I6ce0fb0706ae4e0563ef7172cc2698b4e7f4b12f
- Loading branch information
Showing
3 changed files
with
317 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
VENDOR=samsung | ||
DEVICE=exynos7580-common | ||
|
||
function extract() { | ||
for FILE in `egrep -v '(^#|^$)' $1`; do | ||
OLDIFS=$IFS IFS=":" PARSING_ARRAY=($FILE) IFS=$OLDIFS | ||
FILE=`echo ${PARSING_ARRAY[0]} | sed -e "s/^-//g"` | ||
DEST=${PARSING_ARRAY[1]} | ||
if [ -z $DEST ]; then | ||
DEST=$FILE | ||
fi | ||
DIR=`dirname $FILE` | ||
if [ ! -d $2/$DIR ]; then | ||
mkdir -p $2/$DIR | ||
fi | ||
if [ "$SRC" = "adb" ]; then | ||
# Try CM target first | ||
adb pull /system/$DEST $2/$DEST | ||
# if file does not exist try OEM target | ||
if [ "$?" != "0" ]; then | ||
adb pull /system/$FILE $2/$DEST | ||
fi | ||
else | ||
cp $SRC/system/$FILE $2/$DEST | ||
# if file dot not exist try destination | ||
if [ "$?" != "0" ] | ||
then | ||
cp $SRC/system/$DEST $2/$DEST | ||
fi | ||
fi | ||
done | ||
} | ||
|
||
if [ $# -eq 0 ]; then | ||
SRC=adb | ||
else | ||
if [ $# -eq 1 ]; then | ||
SRC=$1 | ||
else | ||
echo "$0: bad number of arguments" | ||
echo "" | ||
echo "usage: $0 [PATH_TO_EXPANDED_ROM]" | ||
echo "" | ||
echo "If PATH_TO_EXPANDED_ROM is not specified, blobs will be extracted from" | ||
echo "the device using adb pull." | ||
exit 1 | ||
fi | ||
fi | ||
|
||
DEVBASE=../../../vendor/$VENDOR/$DEVICE/proprietary | ||
rm -rf $DEVBASE/* | ||
|
||
extract ../../$VENDOR/$DEVICE/proprietary-files.txt $DEVBASE | ||
|
||
./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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,167 @@ | ||
### GPS | ||
bin/gpsd | ||
|
||
### Noise supppression | ||
vendor/etc/nxp/BargeIn/Tx_ControlParams_WIDEBAND_ANALOG_DOCK.txt | ||
vendor/etc/nxp/BargeIn/Tx_ControlParams_WIDEBAND_BLUETOOTH_SCO_HEADSET.txt | ||
vendor/etc/nxp/BargeIn/Tx_ControlParams_WIDEBAND_EARPIECE.txt | ||
vendor/etc/nxp/BargeIn/Tx_ControlParams_WIDEBAND_SPEAKER.txt | ||
vendor/etc/nxp/BargeIn/Tx_ControlParams_WIDEBAND_WIRED_HEADPHONE.txt | ||
vendor/etc/nxp/BargeIn/Tx_ControlParams_WIDEBAND_WIRED_HEADSET.txt | ||
vendor/etc/nxp/BargeInDriving/Tx_ControlParams_WIDEBAND_ANALOG_DOCK.txt | ||
vendor/etc/nxp/BargeInDriving/Tx_ControlParams_WIDEBAND_BLUETOOTH_SCO_HEADSET.txt | ||
vendor/etc/nxp/BargeInDriving/Tx_ControlParams_WIDEBAND_EARPIECE.txt | ||
vendor/etc/nxp/BargeInDriving/Tx_ControlParams_WIDEBAND_SPEAKER.txt | ||
vendor/etc/nxp/BargeInDriving/Tx_ControlParams_WIDEBAND_WIRED_HEADPHONE.txt | ||
vendor/etc/nxp/BargeInDriving/Tx_ControlParams_WIDEBAND_WIRED_HEADSET.txt | ||
vendor/etc/nxp/mVoIP/Rx_ControlParams_NARROWBAND_BLUETOOTH_SCO_HEADSET.txt | ||
vendor/etc/nxp/mVoIP/Rx_ControlParams_NARROWBAND_EARPIECE.txt | ||
vendor/etc/nxp/mVoIP/Rx_ControlParams_NARROWBAND_SLD.txt | ||
vendor/etc/nxp/mVoIP/Rx_ControlParams_NARROWBAND_SPEAKER.txt | ||
vendor/etc/nxp/mVoIP/Rx_ControlParams_NARROWBAND_WIRED_HEADPHONE.txt | ||
vendor/etc/nxp/mVoIP/Rx_ControlParams_NARROWBAND_WIRED_HEADSET.txt | ||
vendor/etc/nxp/mVoIP/Rx_ControlParams_WIDEBAND_BLUETOOTH_SCO_HEADSET.txt | ||
vendor/etc/nxp/mVoIP/Rx_ControlParams_WIDEBAND_EARPIECE.txt | ||
vendor/etc/nxp/mVoIP/Rx_ControlParams_WIDEBAND_SLD.txt | ||
vendor/etc/nxp/mVoIP/Rx_ControlParams_WIDEBAND_SPEAKER.txt | ||
vendor/etc/nxp/mVoIP/Rx_ControlParams_WIDEBAND_WIRED_HEADPHONE.txt | ||
vendor/etc/nxp/mVoIP/Rx_ControlParams_WIDEBAND_WIRED_HEADSET.txt | ||
vendor/etc/nxp/mVoIP/Tx_ControlParams_NARROWBAND_BLUETOOTH_SCO_HEADSET.txt | ||
vendor/etc/nxp/mVoIP/Tx_ControlParams_NARROWBAND_EARPIECE.txt | ||
vendor/etc/nxp/mVoIP/Tx_ControlParams_NARROWBAND_SLD.txt | ||
vendor/etc/nxp/mVoIP/Tx_ControlParams_NARROWBAND_SPEAKER.txt | ||
vendor/etc/nxp/mVoIP/Tx_ControlParams_NARROWBAND_WIRED_HEADPHONE.txt | ||
vendor/etc/nxp/mVoIP/Tx_ControlParams_NARROWBAND_WIRED_HEADSET.txt | ||
vendor/etc/nxp/mVoIP/Tx_ControlParams_WIDEBAND_BLUETOOTH_SCO_HEADSET.txt | ||
vendor/etc/nxp/mVoIP/Tx_ControlParams_WIDEBAND_EARPIECE.txt | ||
vendor/etc/nxp/mVoIP/Tx_ControlParams_WIDEBAND_SLD.txt | ||
vendor/etc/nxp/mVoIP/Tx_ControlParams_WIDEBAND_SPEAKER.txt | ||
vendor/etc/nxp/mVoIP/Tx_ControlParams_WIDEBAND_WIRED_HEADPHONE.txt | ||
vendor/etc/nxp/mVoIP/Tx_ControlParams_WIDEBAND_WIRED_HEADSET.txt | ||
vendor/etc/nxp/mVoIPFMC/Rx_ControlParams_WIDEBAND_BLUETOOTH_SCO_HEADSET.txt | ||
vendor/etc/nxp/mVoIPFMC/Rx_ControlParams_WIDEBAND_EARPIECE.txt | ||
vendor/etc/nxp/mVoIPFMC/Rx_ControlParams_WIDEBAND_SPEAKER.txt | ||
vendor/etc/nxp/mVoIPFMC/Rx_ControlParams_WIDEBAND_WIRED_HEADPHONE.txt | ||
vendor/etc/nxp/mVoIPFMC/Rx_ControlParams_WIDEBAND_WIRED_HEADSET.txt | ||
vendor/etc/nxp/mVoIPFMC/Tx_ControlParams_WIDEBAND_BLUETOOTH_SCO_HEADSET.txt | ||
vendor/etc/nxp/mVoIPFMC/Tx_ControlParams_WIDEBAND_EARPIECE.txt | ||
vendor/etc/nxp/mVoIPFMC/Tx_ControlParams_WIDEBAND_SPEAKER.txt | ||
vendor/etc/nxp/mVoIPFMC/Tx_ControlParams_WIDEBAND_WIRED_HEADPHONE.txt | ||
vendor/etc/nxp/mVoIPFMC/Tx_ControlParams_WIDEBAND_WIRED_HEADSET.txt | ||
vendor/etc/nxp/mVoIPSec/Rx_ControlParams_WIDEBAND_BLUETOOTH_SCO_HEADSET.txt | ||
vendor/etc/nxp/mVoIPSec/Rx_ControlParams_WIDEBAND_EARPIECE.txt | ||
vendor/etc/nxp/mVoIPSec/Rx_ControlParams_WIDEBAND_SLD.txt | ||
vendor/etc/nxp/mVoIPSec/Rx_ControlParams_WIDEBAND_SPEAKER.txt | ||
vendor/etc/nxp/mVoIPSec/Rx_ControlParams_WIDEBAND_WIRED_HEADPHONE.txt | ||
vendor/etc/nxp/mVoIPSec/Rx_ControlParams_WIDEBAND_WIRED_HEADSET.txt | ||
vendor/etc/nxp/mVoIPSec/Tx_ControlParams_WIDEBAND_BLUETOOTH_SCO_HEADSET.txt | ||
vendor/etc/nxp/mVoIPSec/Tx_ControlParams_WIDEBAND_EARPIECE.txt | ||
vendor/etc/nxp/mVoIPSec/Tx_ControlParams_WIDEBAND_SLD.txt | ||
vendor/etc/nxp/mVoIPSec/Tx_ControlParams_WIDEBAND_SPEAKER.txt | ||
vendor/etc/nxp/mVoIPSec/Tx_ControlParams_WIDEBAND_WIRED_HEADPHONE.txt | ||
vendor/etc/nxp/mVoIPSec/Tx_ControlParams_WIDEBAND_WIRED_HEADSET.txt | ||
vendor/etc/nxp/VideoTelephony/Rx_ControlParams_NARROWBAND_BLUETOOTH_SCO_HEADSET.txt | ||
vendor/etc/nxp/VideoTelephony/Rx_ControlParams_NARROWBAND_BLUETOOTH_SCO_HEADSET_NREC_ON.txt | ||
vendor/etc/nxp/VideoTelephony/Rx_ControlParams_NARROWBAND_EARPIECE.txt | ||
vendor/etc/nxp/VideoTelephony/Rx_ControlParams_NARROWBAND_SLD.txt | ||
vendor/etc/nxp/VideoTelephony/Rx_ControlParams_NARROWBAND_SPEAKER.txt | ||
vendor/etc/nxp/VideoTelephony/Rx_ControlParams_NARROWBAND_WIRED_HEADPHONE.txt | ||
vendor/etc/nxp/VideoTelephony/Rx_ControlParams_NARROWBAND_WIRED_HEADSET.txt | ||
vendor/etc/nxp/VideoTelephony/Rx_ControlParams_WIDEBAND_BLUETOOTH_SCO_HEADSET.txt | ||
vendor/etc/nxp/VideoTelephony/Rx_ControlParams_WIDEBAND_BLUETOOTH_SCO_HEADSET_NREC_ON.txt | ||
vendor/etc/nxp/VideoTelephony/Rx_ControlParams_WIDEBAND_EARPIECE.txt | ||
vendor/etc/nxp/VideoTelephony/Rx_ControlParams_WIDEBAND_SLD.txt | ||
vendor/etc/nxp/VideoTelephony/Rx_ControlParams_WIDEBAND_SPEAKER.txt | ||
vendor/etc/nxp/VideoTelephony/Rx_ControlParams_WIDEBAND_WIRED_HEADPHONE.txt | ||
vendor/etc/nxp/VideoTelephony/Rx_ControlParams_WIDEBAND_WIRED_HEADSET.txt | ||
vendor/etc/nxp/VideoTelephony/Tx_ControlParams_NARROWBAND_BLUETOOTH_SCO_HEADSET.txt | ||
vendor/etc/nxp/VideoTelephony/Tx_ControlParams_NARROWBAND_BLUETOOTH_SCO_HEADSET_NREC_ON.txt | ||
vendor/etc/nxp/VideoTelephony/Tx_ControlParams_NARROWBAND_EARPIECE.txt | ||
vendor/etc/nxp/VideoTelephony/Tx_ControlParams_NARROWBAND_SLD.txt | ||
vendor/etc/nxp/VideoTelephony/Tx_ControlParams_NARROWBAND_SPEAKER.txt | ||
vendor/etc/nxp/VideoTelephony/Tx_ControlParams_NARROWBAND_WIRED_HEADPHONE.txt | ||
vendor/etc/nxp/VideoTelephony/Tx_ControlParams_NARROWBAND_WIRED_HEADSET.txt | ||
vendor/etc/nxp/VideoTelephony/Tx_ControlParams_WIDEBAND_BLUETOOTH_SCO_HEADSET.txt | ||
vendor/etc/nxp/VideoTelephony/Tx_ControlParams_WIDEBAND_BLUETOOTH_SCO_HEADSET_NREC_ON.txt | ||
vendor/etc/nxp/VideoTelephony/Tx_ControlParams_WIDEBAND_EARPIECE.txt | ||
vendor/etc/nxp/VideoTelephony/Tx_ControlParams_WIDEBAND_SLD.txt | ||
vendor/etc/nxp/VideoTelephony/Tx_ControlParams_WIDEBAND_SPEAKER.txt | ||
vendor/etc/nxp/VideoTelephony/Tx_ControlParams_WIDEBAND_WIRED_HEADPHONE.txt | ||
vendor/etc/nxp/VideoTelephony/Tx_ControlParams_WIDEBAND_WIRED_HEADSET.txt | ||
vendor/etc/nxp/WifiCalling/Rx_ControlParams_NARROWBAND_BLUETOOTH_SCO_HEADSET.txt | ||
vendor/etc/nxp/WifiCalling/Rx_ControlParams_NARROWBAND_BLUETOOTH_SCO_HEADSET_NREC_ON.txt | ||
vendor/etc/nxp/WifiCalling/Rx_ControlParams_NARROWBAND_EARPIECE.txt | ||
vendor/etc/nxp/WifiCalling/Rx_ControlParams_NARROWBAND_SLD.txt | ||
vendor/etc/nxp/WifiCalling/Rx_ControlParams_NARROWBAND_SPEAKER.txt | ||
vendor/etc/nxp/WifiCalling/Rx_ControlParams_NARROWBAND_WIRED_HEADPHONE.txt | ||
vendor/etc/nxp/WifiCalling/Rx_ControlParams_NARROWBAND_WIRED_HEADSET.txt | ||
vendor/etc/nxp/WifiCalling/Rx_ControlParams_WIDEBAND_BLUETOOTH_SCO_HEADSET.txt | ||
vendor/etc/nxp/WifiCalling/Rx_ControlParams_WIDEBAND_BLUETOOTH_SCO_HEADSET_NREC_ON.txt | ||
vendor/etc/nxp/WifiCalling/Rx_ControlParams_WIDEBAND_EARPIECE.txt | ||
vendor/etc/nxp/WifiCalling/Rx_ControlParams_WIDEBAND_SLD.txt | ||
vendor/etc/nxp/WifiCalling/Rx_ControlParams_WIDEBAND_SPEAKER.txt | ||
vendor/etc/nxp/WifiCalling/Rx_ControlParams_WIDEBAND_WIRED_HEADPHONE.txt | ||
vendor/etc/nxp/WifiCalling/Rx_ControlParams_WIDEBAND_WIRED_HEADSET.txt | ||
vendor/etc/nxp/WifiCalling/Tx_ControlParams_NARROWBAND_BLUETOOTH_SCO_HEADSET.txt | ||
vendor/etc/nxp/WifiCalling/Tx_ControlParams_NARROWBAND_BLUETOOTH_SCO_HEADSET_NREC_ON.txt | ||
vendor/etc/nxp/WifiCalling/Tx_ControlParams_NARROWBAND_EARPIECE.txt | ||
vendor/etc/nxp/WifiCalling/Tx_ControlParams_NARROWBAND_SLD.txt | ||
vendor/etc/nxp/WifiCalling/Tx_ControlParams_NARROWBAND_SPEAKER.txt | ||
vendor/etc/nxp/WifiCalling/Tx_ControlParams_NARROWBAND_WIRED_HEADPHONE.txt | ||
vendor/etc/nxp/WifiCalling/Tx_ControlParams_NARROWBAND_WIRED_HEADSET.txt | ||
vendor/etc/nxp/WifiCalling/Tx_ControlParams_WIDEBAND_BLUETOOTH_SCO_HEADSET.txt | ||
vendor/etc/nxp/WifiCalling/Tx_ControlParams_WIDEBAND_BLUETOOTH_SCO_HEADSET_NREC_ON.txt | ||
vendor/etc/nxp/WifiCalling/Tx_ControlParams_WIDEBAND_EARPIECE.txt | ||
vendor/etc/nxp/WifiCalling/Tx_ControlParams_WIDEBAND_SLD.txt | ||
vendor/etc/nxp/WifiCalling/Tx_ControlParams_WIDEBAND_SPEAKER.txt | ||
vendor/etc/nxp/WifiCalling/Tx_ControlParams_WIDEBAND_WIRED_HEADPHONE.txt | ||
vendor/etc/nxp/WifiCalling/Tx_ControlParams_WIDEBAND_WIRED_HEADSET.txt | ||
vendor/etc/nxp/WifiCallingHAC/Rx_ControlParams_NARROWBAND_BLUETOOTH_SCO_HEADSET.txt | ||
vendor/etc/nxp/WifiCallingHAC/Rx_ControlParams_NARROWBAND_BLUETOOTH_SCO_HEADSET_NREC_ON.txt | ||
vendor/etc/nxp/WifiCallingHAC/Rx_ControlParams_NARROWBAND_EARPIECE.txt | ||
vendor/etc/nxp/WifiCallingHAC/Rx_ControlParams_NARROWBAND_SLD.txt | ||
vendor/etc/nxp/WifiCallingHAC/Rx_ControlParams_NARROWBAND_SPEAKER.txt | ||
vendor/etc/nxp/WifiCallingHAC/Rx_ControlParams_NARROWBAND_WIRED_HEADPHONE.txt | ||
vendor/etc/nxp/WifiCallingHAC/Rx_ControlParams_NARROWBAND_WIRED_HEADSET.txt | ||
vendor/etc/nxp/WifiCallingHAC/Rx_ControlParams_WIDEBAND_BLUETOOTH_SCO_HEADSET.txt | ||
vendor/etc/nxp/WifiCallingHAC/Rx_ControlParams_WIDEBAND_BLUETOOTH_SCO_HEADSET_NREC_ON.txt | ||
vendor/etc/nxp/WifiCallingHAC/Rx_ControlParams_WIDEBAND_EARPIECE.txt | ||
vendor/etc/nxp/WifiCallingHAC/Rx_ControlParams_WIDEBAND_SLD.txt | ||
vendor/etc/nxp/WifiCallingHAC/Rx_ControlParams_WIDEBAND_SPEAKER.txt | ||
vendor/etc/nxp/WifiCallingHAC/Rx_ControlParams_WIDEBAND_WIRED_HEADPHONE.txt | ||
vendor/etc/nxp/WifiCallingHAC/Rx_ControlParams_WIDEBAND_WIRED_HEADSET.txt | ||
vendor/etc/nxp/WifiCallingHAC/Tx_ControlParams_NARROWBAND_BLUETOOTH_SCO_HEADSET.txt | ||
vendor/etc/nxp/WifiCallingHAC/Tx_ControlParams_NARROWBAND_BLUETOOTH_SCO_HEADSET_NREC_ON.txt | ||
vendor/etc/nxp/WifiCallingHAC/Tx_ControlParams_NARROWBAND_EARPIECE.txt | ||
vendor/etc/nxp/WifiCallingHAC/Tx_ControlParams_NARROWBAND_SLD.txt | ||
vendor/etc/nxp/WifiCallingHAC/Tx_ControlParams_NARROWBAND_SPEAKER.txt | ||
vendor/etc/nxp/WifiCallingHAC/Tx_ControlParams_NARROWBAND_WIRED_HEADPHONE.txt | ||
vendor/etc/nxp/WifiCallingHAC/Tx_ControlParams_NARROWBAND_WIRED_HEADSET.txt | ||
vendor/etc/nxp/WifiCallingHAC/Tx_ControlParams_WIDEBAND_BLUETOOTH_SCO_HEADSET.txt | ||
vendor/etc/nxp/WifiCallingHAC/Tx_ControlParams_WIDEBAND_BLUETOOTH_SCO_HEADSET_NREC_ON.txt | ||
vendor/etc/nxp/WifiCallingHAC/Tx_ControlParams_WIDEBAND_EARPIECE.txt | ||
vendor/etc/nxp/WifiCallingHAC/Tx_ControlParams_WIDEBAND_SLD.txt | ||
vendor/etc/nxp/WifiCallingHAC/Tx_ControlParams_WIDEBAND_SPEAKER.txt | ||
vendor/etc/nxp/WifiCallingHAC/Tx_ControlParams_WIDEBAND_WIRED_HEADPHONE.txt | ||
vendor/etc/nxp/WifiCallingHAC/Tx_ControlParams_WIDEBAND_WIRED_HEADSET.txt | ||
vendor/etc/nxp/AzControlParams_SPEAKER.txt | ||
vendor/etc/nxp/LVAZFS_Configuration.txt | ||
vendor/etc/nxp/LVVEFS_Rx_Configuration.txt | ||
vendor/etc/nxp/LVVEFS_Tx_Configuration.txt | ||
vendor/etc/public.libraries.txt | ||
vendor/etc/yas_set.cfg | ||
vendor/lib/libLifevibes_lvverx.so | ||
vendor/lib/libLifevibes_lvvetx.so | ||
|
||
### OMX | ||
lib/omx/libOMX.Exynos.AVC.Decoder.so | ||
lib/omx/libOMX.Exynos.AVC.Encoder.so | ||
lib/omx/libOMX.Exynos.MPEG4.Decoder.so | ||
lib/omx/libOMX.Exynos.MPEG4.Encoder.so | ||
lib/omx/libOMX.Exynos.VP8.Decoder.so | ||
lib/omx/libOMX.Exynos.VP8.Encoder.so | ||
lib/omx/libOMX.Exynos.WMV.Decoder.so | ||
|
||
### Widevine | ||
lib/libstagefright_hdcp.so | ||
vendor/lib/mediadrm/libwvdrmengine.so |
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,91 @@ | ||
#!/bin/bash | ||
|
||
VENDOR=samsung | ||
DEVICE=exynos7580-common | ||
OUTDIR=vendor/$VENDOR/$DEVICE | ||
MAKEFILE=../../../$OUTDIR/$DEVICE-vendor-blobs.mk | ||
|
||
(cat << EOF) > $MAKEFILE | ||
# Copyright (C) 2017 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. | ||
# This file is generated by device/$VENDOR/$DEVICE/setup-makefiles.sh | ||
LOCAL_PATH := vendor/$VENDOR/$DEVICE | ||
PRODUCT_COPY_FILES += \\ | ||
EOF | ||
LINEEND=" \\" | ||
COUNT=`wc -l proprietary-files.txt | awk {'print $1'}` | ||
DISM=`egrep -c '(^#|^$)' proprietary-files.txt` | ||
COUNT=`expr $COUNT - $DISM` | ||
for FILE in `egrep -v '(^#|^$)' ../$DEVICE/proprietary-files.txt`; do | ||
COUNT=`expr $COUNT - 1` | ||
if [ $COUNT = "0" ]; then | ||
LINEEND="" | ||
fi | ||
# Split the file from the destination (format is "file[:destination]") | ||
OLDIFS=$IFS IFS=":" PARSING_ARRAY=($FILE) IFS=$OLDIFS | ||
FILE=${PARSING_ARRAY[0]} | ||
DEST=${PARSING_ARRAY[1]} | ||
if [ -n "$DEST" ]; then | ||
FILE=$DEST | ||
fi | ||
echo " \$(LOCAL_PATH)/proprietary/$FILE:system/$FILE$LINEEND" >> $MAKEFILE | ||
done | ||
(cat << EOF) > ../../../$OUTDIR/$DEVICE-vendor.mk | ||
# | ||
# Copyright (C) 2017 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. | ||
# This file is generated by device/$VENDOR/$DEVICE/setup-makefiles.sh | ||
# Pick up overlay for features that depend on non-open-source files | ||
DEVICE_PACKAGE_OVERLAYS := vendor/$VENDOR/$DEVICE/overlay | ||
\$(call inherit-product, vendor/$VENDOR/$DEVICE/$DEVICE-vendor-blobs.mk) | ||
EOF | ||
(cat << EOF) > ../../../$OUTDIR/BoardConfigVendor.mk | ||
# | ||
# Copyright (C) 2017 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. | ||
# This file is generated by device/$VENDOR/$DEVICE/setup-makefiles.sh | ||
EOF |