소스 검색

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