Skip to content

Commit

Permalink
Fix vendor_boot target
Browse files Browse the repository at this point in the history
Clean up script and update README too
  • Loading branch information
CaptainThrowback committed Feb 13, 2024
1 parent 3fdc2e3 commit 0c8dfa9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/Recovery Build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,35 +4,35 @@ on:
workflow_dispatch:
inputs:
MANIFEST_URL:
description: 'MANIFEST_URL (if using SSH keys, use [email protected]:repo URL format)'
description: 'Manifest URL (if using SSH keys, use [email protected]:repo URL format)'
required: true
default: 'https://github.com/minimal-manifest-twrp/platform_manifest_twrp_aosp.git'
MANIFEST_BRANCH:
description: 'MANIFEST_BRANCH'
description: 'Manifest Branch'
required: true
default: 'twrp-12.1'
DEVICE_TREE_URL:
description: 'DEVICE_TREE_URL'
description: 'Device Tree URL'
required: true
default: 'https://github.com/TeamWin/android_device_asus_I003D'
DEVICE_TREE_BRANCH:
description: 'DEVICE_TREE_BRANCH'
description: 'Device Tree Branch'
required: true
default: 'android-12.1'
DEVICE_PATH:
description: 'DEVICE_PATH'
description: 'Path the device tree should be synced to, relative to source root'
required: true
default: 'device/asus/I003D'
DEVICE_NAME:
description: 'DEVICE_NAME'
description: 'Device Name from tree (should match name on vendor_device.mk)'
required: true
default: 'I003D'
REPOPICK_PATCHES:
description: 'REPOPICK_PATCHES (Gerrit commit numbers separated by a space to be included in the build)'
description: 'Gerrit commit numbers separated by a space to be included in the build'
type: string
required: false
BUILD_TARGET:
description: 'BUILD_TARGET'
description: 'Partition containing recovery ramdisk (boot, recovery, vendor_boot)'
required: true
default: 'recovery'

Expand All @@ -51,7 +51,7 @@ jobs:
echo "Device Tree Branch: ${{ github.event.inputs.DEVICE_TREE_BRANCH }}"
echo "Device Path: ${{ github.event.inputs.DEVICE_PATH }}"
echo "Device Name: ${{ github.event.inputs.DEVICE_NAME }}"
echo "Build Target: ${{ github.event.inputs.BUILD_TARGET }}.img"
echo -e "Build Target: $(tr -d _ <<< ${{ github.event.inputs.BUILD_TARGET }}).img"
echo "::endgroup::"
# You might want to Checkout your repo first, but not mandatory
Expand Down Expand Up @@ -192,7 +192,7 @@ jobs:
run: |
source build/envsetup.sh
export ALLOW_MISSING_DEPENDENCIES=true
lunch ${{ steps.buildtree.outputs.value }}_${{ github.event.inputs.DEVICE_NAME }}-eng && make ${{ github.event.inputs.BUILD_TARGET }}image -j$(nproc --all)
lunch ${{ steps.buildtree.outputs.value }}_${{ github.event.inputs.DEVICE_NAME }}-eng && make $(tr -d _ <<< ${{ github.event.inputs.BUILD_TARGET }})image -j$(nproc --all)
working-directory: ${{ steps.pwd.outputs.workspace-folder }}

- name: Upload to Release
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ Support PBRP, SHRP, TWRP compilation and production
| `DEVICE_PATH` | Device location | device/asus/I003D |
| `DEVICE_NAME` | Model name | I003D |
| `REPOPICK_PATCHES` | Gerrit patches to include in build (space separated) | 1245 1437 |
| `BUILD_TARGET` | Build Target Partition (boot/recovery/vendorboot) | recovery |
| `BUILD_TARGET` | Build Target Partition (boot/recovery/vendor_boot) | recovery |

-----

Expand Down

0 comments on commit 0c8dfa9

Please sign in to comment.