| 123456789101112131415161718192021222324252627282930313233343536373839404142 |
- name: Setup Baseband Guard (BBG)
- description: Download and configure Baseband Guard security module
- runs:
- using: composite
- steps:
- - name: Download Baseband Guard
- shell: bash
- working-directory: ${{ github.workspace }}/kernel
- run: |
- cp -R "$GITHUB_WORKSPACE/Baseband-guard" ./
- ./Baseband-guard/setup.sh
-
- - name: Configure Baseband Guard
- shell: bash
- working-directory: ${{ github.workspace }}/kernel
- run: |
- # Add BBG to defconfig
- echo "CONFIG_BBG=y" >> "${{ github.workspace }}/wild_gki.fragment"
-
- # Modify security Kconfig to include baseband_guard in LSM
- sed -i '/^config LSM$/,/^help$/{ /^[[:space:]]*default/ { /baseband_guard/! s/selinux/selinux,baseband_guard/ } }' common/security/Kconfig
-
- - name: Verify BBG Installation
- shell: bash
- working-directory: ${{ github.workspace }}/kernel
- run: |
- if grep -q "baseband_guard" common/security/Kconfig; then
- echo "✓ SUCCESS: baseband_guard found in common/security/Kconfig"
- grep -n "baseband_guard" common/security/Kconfig || true
- else
- echo "✗ FAILED: baseband_guard not found in common/security/Kconfig"
- exit 1
- fi
-
- - name: Extract BBG Version
- shell: bash
- working-directory: ${{ github.workspace }}/kernel/Baseband-guard
- run: |
- # Extract and export BBG version info
- BBG_COMMIT=$(git rev-parse --short HEAD 2>/dev/null)
- echo "BBG_COMMIT=$BBG_COMMIT" >> $GITHUB_ENV
|