|
|
@@ -226,15 +226,18 @@ jobs:
|
|
|
echo "obj-y += min_kdp.o" >> drivers/Makefile
|
|
|
|
|
|
|
|
|
-# - name: Add BBG
|
|
|
-# run: |
|
|
|
-# cd "$COMMON"
|
|
|
-# echo "Adding BBG..."
|
|
|
-# curl -LSs https://github.com/vc-teahouse/Baseband-guard/raw/main/setup.sh | bash
|
|
|
-# echo "CONFIG_BBG=y" >> arch/arm64/configs/gki_defconfig
|
|
|
-# sed -i '/^config LSM$/,/^help$/{ /^[[:space:]]*default/ { /baseband_guard/! s/selinux/selinux,baseband_guard/ } }' security/Kconfig
|
|
|
-#
|
|
|
-# curl -Ls "https://raw.githubusercontent.com/luigimak/kernel_patches/refs/heads/test/common/bbg_fix_get_link.patch" | patch -p1
|
|
|
+ - name: Add BBG
|
|
|
+ run: |
|
|
|
+ cd "$COMMON"
|
|
|
+ echo "Adding BBG..."
|
|
|
+ curl -LSs https://github.com/vc-teahouse/Baseband-guard/raw/main/setup.sh | bash
|
|
|
+ echo "CONFIG_BBG=y" >> arch/arm64/configs/gki_defconfig
|
|
|
+ sed -i '/^config LSM$/,/^help$/{ /^[[:space:]]*default/ { /baseband_guard/! s/selinux/selinux,baseband_guard/ } }' security/Kconfig
|
|
|
+
|
|
|
+ if grep -qxF $'\t\tconst char* symlink_target_link = inode->i_op->get_link(dentry, inode, NULL);' ./Baseband_guard/baseband_guard.c; then
|
|
|
+ echo "Applying BBG get_link fix
|
|
|
+ patch -p1 --forward < "$KERNEL_PATCHES/experimental/bbg/bbg_fix_get_link.patch"
|
|
|
+ fi
|
|
|
|
|
|
- name: Set Kernel Configuration Variables
|
|
|
run: |
|