瀏覽代碼

Add action to remove ABI exports for WiFi and BT

This action removes ABI exports related to WiFi and Bluetooth functionality from the specified directories and updates the build.bazel file accordingly.
jimsterino98 4 月之前
父節點
當前提交
5f2cbfe60b
共有 1 個文件被更改,包括 24 次插入0 次删除
  1. 24 0
      .github/actions/abi-export/action.yml

+ 24 - 0
.github/actions/abi-export/action.yml

@@ -0,0 +1,24 @@
+name: abi export removal
+description: remove abi exports for wifi and bt functionality
+
+runs:
+ using: composite
+ steps:
+  - name: remove protected exports
+    shell: bash
+    run: |
+     cd "$CONFIG"
+     if [[ -d kernel_platform ]]; then
+      cd kernel_platform
+      rm -rf ./common/android/abi_gki_protected_exports_*
+      rm -rf ./msm-kernel/android/abi_gki_protected_exports_*
+     else
+      cd "$GITHUB"WORKSPACE"
+      cd "$COMMON"
+      rm -rf ./android/abi_gki_protected_exports_*
+     fi
+
+     #remove protected exports from build.bazel file
+     cd "$GITHUB"WORKSPACE"
+     cd "$COMMON"
+     perl -pi -e 's/^\s*"protected_exports_list"\s*:\s*"android\/abi_gki_protected_exports_aarch64",\s*$//;' ./BUILD.bazel