Skip to content
This repository was archived by the owner on Apr 9, 2025. It is now read-only.

Commit ce38b74

Browse files
authored
floko: Support v7 patches
1 parent 99e8460 commit ce38b74

File tree

1 file changed

+20
-4
lines changed

1 file changed

+20
-4
lines changed

build.sh

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,27 @@ if [ "${ENABLE_CCACHE}" = "true" ]; then
6363
ccache -M 30G
6464
fi
6565

66-
# repo sync
66+
# -s stands for repo sync
6767
if [ "${sync}" = "true" ]; then
68-
echo "[INFO] repo sync..."
69-
repo sync -j$(nproc) -c --force-sync --no-clone-bundle --no-tags
70-
echo -e "\n"
68+
# clone https://github.com/FlokoROM/patch into madoka/patch
69+
if [ $builddir = "floko" ] && [ -f ../madoka/patch/floko.sh ]; then
70+
echo "[INFO] reset and cleaning..."
71+
# WARNING: this command will reset all repositories under floko, any local changes will be lost
72+
repo forall -c git reset --hard
73+
repo forall -c git clean -fd
74+
echo "[INFO] repo sync..."
75+
repo sync -j$(nproc) -c --force-sync --no-clone-bundle --no-tags
76+
echo -e "\n"
77+
echo "[INFO] patching..."
78+
cd ../madoka/patch
79+
./floko.sh
80+
echo "[INFO] done"
81+
cd ../../$builddir
82+
else
83+
echo "[INFO] repo sync..."
84+
repo sync -j$(nproc) -c --force-sync --no-clone-bundle --no-tags
85+
echo -e "\n"
86+
fi
7187
fi
7288

7389
# -n stands for SELINUX_IGNORE_NEVERALLOWS

0 commit comments

Comments
 (0)