diff options
author | Yongqin Liu <yongqin.liu@linaro.org> | 2023-11-10 11:43:23 +0800 |
---|---|---|
committer | Yongqin Liu <yongqin.liu@linaro.org> | 2023-11-10 11:43:23 +0800 |
commit | 5802524f7d55a2d2d7aa74415a0b38769a4bbf08 (patch) | |
tree | 6d9719d41d1a568f0be526467cf9841a9b84df70 | |
parent | 8189bab6eeecc0254f94b5457e63d163f25d8df3 (diff) | |
download | android-build-configs-5802524f7d55a2d2d7aa74415a0b38769a4bbf08.tar.gz |
build-hikey960-super-ptable: add suport for linaro_hikey960
which is from the devboardsforandroid site
Change-Id: I361d60dd5dda9c52e50f38e9a036d389fabaf25e
Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
-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 } |