Skip to content

Commit 189b422

Browse files
authored
Update Novendor workflow for kernel build process
1 parent 42daccf commit 189b422

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

.github/workflows/Novendor.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Build kernel (KSN) minimal no vendor blobs, KernelSU enabled by default
1+
name: Build kernel (KSN) & WIFI A16 - no vendor blobs, KernelSU enabled by default
22

33
on:
44
workflow_dispatch:
@@ -25,7 +25,7 @@ on:
2525
type: boolean
2626
default: true
2727
kernelsu_patch_url:
28-
description: KernelSU setup.sh URL (used if apply_kernelsu==true)
28+
description: KernelSU setup.sh URL (used if apply_kernelsu == true)
2929
required: false
3030
default: https://raw.githubusercontent.com/KernelSU-Next/KernelSU-Next/next/kernel/setup.sh
3131

@@ -74,8 +74,6 @@ jobs:
7474
set -euo pipefail
7575
cat > ../novendor.defaults <<'EOF'
7676
CONFIG_LOCALVERSION_AUTO=y
77-
78-
# Disable major vendor-dependent modules known to cause build failures without blobs
7977
CONFIG_VENDOR_EDIT=n
8078
CONFIG_OPLUS_DEVICE_INFO=n
8179
CONFIG_OPLUS_PROJECT_INFO=n
@@ -99,7 +97,6 @@ jobs:
9997
CONFIG_NF_CONNTRACK=n
10098
CONFIG_NF_CONNTRACK_IPV4=n
10199
CONFIG_NF_CONNTRACK_IPV6=n
102-
103100
CONFIG_IP_NF_IPTABLES=n
104101
CONFIG_IP_NF_FILTER=n
105102
CONFIG_IP_NF_NAT=n
@@ -123,7 +120,7 @@ jobs:
123120
mkdir -p out
124121
make O=out ARCH=arm64 "${{ github.event.inputs.kernel_defconfig }}"
125122
126-
- name: Blackhole vendor-dependent directories (minimal)
123+
- name: Apply novendor defaults and fully blackhole netfilter
127124
working-directory: kernel
128125
run: |
129126
set -euo pipefail
@@ -146,12 +143,17 @@ jobs:
146143
blackhole drivers/soc/oplus
147144
blackhole drivers/media/platform/msm/camera
148145
blackhole drivers/staging/qcacld-3.0
149-
blackhole net/netfilter
146+
147+
# Fully recursive blackhole netfilter Makefiles to prevent undefined symbol linker errors
148+
for d in net/netfilter net/ipv6/netfilter net/bridge/netfilter; do
149+
find "$d" -type f -name Makefile -exec sh -c 'printf "# disabled (no vendor blobs/netfilter)\nobj-y :=\nobj-m :=" > "$1"' sh {} \;
150+
echo "Fully blackholed netfilter directory: $d"
151+
done
150152
151153
sed -i '/^source.*vendor/d' arch/arm64/configs/* || true
152154
sed -i '/^# Kconfig: vendor/d' arch/arm64/configs/* || true
153155
154-
- name: Build kernel (verbose single-thread)
156+
- name: Build kernel (verbose, single-thread)
155157
working-directory: kernel
156158
env:
157159
KBUILD_OUTPUT: out

0 commit comments

Comments
 (0)