diff options
Diffstat (limited to 'hooks/build-hikey960-super-ptable.sh')
-rwxr-xr-x | hooks/build-hikey960-super-ptable.sh | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/hooks/build-hikey960-super-ptable.sh b/hooks/build-hikey960-super-ptable.sh index 35f86b89..ee35ac24 100755 --- a/hooks/build-hikey960-super-ptable.sh +++ b/hooks/build-hikey960-super-ptable.sh @@ -2,12 +2,14 @@ ####################################################### # better to be speified in the build config file +ptable_url="https://android-git.linaro.org/android-build-configs.git/plain/lkft/scripts/hikey/prm_ptable-hikey960.img?h=lkft" function main(){ - local dir_out_target="out/target/product/hikey960" + echo "TARGET_PRODUCT=${TARGET_PRODUCT}" + local dir_out_target="out/target/product/${TARGET_PRODUCT}" local f_ptable_vendor=$(ls vendor/linaro/hikey960/*/bootloader/prm_ptable.img|tail -n1) local f_ptable_device="device/linaro/hikey/installer/hikey960/prm_ptable.img" if [ -f "${f_ptable_vendor}" ]; then - # for master build + # for AOSP main build cp -vf "${f_ptable_vendor}" "${dir_out_target}" elif [ -f "${f_ptable_device}" ]; then # for android11, android12 with the super partition support @@ -15,8 +17,8 @@ function main(){ # but this script should not be run for android10 cp -vf "${f_ptable_device}" "${dir_out_target}" else - echo "The prm_ptable.img file was not found!" - return 1 + echo "Downloading prm_ptable.img from ${ptable_url}!" + wget -c "${ptable_url}" -O "${dir_out_target}/prm_ptable.img" fi } |