Ver código fonte

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 meses atrás
pai
commit
5f2cbfe60b
1 arquivos alterados com 24 adições e 0 exclusões
  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