瀏覽代碼

fix(issue-176): gate CONFIG_DEBUG_INFO_BTF to android14+ only

Old build system (build/build.sh on android12-5.10, android13-x) can't
handle BTF — the resolve_btfids/libbpf build fails to find libelf.
Only enable on android14-5.15, 14-6.1, 15-6.6, 16-6.12 which use
kleaf/bazel and handle BTF natively.
TheWildJames 1 月之前
父節點
當前提交
c96c9baa0d
共有 2 個文件被更改,包括 8 次插入2 次删除
  1. 1 2
      .github/actions/misc/action.yml
  2. 7 0
      .github/workflows/build.yml

+ 1 - 2
.github/actions/misc/action.yml

@@ -29,8 +29,7 @@ runs:
           CONFIG_TMPFS_POSIX_ACL=y
           CONFIG_KALLSYMS=y
           CONFIG_KALLSYMS_ALL=y
-          # eBPF/BTF support (Issue #176)
-          CONFIG_DEBUG_INFO_BTF=y
+          # eBPF support (Issue #176) — BTF only on 6.1+ (old build system lacks toolchain)
           CONFIG_BPF_EVENTS=y
           CONFIG_KPROBE_EVENTS=y
           CONFIG_UPROBES=y

+ 7 - 0
.github/workflows/build.yml

@@ -201,6 +201,13 @@ jobs:
     - name: Setup Misc Configs
       uses: ./.github/actions/misc
 
+    - name: Enable BTF (android14-6.1+ only — old build system lacks toolchain)
+      if: ${{ inputs.version == 'android14-5.15' || inputs.version == 'android14-6.1' || inputs.version == 'android15-6.6' || inputs.version == 'android16-6.12' }}
+      uses: ./.github/actions/set-kernel-config
+      with:
+        config_list: |
+          CONFIG_DEBUG_INFO_BTF=y
+
     - name: Apply Device-Specific Patches
       uses: ./.github/actions/apply-device-patches
       with: