Skip to content

Commit ff84d79

Browse files
author
CaseyBakey
committed
Patch Chromium with Bromite patches before build
1 parent ca51ae9 commit ff84d79

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

hooks/build_chromium_pre.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,10 @@
55
# vanadium_dir="${ROOT_DIR}/vanadium"
66
# git clone https://github.com/GrapheneOS/Vanadium.git "${vanadium_dir}"
77
# cd "${CHROMIUM_BUILD_DIR}/src"
8-
# git am --whitespace=nowarn ${vanadium_dir}/patches/*.patch
8+
# git am --whitespace=nowarn ${vanadium_dir}/patches/*.patch
9+
10+
echo "applying bromite patches"
11+
cd "${CHROMIUM_BUILD_DIR}/src"
12+
rm -rf .git/rebase-apply/
13+
# Apply the patches in the given order
14+
while IFS= read -r line; do git am --whitespace=nowarn "${BROMITE_DIR}/build/patches/$line"; done < "${BROMITE_DIR}/build/bromite_patches_list.txt"

0 commit comments

Comments
 (0)