build/sync.sh

76 lines
2.3 KiB
Bash
Raw Normal View History

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
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-11-26 19:49:14 +01:00
. build/envsetup.sh
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
2022-12-02 21:48:31 +01:00
repopick -f 336676 336677 336678 336679 336680
2022-09-25 14:45:49 +02:00
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-12-02 21:47:38 +01:00
#connectivity
cd packages/modules/Connectivity
git am $DRONE_WORKSPACE_BASE/fix-NetworkStats-disable-BPF.patch || git am --abort
cd $TOPDIR
2022-09-25 14:45:49 +02:00
#safetynet
repopick -f 334348 -P system/core
2022-11-26 19:49:14 +01:00
repopick -f 334343 334344 -P frameworks/base