2022-09-18 12:17:53 +02:00
|
|
|
#!/bin/bash -e
|
2022-09-30 22:42:14 +02:00
|
|
|
# shellcheck disable=SC2250,SC2154,SC2086,SC1091,SC2312
|
2022-09-18 12:17:53 +02:00
|
|
|
|
|
|
|
. build/envsetup.sh
|
2022-08-22 17:51:08 +02:00
|
|
|
|
|
|
|
TOPDIR=$(pwd)
|
2022-08-22 22:55:41 +02:00
|
|
|
changelog=${TOPDIR}/changelog-${device}-${version}.md
|
2022-08-22 17:51:08 +02:00
|
|
|
|
|
|
|
declare -A before
|
2022-09-03 13:41:51 +02:00
|
|
|
tmp=($(repo forall -c 'echo "${REPO_PATH}:$(git rev-parse --short HEAD)"'))
|
2022-08-22 17:51:08 +02:00
|
|
|
for i in "${tmp[@]}"; do
|
|
|
|
IFS=: read -r folder commit <<<"${i}"
|
|
|
|
before[${folder}]=${commit}
|
|
|
|
done
|
|
|
|
|
|
|
|
repo sync -q -c -j 6 --fail-fast --force-sync --no-tags
|
|
|
|
|
2022-09-27 08:44:32 +02:00
|
|
|
echo -e "# Build $(date '+%Y-%m-%d %H:%M:%S') UTC\n" >>"${changelog}"
|
|
|
|
|
|
|
|
tmp=($(repo forall -c 'echo "${REPO_PATH}:$(git rev-parse --short HEAD)"'))
|
|
|
|
for i in "${tmp[@]}"; do
|
|
|
|
IFS=: read -r folder commit <<<"${i}"
|
|
|
|
if [[ "${folder}" != lineage/* && "${before[${folder}]}" != "${commit}" ]]; then
|
|
|
|
cd "${folder}" || continue
|
2022-09-30 22:42:14 +02:00
|
|
|
log=$(git --no-pager log --pretty=format:"- %s" "${before[${folder}]}".."${commit}")
|
2022-10-04 07:23:44 +02:00
|
|
|
if [[ $(echo -n "$log" | wc -l) != 0 ]]; then
|
2022-09-30 22:42:14 +02:00
|
|
|
{
|
|
|
|
echo "## ${folder} ${before[${folder}]}..${commit}"
|
|
|
|
echo "$log"
|
|
|
|
echo
|
|
|
|
} >>"${changelog}"
|
|
|
|
fi
|
2022-09-27 08:44:32 +02:00
|
|
|
cd "${TOPDIR}" || continue
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
echo -e "\n" >>"${changelog}"
|
|
|
|
cat "${changelog}"
|
|
|
|
|
2022-09-18 12:17:53 +02:00
|
|
|
cd packages/apps/LineageParts
|
|
|
|
git am $DRONE_WORKSPACE_BASE/fix-always-enable-taskbar-toggle.patch || git am --abort
|
|
|
|
cd $TOPDIR
|
|
|
|
cd packages/apps/Trebuchet
|
|
|
|
git am $DRONE_WORKSPACE_BASE/fix-enable-more-grids-for-tablet.patch || git am --abort
|
|
|
|
cd $TOPDIR
|
2022-09-25 14:44:19 +02:00
|
|
|
cd packages/apps/Camera2
|
|
|
|
git am $DRONE_WORKSPACE_BASE/fix-camera2-legacy.patch || git am --abort
|
|
|
|
cd $TOPDIR
|
2022-09-25 14:45:49 +02:00
|
|
|
|
|
|
|
#qcom wlan
|
|
|
|
repopick 336676 336677 336678 336679 336680
|
|
|
|
cd hardware/qcom-caf/wlan
|
|
|
|
git am $DRONE_WORKSPACE_BASE/fix-qcwcn-build.patch || git am --abort
|
|
|
|
cd $TOPDIR
|
|
|
|
|
|
|
|
#qcom caf audio
|
|
|
|
cd hardware/qcom-caf/msm8974/audio
|
|
|
|
git am $DRONE_WORKSPACE_BASE/fix-audio-build.patch || git am --abort
|
2022-09-18 12:17:53 +02:00
|
|
|
cd $TOPDIR
|
2022-09-25 14:45:49 +02:00
|
|
|
|
2022-09-30 22:42:14 +02:00
|
|
|
#bluetooth
|
|
|
|
cd packages/modules/Bluetooth
|
|
|
|
git am $DRONE_WORKSPACE_BASE/fix-bt-1.patch || git am --abort
|
|
|
|
git am $DRONE_WORKSPACE_BASE/fix-bt-2.patch || git am --abort
|
|
|
|
git am $DRONE_WORKSPACE_BASE/fix-bt-3.patch || git am --abort
|
|
|
|
git am $DRONE_WORKSPACE_BASE/fix-bt-le.patch || git am --abort
|
|
|
|
cd $TOPDIR
|
|
|
|
|
2022-10-11 07:18:21 +02:00
|
|
|
cd packages/modules/Connectivity
|
|
|
|
git am $DRONE_WORKSPACE_BASE/fix-uninstall-app-crash.patch || git am --abort
|
|
|
|
cd $TOPDIR
|
|
|
|
|
2022-10-04 07:30:39 +02:00
|
|
|
#cd hardware/interfaces
|
|
|
|
#git reset --hard ad2871f7
|
|
|
|
#cd $TOPDIR
|
2022-09-25 14:45:49 +02:00
|
|
|
|
|
|
|
#safetynet
|
|
|
|
repopick -f 334348 -P system/core
|
|
|
|
repopick -f 334343 334344 -P frameworks/base
|
2022-10-09 12:20:48 +02:00
|
|
|
|
|
|
|
#health
|
|
|
|
repopick -f 338895
|